datamad2017/_sass/modules/_utility.scss

31 lines
No EOL
598 B
SCSS

@mixin vendorize($property, $value) {
@each $prefix in -webkit-, -moz-, -ms-, -o-, '' {
#{$prefix}#{$property}: $value;
}
}
@mixin clear() {
&:before, &:after {
content: "\0020";
display: block;
height: 0;
overflow: hidden;
}
&:after {
clear: both;
}
}
@mixin hoverActiveFocus($property, $value) {
&:hover, &:active, &:focus {
#{$property}: $value;
}
}
@mixin linkColor($color) {
color: $color;
&:hover, &:active, &:focus {
color: lighten($color, $link-lighten-amount);
}
}