Skip to content

Instantly share code, notes, and snippets.

@elliottregan
Created April 19, 2022 16:07
Show Gist options
  • Save elliottregan/ffb00b7c66e37be9e9a1d1ea7995e233 to your computer and use it in GitHub Desktop.
Save elliottregan/ffb00b7c66e37be9e9a1d1ea7995e233 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.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;
}
}
.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;
}
{
"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