Open tangway opened 4 months ago
took some time to think about how to rename these variables since they are inversions of each other:
$choice-button-bg: #fcfcfd;
$choice-button-color: #36395a;
$next-button-bg: #36395a;
$next-button-color: #fcfcfd;
settled on:
$button-bg: #fcfcfd;
$button-text-color: #36395a;
$inverted-bg: $button-text-color;
$inverted-text-color: $button-bg;
this is so that inheritance and cascade issues can be more visually noticeable when looking at the code
can also take advantage of its
mixin
declarations which has a syntax like a function where you place variables as arguments. you can then re-use styles by calling themixin
with variables you have declared or with the direct values of the colorsas a bonus scss deals with comments within css rules better than vanilla css, this makes it easier to make annotations and not cause errors when you comment them out. for example if i comment out this whole block of
body
element properties in vanilla css on vscode, it would cause a parsing error