mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
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;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user