grav-theme-libretic/scss/template/modules/_buttons.scss

27 lines
456 B
SCSS
Raw Normal View History

2015-01-15 19:15:54 +01:00
%button {
display: inline-block;
padding: 7px 20px;
margin-left: 5px;
margin-right: 5px;
margin-bottom: 10px;
2015-01-15 19:15:54 +01:00
&.button-small {
padding: 3px 10px;
font-size: $core-font-size - 0.1rem;
}
}
@mixin button-color($color) {
2015-01-23 14:03:30 +01:00
background: $color;
color: $white;
2015-01-15 19:15:54 +01:00
border: 1px solid $color;
&:hover {
2015-01-23 14:03:30 +01:00
background: $white;
color: $color;
2015-01-15 19:15:54 +01:00
}
&:active {
box-shadow: 0 1px 0 darken($color, 12%);
}
}