misp-website/assets/sass/_mixins.scss

35 lines
884 B
SCSS
Raw Normal View History

2015-01-07 23:34:47 +01:00
@mixin vendor-property($property, $value) {
@each $vendor in ('-moz-', '-webkit-', '-o-', '-ms-', '') {
#{$vendor}#{$property}: #{$value};
}
}
@mixin vendor-value($property, $value) {
@each $vendor in ('-moz-', '-webkit-', '-o-', '-ms-', '') {
#{$property}: #{$vendor}#{$value};
}
}
@mixin vendor-keyframes($name) {
@-moz-keyframes #{$name} { @content; }
@-webkit-keyframes #{$name} { @content; }
@-o-keyframes #{$name} { @content; }
@-ms-keyframes #{$name} { @content; }
@keyframes #{$name} { @content; }
}
@mixin icon($content: false) {
text-decoration: none;
&:before {
@if $content {
content: $content;
}
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
}