

/**
 * Background-color based approach.
 * This approach uses background color for the three states (active, hover, disabled) which is being changed on state change.
 */

.button
{
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	white-space: nowrap;
	font-weight: bold;
	border: none;
}

.button,
.button:active,
.button:visited
{
	color: var(--button_color);
	background-color: var(--button_background-color);
}
.button:hover,
.button:focus
{
	background-color: var(--button-hover_background-color);
}
.button[disabled]
{
	background-color: var(--button-disabled_background-color);
}


.button-large
{
	font-size: 24px;
	width: 280px;
	height: 70px;
	line-height: 70px;
}
.button-normal
{
	font-size: 21px;
	width: 240px;
	height: 60px;
	line-height: 60px;
}
.button-medium
{
	font-size: 18px;
	width: 200px;
	height: 50px;
	line-height: 50px;
}
.button-small
{
	font-size: 16px;
	width: 160px;
	height: 40px;
	line-height: 40px;
}



/**
 * Background-image based buttons.
 * This approach uses a previously prepared background image file for the three states (active, hover, disabled) which is being shifted on state change.
 */

/*
.button,
.button:active,
.button:visited
{
	background-image: url(../img/buttons/button-background.png);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0 0;
	width: 40px;
	height: 10px;
	display: inline-block;
	white-space: nowrap;
	vertical-align: middle;
	text-align: center;
	color: var(--button_color);
	font-size: 24px;
	line-height: 10px;
	font-weight: bold;
}
.button:hover,
.button:focus
{
	background-position: 0 -10px;
}
.button[disabled]
{
	background-position: 0 -20px;
}


.button-normal,
.button-normal:active,
.button-normal:visited
{
	width: 280px;
	height: 70px;
	line-height: 70px;
}
.button-normal:hover,
.button-normal:focus
{
	background-position: 0 -280px;
}
.button-normal[disabled]
{
	background-position: 0 -560px;
}

.button-small,
.button-small:active,
.button-small:visited
{
	font-size: 16px;
	width: 160px;
	height: 40px;
	line-height: 40px;
}
.button-small:hover,
.button-small:focus
{
	background-position: 0 -160px;
}
.button-small[disabled]
{
	background-position: 0 -320px;
}
*/

