mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
26 lines
No EOL
404 B
SCSS
26 lines
No EOL
404 B
SCSS
/*
|
|
* NOTICE: only use this
|
|
* when sides are un-even
|
|
* if they are even just use $property: 0 $spacing;
|
|
*/
|
|
|
|
@mixin side($property, $left, $right) {
|
|
#{$property}: {
|
|
left: $left;
|
|
right: $right;
|
|
};
|
|
|
|
[dir=rtl] & {
|
|
#{$property}: {
|
|
left: $right;
|
|
right: $left;
|
|
};
|
|
}
|
|
}
|
|
|
|
@mixin prop($property, $ltr, $rtl) {
|
|
#{$property}: $ltr;
|
|
[dir=rtl] & {
|
|
#{$property}: $rtl;
|
|
}
|
|
} |