Skip to content

Instantly share code, notes, and snippets.

@botic
Created May 23, 2019 17:18
Show Gist options
  • Select an option

  • Save botic/43725d73fbbc703276778d16109819d7 to your computer and use it in GitHub Desktop.

Select an option

Save botic/43725d73fbbc703276778d16109819d7 to your computer and use it in GitHub Desktop.
Generate Party CSS
.oevp .bar {
background-color: #64c4d2;
}
.spoe .bar {
background-color: #e3001c;
}
.fpoe .bar {
background-color: #2453a1;
}
.gruene .bar {
background-color: #80b20a;
}
.neos .bar {
background-color: #e61b72;
}
.kpoe .bar {
background-color: #900d11;
}
.europa .bar {
background-color: #e6dcbc;
}
// colors for bars
$colors: (
oevp: #64c4d2,
spoe: #e3001c,
fpoe: #2453a1,
gruene: #80b20a,
neos: #e61b72,
kpoe: #900d11,
europa: #e6dcbc,
);
@each $name, $hex in $colors {
.#{$name} .bar { background-color: $hex; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment