40 lines
727 B
SCSS
40 lines
727 B
SCSS
$enable-rtl-support: false;
|
|
$enable-light-style: true;
|
|
$enable-material-style: false;
|
|
$enable-dark-style: false;
|
|
|
|
@mixin feature-ltr($as-child: true) {
|
|
@if $enable-rtl-support {
|
|
@if $as-child {
|
|
html:not([dir=rtl]) & { @content; }
|
|
} @else {
|
|
html:not([dir=rtl]) { @content; }
|
|
}
|
|
} @else {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin feature-ltr-style() {
|
|
@if $enable-rtl-support {
|
|
&:not([dir=rtl]) { @content; }
|
|
} @else {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin feature-rtl($as-child: true) {
|
|
@if $enable-rtl-support {
|
|
@if $as-child {
|
|
[dir=rtl] & { @content; }
|
|
} @else {
|
|
[dir=rtl] { @content; }
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin feature-rtl-style() {
|
|
@if $enable-rtl-support {
|
|
&[dir=rtl] { @content; }
|
|
}
|
|
}
|