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/less/_mixins.less
2021-08-31 11:30:22 -04:00

51 lines
771 B
Text

// prefix declarations
.prefixed(@property, @value) {
& when (@webkit = true) {
-webkit-@{property}: @value;
}
& when (@moz = true) {
-moz-@{property}: @value;
}
& when (@ms = true) {
-ms-@{property}: @value;
}
& when (@o = true) {
-o-@{property}: @value;
}
@{property}: @value;
}
// prefix keyframes
.keyframes(@name; @content) {
& when (@webkit = true) {
@-webkit-keyframes @name {
@content();
}
}
& when (@moz = true) {
@-moz-keyframes @name {
@content();
}
}
& when (@ms = true) {
@-ms-keyframes @name {
@content();
}
}
& when (@o = true) {
@-o-keyframes @name {
@content();
}
}
@keyframes @name {
@content();
}
}