CSS: Add button mixin

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-30 11:13:45 +02:00
parent a874b1ef3c
commit 9c7d93e55b

View File

@ -6,6 +6,26 @@
box-sizing: @sizing;
}
.button() {
.rounded-corners(3px);
background-color: @body-bg-color;
border: 2px solid @icinga-blue;
color: @icinga-blue;
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;
text-decoration: none;
}
}
.transform(@transform) {
-webkit-transform: @transform;
-moz-transform: @transform;