Skip to content

Instantly share code, notes, and snippets.

@marcelmoreau
marcelmoreau / input.scss
Created November 12, 2021 16:31
Generated by SassMeister.com.
.widget {
$b: &;
&__heading {
color: navyblue;
}
// bad – does not evaluate to what we want
&--halloween {
&__heading {
@marcelmoreau
marcelmoreau / input.scss
Created September 17, 2021 19:35
Generated by SassMeister.com.
/*
<div class="layer bgWhite">…</div>
<div class="layer bgGold">…</div>
<div class="layer bgWhite">…</div>
<div class="layer bgWhite">…</div>
<div class="layer bgGold">…</div>
*/
@marcelmoreau
marcelmoreau / input.scss
Created September 13, 2021 21:39
Generated by SassMeister.com.
.dan {
&__body {
background-color: gold;
}
// I want to target .dan__body when it is a child of the .dan--dark modifier
&--dark {
&__body {
background-color: lightgray;
@marcelmoreau
marcelmoreau / input.scss
Created September 13, 2021 21:38
Generated by SassMeister.com.
.dan {
&__body {
background-color: gold;
}
// I want to target .dan__body when it is a child of the --dark modifier
&--dark {
&__body {
background-color: lightgray;
@marcelmoreau
marcelmoreau / input.scss
Created September 13, 2021 21:37
Generated by SassMeister.com.
.dan {
&__body {
background-color: gold;
}
// I want to target .dan__body when it is a child of the --dark modifier
&--dark {
&__body {
background-color: lightgray;
@marcelmoreau
marcelmoreau / input.scss
Created September 13, 2021 21:36
Generated by SassMeister.com.
.dan {
&__body {
background-color: gold;
}
&--dark {
&__body {
background-color: lightgray;
}
}
@marcelmoreau
marcelmoreau / input.scss
Created February 1, 2021 13:51 — forked from ffoodd/input.scss
Generated by SassMeister.com.
@function tint-color($color, $weight) {
@return mix(white, $color, $weight);
}
@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}
@function shift-color($color, $weight) {
@marcelmoreau
marcelmoreau / input.scss
Created December 10, 2020 20:45
Generated by SassMeister.com.
.typicalWay {
&__heading {
color: red;
}
&.-halloween {
.typicalWay__heading {
color: orange;
}
}
@marcelmoreau
marcelmoreau / input.scss
Created December 10, 2020 20:45
Generated by SassMeister.com.
.typicalWay {
&__heading {
color: red;
}
&.-halloween {
.typicalWay__heading {
color: orange;
}
}