CSS: Allow to control colors of the button mixin

This commit is contained in:
Eric Lippmann 2015-12-08 16:16:20 +01:00
parent 6679490f13
commit b92fba2804
1 changed files with 8 additions and 11 deletions

View File

@ -6,22 +6,19 @@
box-sizing: @sizing;
}
.button() {
.button(@background-color: @body-bg-color, @color: @icinga-blue) {
.rounded-corners(3px);
background-color: @body-bg-color;
border: 2px solid @icinga-blue;
color: @icinga-blue;
.transition(background 0.3s ease, color 0.3s ease);
background-color: @background-color;
border: 2px solid @color;
color: @color;
cursor: pointer;
padding: @vertical-padding @horizontal-padding;
-webkit-transition: background 0.3s ease, color 0.3s ease;
-moz-transition: background 0.3s ease, color 0.3s ease;
-o-transition: background 0.3s ease, color 0.3s ease;
transition: background 0.3s ease, color 0.3s ease;
&:hover {
background-color: @icinga-blue;
color: @text-color-inverted;
background-color: @color;
color: @background-color;
text-decoration: none;
}
}