Created
April 19, 2022 16:07
-
-
Save elliottregan/ffb00b7c66e37be9e9a1d1ea7995e233 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
.input-field { | |
$color: red; | |
$size: 25em / 16; | |
color: $color; | |
font-size: $size; | |
// Regular nested class | |
.input-field--error { | |
color: red; | |
} | |
// Using Sass's ampersand. | |
&--error { | |
color: red; | |
} | |
&__label { | |
color: inherit; | |
&--important { | |
font-weight: bold; | |
} | |
} | |
&__label { | |
user-select: all; | |
margin: 0.5em auto; | |
} | |
} |
This file contains 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
.input-field { | |
color: red; | |
font-size: 1.5625em; | |
} | |
.input-field .input-field--error { | |
color: red; | |
} | |
.input-field--error { | |
color: red; | |
} | |
.input-field__label { | |
color: inherit; | |
} | |
.input-field__label--important { | |
font-weight: bold; | |
} | |
.input-field__label { | |
user-select: all; | |
margin: 0.5em auto; | |
} |
This file contains 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