Move background colors to mixin
This commit is contained in:
parent
1927244f26
commit
345b269435
|
|
@ -45,6 +45,7 @@
|
|||
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/_variables.scss";
|
||||
@import "@/styles/_mixins.scss";
|
||||
|
||||
.room-colors {
|
||||
display: flex;
|
||||
|
|
@ -72,18 +73,7 @@
|
|||
justify-items: center;
|
||||
align-items: center;
|
||||
|
||||
&--yellow {
|
||||
background-color: $color-accent-1;
|
||||
}
|
||||
&--blue {
|
||||
background-color: $color-accent-2;
|
||||
}
|
||||
&--red {
|
||||
background-color: $color-accent-3;
|
||||
}
|
||||
&--green {
|
||||
background-color: $color-accent-4;
|
||||
}
|
||||
@include skillbox-colors;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -56,15 +56,7 @@
|
|||
-ms-grid-rows: 210px 1fr;
|
||||
-ms-grid-columns: 1fr;
|
||||
|
||||
&--red {
|
||||
background-color: $red;
|
||||
}
|
||||
&--green {
|
||||
background-color: $green;
|
||||
}
|
||||
&--brown {
|
||||
background-color: $brown;
|
||||
}
|
||||
@include skillbox-colors;
|
||||
|
||||
svg {
|
||||
width: 30px;
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
|
||||
<style lang="scss" scoped>
|
||||
@import "@/styles/_variables.scss";
|
||||
@import "@/styles/_mixins.scss";
|
||||
|
||||
.skillbox {
|
||||
margin: 0 auto;
|
||||
|
|
@ -64,18 +65,7 @@
|
|||
-ms-grid-rows: auto 32px 1fr; // 1 extra row for gap
|
||||
-ms-grid-columns: 1fr;
|
||||
|
||||
&--yellow {
|
||||
background-color: $color-accent-1;
|
||||
}
|
||||
&--blue {
|
||||
background-color: $color-accent-2;
|
||||
}
|
||||
&--red {
|
||||
background-color: $color-accent-3;
|
||||
}
|
||||
&--green {
|
||||
background-color: $color-accent-4;
|
||||
}
|
||||
@include skillbox-colors;
|
||||
|
||||
&__header {
|
||||
grid-area: h;
|
||||
|
|
|
|||
|
|
@ -11,3 +11,19 @@
|
|||
font-size: 1rem;
|
||||
fill: $color-darkgrey-1;
|
||||
}
|
||||
|
||||
@mixin skillbox-colors {
|
||||
&--yellow {
|
||||
background-color: $color-accent-1;
|
||||
}
|
||||
&--blue {
|
||||
background-color: $color-accent-2;
|
||||
}
|
||||
&--red {
|
||||
background-color: $color-accent-3;
|
||||
}
|
||||
&--green {
|
||||
background-color: $color-accent-4;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue