Skip to content

Instantly share code, notes, and snippets.

@valeth
Last active March 4, 2018 12:14
Show Gist options
  • Save valeth/a7e009465d9460dfa8c32c3caa79191b to your computer and use it in GitHub Desktop.
Save valeth/a7e009465d9460dfa8c32c3caa79191b to your computer and use it in GitHub Desktop.
.wklc {
color: #FFFFFF;
display: flex;
justify-content: center; }
.wklc-force-hidden {
display: none !important; }
.wklc-lesson-count {
border-radius: 3px !important; }
.wklc-items {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0; }
.wklc-item {
align-items: center;
background-color: #000000;
box-shadow: 3px 3px 0 #e1e1e1;
display: flex;
min-height: 2em;
min-width: 2.5em;
padding: 0 0.5em;
justify-content: center; }
.wklc-item > span:first-child {
margin-right: 0.3em; }
.wklc-right {
display: flex;
margin-left: 0.5em;
width: 12em; }
.wklc-right div, .wklc-right button {
box-sizing: border-box;
text-align: center; }
.wklc-score {
align-items: center;
display: flex;
flex-direction: row;
justify-content: flex-start;
width: 8em; }
.wklc-score > span:first-child {
text-align: left;
width: 50%; }
.wklc-btn-update {
border: 0;
color: inherit; }
.wklc-allowed-lessons {
display: inline-block;
padding: 0 1em;
height: 3em;
background-color: #000000;
color: #FFFFFF;
border-radius: 3px;
line-height: 3em; }
.wklc-allowed-lessons.disabled {
color: darkred; }
.wklc .wklc-apprentice1 {
background-color: #DD0093; }
.wklc .wklc-apprentice2 {
background-color: #C80B96; }
.wklc .wklc-apprentice3 {
background-color: #B31799; }
.wklc .wklc-apprentice4 {
background-color: #9D229B; }
.wklc .wklc-guru1 {
background-color: #882D9E; }
.wklc .wklc-guru2 {
background-color: #593DBD; }
.wklc .wklc-master {
background-color: #294DDB; }
.wklc .wklc-enlightened {
background-color: #0093DD; }
$levels: (
"apprentice1": #DD0093,
"apprentice2": #C80B96,
"apprentice3": #B31799,
"apprentice4": #9D230B,
"guru1": #882D9E,
"guru2": #593DBD,
"master": #294DDB,
"enlightened": #0093DD
);
.wklc {
color: #FFFFFF;
display: flex;
justify-content: center;
&-force-hidden {
display: none !important;
}
&-lesson-count {
border-radius: 3px !important;
}
&-items {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
}
&-item {
align-items: center;
background-color: #000000;
box-shadow: 3px 3px 0 #e1e1e1;
display: flex;
min-height: 2em;
min-width: 2.5em;
padding: 0 0.5em;
justify-content: center;
> span:first-child {
margin-right: 0.3em;
}
}
&-right {
display: flex;
margin-left: 0.5em;
width: 12em;
}
&-right {
div, button {
box-sizing: border-box;
text-align: center;
}
}
&-score {
align-items: center;
display: flex;
flex-direction: row;
justify-content: flex-start;
width: 8em;
> span:first-child {
text-align: left;
width: 50%;
}
}
&-btn-update {
border: 0;
color: inherit;
}
&-allowed-lessons {
display: inline-block;
padding: 0 1em;
height: 3em;
background-color: #000000;
color: #FFFFFF;
border-radius: 3px;
line-height: 3em;
&.disabled {
color: darkred;
}
}
@each $lvl in apprentice1, apprentice2, apprentice3, apprentice4, guru1, guru2, master, enlightened {
.wklc-#{$lvl} {
background-color: map-get($levels, $lvl);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment