nunta/scss/_mixins.scss

75 lines
1.7 KiB
SCSS
Raw Normal View History

// Mixins
2016-06-11 04:26:00 +02:00
// Bootstrap Button Variant
@mixin button-variant($color, $background, $border) {
2017-08-11 21:12:34 +02:00
color: $color;
border-color: $border;
background-color: $background;
&.focus,
&:focus {
color: $color;
2017-08-11 21:12:34 +02:00
border-color: darken($border, 25%);
background-color: darken($background, 10%);
}
&:hover {
color: $color;
border-color: darken($border, 12%);
background-color: darken($background, 10%);
}
&.active,
&:active,
.open > &.dropdown-toggle {
color: $color;
border-color: darken($border, 12%);
background-color: darken($background, 10%);
&.focus,
2017-05-08 20:57:42 +02:00
&:focus,
&:hover {
2017-08-11 21:12:34 +02:00
color: $color;
border-color: darken($border, 25%);
background-color: darken($background, 17%);
2017-05-08 20:57:42 +02:00
}
2017-08-11 21:12:34 +02:00
}
&.active,
&:active,
.open > &.dropdown-toggle {
background-image: none;
}
&.disabled,
&[disabled],
fieldset[disabled] & {
&.focus,
&:focus,
&:hover {
border-color: $border;
background-color: $background;
2016-06-11 04:26:00 +02:00
}
2017-08-11 21:12:34 +02:00
}
.badge {
color: $background;
background-color: $color;
}
2016-06-11 04:26:00 +02:00
}
// Background Cover Mixin
2016-06-11 04:26:00 +02:00
@mixin background-cover {
2017-08-11 21:12:34 +02:00
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
2016-06-11 04:26:00 +02:00
}
// Font Mixins
2016-06-11 04:26:00 +02:00
@mixin serif-font {
2017-08-11 21:12:34 +02:00
font-family: 'Droid Serif', 'Helvetica Neue', Helvetica, Arial, sans-serif;
2016-06-11 04:26:00 +02:00
}
@mixin script-font {
2017-08-11 21:12:34 +02:00
font-family: 'Kaushan Script', 'Helvetica Neue', Helvetica, Arial, cursive;
2016-06-11 04:26:00 +02:00
}
@mixin body-font {
2017-08-11 21:12:34 +02:00
font-family: 'Roboto Slab', 'Helvetica Neue', Helvetica, Arial, sans-serif;
2016-06-11 04:26:00 +02:00
}
@mixin heading-font {
2017-08-11 21:12:34 +02:00
font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
text-transform: uppercase;
2016-06-11 04:26:00 +02:00
}