-
-
Save sorvell/39614342d93e729caa741630791f6522 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* shared-stuff.sass */ | |
@mixin sharedStuff { | |
:host { | |
color: red; | |
} | |
.mdc-density-5 { | |
padding: 5px; | |
} | |
} | |
/* mdc-button.sass */ | |
@include sharedStuff; | |
:host { | |
background: green; | |
} | |
.mdc-thing { | |
border: blue; | |
} | |
/* ---- GENERATED ---- */ | |
/* shared-stuff.host.sass */ | |
@mixin sharedStuffWitHost { | |
&El { | |
color: red; | |
} | |
} | |
/* shared-stuff.non-host.sass */ | |
@mixin sharedStuffWitOther { | |
.mdc-density-5 { | |
padding: 5px; | |
} | |
} | |
/* shared-stuff.non-host-scoped.sass */ | |
@mixin sharedStuffWitOtherScoped { | |
&mdc-density-5 { | |
padding: 5px; | |
} | |
} | |
/* mwc-button.scoped.sass */ | |
.namespace { | |
@include sharedStuffWitHost; | |
@include sharedStuffWitOtherScoped; | |
&El { | |
background: green; | |
} | |
&mdc-thing { | |
border: blue; | |
} | |
} | |
/* mwc-button.non-scoped.sass */ | |
.namespace { | |
@include sharedStuffWitHost; | |
&El { | |
background: green; | |
} | |
} | |
@include sharedStuffWitOther; | |
.mdc-thing { | |
border: blue; | |
} | |
/* === ALTERNATE === */ | |
@mixin sharedStuff($host) { | |
#{$host} { | |
color: red; | |
} | |
.mdc-density-5 { | |
padding: 5px; | |
} | |
} | |
/* mdc-button.sass */ | |
$host: 'El'; | |
@include sharedStuff($host); | |
#{$host} { | |
background: green; | |
} | |
.mdc-thing { | |
border: blue; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* shared-stuff.sass */ | |
/* mdc-button.sass */ | |
:host { | |
color: red; | |
} | |
.mdc-density-5 { | |
padding: 5px; | |
} | |
:host { | |
background: green; | |
} | |
.mdc-thing { | |
border: blue; | |
} | |
/* ---- GENERATED ---- */ | |
/* shared-stuff.host.sass */ | |
/* shared-stuff.non-host.sass */ | |
/* shared-stuff.non-host-scoped.sass */ | |
/* mwc-button.scoped.sass */ | |
.namespaceEl { | |
color: red; | |
} | |
.namespacemdc-density-5 { | |
padding: 5px; | |
} | |
.namespaceEl { | |
background: green; | |
} | |
.namespacemdc-thing { | |
border: blue; | |
} | |
/* mwc-button.non-scoped.sass */ | |
.namespaceEl { | |
color: red; | |
} | |
.namespaceEl { | |
background: green; | |
} | |
.mdc-density-5 { | |
padding: 5px; | |
} | |
.mdc-thing { | |
border: blue; | |
} | |
/* === ALTERNATE === */ | |
/* mdc-button.sass */ | |
El { | |
color: red; | |
} | |
.mdc-density-5 { | |
padding: 5px; | |
} | |
El { | |
background: green; | |
} | |
.mdc-thing { | |
border: blue; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"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