Skip to content

Instantly share code, notes, and snippets.

@peckomingo
Last active February 25, 2021 07:39
Show Gist options
  • Save peckomingo/c621256c4445419b5238082da54f500b to your computer and use it in GitHub Desktop.
Save peckomingo/c621256c4445419b5238082da54f500b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@mixin is-rtl() {
@at-root [dir="rtl"]#{&} {
@content;
}
}
.selector {
background: red;
@include is-rtl() {
background: olive;
}
[lang="en"] & {
background: green;
@include is-rtl() {
background: olive;
}
}
}
.selector {
background: red;
}
[dir=rtl].selector {
background: olive;
}
[lang=en] .selector {
background: green;
}
[dir=rtl][lang=en] .selector {
background: olive;
}
{
"sass": {
"compiler": "dart-sass/1.26.11",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment