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

View File

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