Button Mixin
Erscheinungsbild
Beispiel für den Button Mixin. Muss je nach Design angepsst werden.
.button(@buttonWidth, @borderRadius: 5px) {
display: inline-block;
box-sizing: border-box;
width: @buttonWidth;
padding: .5em 1em;
color: @button-font-color;
background: @button-color;
font-size: 1em;
text-decoration: none;
cursor: pointer;
border: none;
border-radius: @borderRadius;
.boxShadow(2);
&:hover {
.boxShadow(3);
transform: scale(1.01);
-webkit-transform: scale(1.01);
}
&:active {
.boxShadow(2);
transform: scale(1);
-webkit-transform: scale(1);
}
}