CSS: Allow to control colors of the button mixin
This commit is contained in:
parent
6679490f13
commit
b92fba2804
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue