|
1 | 1 | @import "../../rh-sass/rh-sass"; |
| 2 | + |
| 3 | +/// =========================================================================== |
| 4 | +/// Component Specific SASS Vars |
| 5 | +/// =========================================================================== |
| 6 | + |
| 7 | +$rh-health--width: 10px; |
| 8 | +$rh-health--height: $rh-health--width * 2; |
| 9 | + |
| 10 | +$rh-health--color-bg: #fff; |
| 11 | + |
| 12 | +$rh-health--color-a: #3f9c35; |
| 13 | +$rh-health--color-b: #92d400; |
| 14 | +$rh-health--color-c: #efaa00; |
| 15 | +$rh-health--color-d: #ec7a08; |
| 16 | +$rh-health--color-e: #cc0000; |
| 17 | +$rh-health--color-f: #a30000; |
| 18 | + |
| 19 | +/// =========================================================================== |
| 20 | +/// WHATEVER |
| 21 | +/// =========================================================================== |
| 22 | + |
2 | 23 | :host { |
3 | 24 | display: inline-flex; |
4 | 25 | align-items: center; |
|
10 | 31 |
|
11 | 32 | .box-container { |
12 | 33 | display: flex; |
13 | | - border: 1px solid #ececec; |
14 | | - margin-left: 8px; |
| 34 | + border: 1px solid #{rh-color(surface--border)}; |
| 35 | + margin-left: #{rh-var(container-spacer--xs)}; |
15 | 36 |
|
16 | 37 | .box { |
17 | | - background: white; |
18 | | - width: 10px; |
19 | | - height: 20px; |
20 | | - border-right: 1px solid #ececec; |
| 38 | + background: $rh-health--color-bg; |
| 39 | + width: $rh-health--width; |
| 40 | + height: $rh-health--height; |
| 41 | + border-right: 1px solid #{rh-color(surface--border)}; |
21 | 42 |
|
22 | | - &.a.active { |
23 | | - background-color: #3f9c35; |
| 43 | + &:last-child { |
| 44 | + border-right: 0; |
24 | 45 | } |
25 | 46 |
|
26 | | - &.b.active { |
27 | | - background-color: #92d400; |
28 | | - } |
| 47 | + &.active { |
| 48 | + &.a { |
| 49 | + background-color: $rh-health--color-a; |
| 50 | + } |
29 | 51 |
|
30 | | - &.c.active { |
31 | | - background-color: #efaa00; |
32 | | - } |
| 52 | + &.b { |
| 53 | + background-color: $rh-health--color-b; |
| 54 | + } |
33 | 55 |
|
34 | | - &.d.active { |
35 | | - background-color: #ec7a08; |
36 | | - } |
| 56 | + &.c { |
| 57 | + background-color: $rh-health--color-c; |
| 58 | + } |
37 | 59 |
|
38 | | - &.e.active { |
39 | | - background-color: #cc0000; |
40 | | - } |
| 60 | + &.d { |
| 61 | + background-color: $rh-health--color-d; |
| 62 | + } |
| 63 | + |
| 64 | + &.e { |
| 65 | + background-color: $rh-health--color-e; |
| 66 | + } |
41 | 67 |
|
42 | | - &.f.active { |
43 | | - background-color: #a30000; |
| 68 | + &.f { |
| 69 | + background-color: $rh-health--color-f; |
| 70 | + } |
44 | 71 | } |
45 | 72 | } |
46 | 73 | } |
0 commit comments