Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / styles / scss / components / _meter-bar.scss
blob841ba16f045d28815df0fdf7d7fd78aa95d29ed0
1 .meter-bar {
2         --size: #{em(10)};
3         --meter-bar-background-color: var(--border-norm);
4         --meter-bar-thumb-color-success: var(--signal-success);
6         inline-size: 100%;
7         overflow: hidden;
8         background-color: var(--meter-bar-background-color);
10         &,
11         &-thumb {
12                 block-size: var(--size);
13         }
15         &-thumb {
16                 min-inline-size: 3%;
17                 background: var(--meter-bar-thumb-color-success);
19                 &--warning {
20                         background: var(--signal-warning);
21                 }
23                 &--danger {
24                         background: var(--signal-danger);
25                 }
26         }
28         &:not(.is-squared),
29         &:not(.is-squared) &-thumb {
30                 border-radius: calc(var(--size) / 2);
31         }
33         &.is-thin {
34                 --size: #{em(4)};
35         }