1
0
Fork 0
mirror of https://github.com/uhIgnacio/igna.rocks.git synced 2024-08-15 02:23:12 +00:00
igna.rocks/assets/js/scss/_mixins.scss

52 lines
736 B
SCSS
Raw Normal View History

2021-08-31 15:30:22 +00:00
// prefix declarations
@mixin prefixed($property, $value) {
@if $webkit == true {
-webkit-#{$property}: #{$value};
}
@if $moz == true {
-moz-#{$property}: #{$value};
}
@if $ms == true {
-ms-#{$property}: #{$value};
}
@if $o == true {
-o-#{$property}: #{$value};
}
#{$property}: #{$value};
}
// prefix keyframes
@mixin keyframes($name) {
@if $webkit == true {
@-webkit-keyframes #{$name} {
@content;
}
}
@if $moz == true {
@-moz-keyframes #{$name} {
@content;
}
}
@if $ms == true {
@-ms-keyframes #{$name} {
@content;
}
}
@if $o == true {
@-o-keyframes #{$name} {
@content;
}
}
@keyframes #{$name} {
@content;
}
}