Rename init dir to mixins.

This commit is contained in:
Fredrik Jonsson 2023-01-25 09:54:08 +01:00
commit 48099a734b

View file

@ -1,28 +0,0 @@
// stylelint-disable scss/at-if-closing-brace-newline-after, scss/at-if-closing-brace-space-after
$include-rtl: true !default;
// rtl()
//
// Includes Right-To-Left language support by adding a parent selector of
// `[dir="rtl"]`. Since the dir attribute is usually defined on the html element
// of a page, using this mixin on a ruleset that matches the html element won't
// work.
//
// Can be turned off globally by setting `$include-rtl: false;`.
//
// $selector = '[dir="rtl"]' - The RTL parent selector.
@mixin rtl($selector: '[dir="rtl"]') {
@if $include-rtl {
@if & {
#{$selector} & {
@content;
}
}
@else {
#{$selector} {
@content;
}
}
}
}