Moving sass and js files in to the assets directory.
This commit is contained in:
parent
48a823f577
commit
b763e4f514
1 changed files with 139 additions and 9 deletions
26
assets/sass/init/rtl/_rtl.scss
Normal file
26
assets/sass/init/rtl/_rtl.scss
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
$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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue