refactor: remove unused and use bem
parent
9f441c31c7
commit
416c6895b0
@ -1,27 +1,64 @@
|
|||||||
@use '../shared/colors' as shared;
|
@use '../shared/colors' as colors;
|
||||||
|
|
||||||
.container {
|
.DayNumber {
|
||||||
width: 100%;
|
&__Container {
|
||||||
height: 100%;
|
width: 100%;
|
||||||
display: flex;
|
height: 100%;
|
||||||
align-items: center;
|
display: flex;
|
||||||
justify-content: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
&.greyed {
|
|
||||||
.text {
|
|
||||||
fill: shared.$day-content-defaultmode-defaultstate-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.svg {
|
&__Svg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__Text {
|
||||||
|
fill: colors.$day-content-defaultmode-defaultstate-color;
|
||||||
|
font-weight: 700;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
font-feature-settings: 'tnum' on, 'lnum' on;
|
||||||
|
|
||||||
|
// Greyed state
|
||||||
|
&--greyed {
|
||||||
|
fill: colors.$day-content-greyedmode-defaultstate-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Selected states
|
||||||
|
&--selected {
|
||||||
|
fill: colors.$day-content-defaultmode-selectedstate-midrange-color;
|
||||||
|
|
||||||
|
.DayNumber__Container--greyed & {
|
||||||
|
fill: colors.$day-content-greyedmode-selectedstate-midrange-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Selecting states
|
||||||
|
&--selecting {
|
||||||
|
fill: colors.$day-content-defaultmode-selectingstate-midrange-color;
|
||||||
|
|
||||||
|
.DayNumber__Container--greyed & {
|
||||||
|
fill: colors.$day-content-greyedmode-selectingstate-midrange-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Range start
|
||||||
|
&--rangeStart:not(&--rangeEnd) {
|
||||||
|
fill: colors.$day-content-defaultmode-selectedstate-rangestart-color;
|
||||||
|
|
||||||
.text {
|
.DayNumber__Container--greyed & {
|
||||||
fill: shared.$day-content-defaultmode-defaultstate-color;
|
fill: colors.$day-content-greyedmode-selectedstate-rangestart-color;
|
||||||
font-weight: 700;
|
}
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
}
|
||||||
font-feature-settings: 'tnum' on, 'lnum' on;
|
|
||||||
|
// Range end
|
||||||
|
&--rangeEnd:not(&--rangeStart) {
|
||||||
|
fill: colors.$day-content-defaultmode-selectedstate-rangeend-color;
|
||||||
|
|
||||||
|
.DayNumber__Container--greyed & {
|
||||||
|
fill: colors.$day-content-greyedmode-selectedstate-rangeend-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue