1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-07-13 20:24:24 +03:00
salet/sass/_mixins.scss

25 lines
577 B
SCSS
Raw Normal View History

2016-01-07 13:27:57 +02:00
@mixin halfcolumn() {
@media (min-width: breakpoint-min(sm)) {
2016-09-26 10:20:48 +03:00
@include make-col(6);
2016-01-07 13:27:57 +02:00
}
@media (max-width: breakpoint-max(xs)) {
2016-09-26 10:20:48 +03:00
@include make-col(12);
2016-01-07 13:27:57 +02:00
}
}
@mixin col($sm-width, $xs-width) {
@media (min-width: breakpoint-min(sm)) {
2016-09-26 10:20:48 +03:00
@include make-col($sm-width);
2016-01-07 13:27:57 +02:00
}
@media (max-width: breakpoint-max(xs)) {
2016-09-26 10:20:48 +03:00
@include make-col($xs-width);
2016-01-07 13:27:57 +02:00
}
}
@mixin prefix($property, $value, $prefixes: ()) {
@each $prefix in $prefixes {
#{'-' + $prefix + '-' + $property}: $value;
}
// Output standard non-prefixed declaration
#{$property}: $value;
}