bot.benharr.is/_sass/_mixins.scss

66 lines
1.1 KiB
SCSS
Raw Permalink Normal View History

2015-09-12 11:52:49 +00:00
@mixin transition-all()
{
2015-09-12 11:42:26 +00:00
-webkit-transition: all 0.35s;
-moz-transition: all 0.35s;
transition: all 0.35s;
}
2015-09-12 11:52:49 +00:00
@mixin background-cover()
{
2015-09-12 11:42:26 +00:00
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
2015-09-12 11:52:49 +00:00
@mixin button-variant($color, $background, $border)
{
color: $color;
background-color: $background;
border-color: $border;
@include transition-all;
2015-09-12 11:42:26 +00:00
&:hover,
&:focus,
&.focus,
&:active,
&.active,
2015-09-12 11:52:49 +00:00
.open > .dropdown-toggle & {
color: $color;
background-color: darken($background, 5%);
border-color: darken($border, 7%);
2015-09-12 11:42:26 +00:00
}
&:active,
&.active,
2015-09-12 11:52:49 +00:00
.open > .dropdown-toggle & {
2015-09-12 11:42:26 +00:00
background-image: none;
}
&.disabled,
&[disabled],
fieldset[disabled] & {
&,
&:hover,
&:focus,
&.focus,
&:active,
&.active {
2015-09-12 11:52:49 +00:00
background-color: $background;
border-color: $border;
2015-09-12 11:42:26 +00:00
}
}
.badge {
2015-09-12 11:52:49 +00:00
color: $background;
background-color: $color;
2015-09-12 11:42:26 +00:00
}
}
2015-09-12 11:52:49 +00:00
@mixin sans-serif-font()
{
2015-09-12 11:42:26 +00:00
font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
2015-09-12 11:52:49 +00:00
@mixin serif-font()
{
2015-09-12 11:42:26 +00:00
font-family: 'Merriweather', 'Helvetica Neue', Arial, sans-serif;
}