Last active
April 2, 2021 09:34
-
-
Save SallyMcGrath/ebf720dc1e9763a40c36a41dc4f82ba6 to your computer and use it in GitHub Desktop.
Revisions
-
SallyMcGrath renamed this gist
Apr 2, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
SallyMcGrath created this gist
Apr 2, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ $red: red; $blue: blue; $green: green; $mixQuotient: 5%; $purple: mix($red, $blue); $mixedValues: (100vw + 50px); // coloured cards with colour mix modifiers .card { &.red { background: $red; &.mix--blue { background: mix( $red, $blue, $mixQuotient); } } &.blue { background: $blue; &.mix--red { background: mix($blue, $red, $mixQuotient); } } &.purple { background: $mixedValues } } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ .card.red { background: red; } .card.red.mix--blue { background: #0d00f2; } .card.blue { background: blue; } .card.blue.mix--red { background: #f2000d; } .card.purple { background: 150vw; } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ { "sass": { "compiler": "dart-sass/1.26.11", "extensions": {}, "syntax": "SCSS", "outputStyle": "expanded" }, "autoprefixer": false }