Skip to content

Instantly share code, notes, and snippets.

@alcidesqueiroz
Last active September 21, 2018 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alcidesqueiroz/fa49406d838703537269853d0a673760 to your computer and use it in GitHub Desktop.
Save alcidesqueiroz/fa49406d838703537269853d0a673760 to your computer and use it in GitHub Desktop.
It's 2018: you shouldn't be writing vanilla CSS - Example 1
$base-color = #2DD;
$base-color--dark = darken($base-color, 30%);
.menu {
background-color: $base-color--dark;
&::before {
color: $base-color;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment