| 1 |
/** |
| 2 |
* Frontend Styles |
| 3 |
*/ |
| 4 |
@import "./variables"; |
| 5 |
|
| 6 |
.ghostkit-countdown { |
| 7 |
display: flex; |
| 8 |
flex-wrap: wrap; |
| 9 |
|
| 10 |
// Align. |
| 11 |
&-units-align-left { |
| 12 |
justify-content: flex-start; |
| 13 |
} |
| 14 |
|
| 15 |
&-units-align-center { |
| 16 |
justify-content: center; |
| 17 |
} |
| 18 |
|
| 19 |
&-units-align-right { |
| 20 |
justify-content: flex-end; |
| 21 |
} |
| 22 |
|
| 23 |
// Single unit. |
| 24 |
&-unit { |
| 25 |
flex: 0 0 auto; |
| 26 |
min-width: var(--gkt-countdown--unit__min-width); |
| 27 |
padding: var(--gkt-countdown--unit__padding-v) var(--gkt-countdown--unit__padding-h); |
| 28 |
text-align: center; |
| 29 |
|
| 30 |
span { |
| 31 |
display: block; |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
// Unit number. |
| 36 |
&-unit-number { |
| 37 |
font-size: var(--gkt-countdown--unit-number__font-size); |
| 38 |
font-weight: var(--gkt-countdown--unit-number__font-weight); |
| 39 |
color: var(--gkt-countdown--unit-number__color); |
| 40 |
} |
| 41 |
|
| 42 |
// Unit label. |
| 43 |
&-unit-label { |
| 44 |
font-size: var(--gkt-countdown--unit-label__font-size); |
| 45 |
color: var(--gkt-countdown--unit-label__color); |
| 46 |
} |
| 47 |
|
| 48 |
// Expire action. |
| 49 |
&-expire-action { |
| 50 |
display: none; |
| 51 |
width: 100%; |
| 52 |
} |
| 53 |
} |
| 54 |
|