|
13 | 13 | --color-increase-percentage: #328d1b; |
14 | 14 | } |
15 | 15 |
|
16 | | -.statistics-tab-holder { |
| 16 | +.statisticsTabHolder { |
17 | 17 | display: flex; |
18 | 18 | flex-direction: column; |
19 | 19 | justify-content: center; |
|
30 | 30 | margin: 0.5rem; |
31 | 31 | } |
32 | 32 |
|
33 | | - |
34 | 33 | /* Light mode (default) */ |
35 | | -.statistics-title { |
| 34 | +.statisticsTitle { |
36 | 35 | color: #000000; |
37 | 36 | font-size: larger; |
38 | 37 | text-align: center; |
39 | 38 | } |
40 | 39 |
|
41 | | - |
42 | | - |
43 | | - |
44 | 40 | /* All text and numbers inside the statistics boxes are black */ |
45 | | -.statistics-title, |
46 | | -.statistics-number, |
47 | | -.statistics-percentage { |
| 41 | +.statisticsTitle, |
| 42 | +.statisticsNumber, |
| 43 | +.statisticsPercentage { |
| 44 | + color: #000 !important; |
| 45 | +} |
| 46 | + |
| 47 | +/* Override white text in dark mode - keep statistics card text black for contrast with light card backgrounds */ |
| 48 | +/* This needs to be more specific than the rule in TotalOrgSummary.module.css line 17 */ |
| 49 | +/* Using .statisticsTabHolder to increase specificity and target only the card content */ |
| 50 | +:global(.bg-oxford-blue) .statisticsTabHolder .statisticsTitle, |
| 51 | +:global(.bg-oxford-blue) .statisticsTabHolder .statisticsNumber, |
| 52 | +:global(.bg-oxford-blue) .statisticsTabHolder .statisticsPercentage, |
| 53 | +:global(.bg-oxford-blue) .statisticsTabHolder h3.statisticsTitle, |
| 54 | +:global(.bg-oxford-blue) .statisticsTabHolder h3.statisticsNumber, |
| 55 | +:global(.bg-oxford-blue) .statisticsTabHolder h4.statisticsPercentage { |
48 | 56 | color: #000 !important; |
49 | 57 | } |
50 | 58 |
|
51 | 59 | /* Section headers above the boxes remain white in dark mode for contrast */ |
52 | | -.bg-oxford-blue .volunteerStatusGrid h3, |
53 | | -.bg-oxford-blue .componentContainer h3, |
54 | | -.bg-oxford-blue .statistics-section-title { |
| 60 | +/* Note: volunteerStatusGrid and componentContainer are from TotalOrgSummary.module.css, so they need :global() */ |
| 61 | +:global(.bg-oxford-blue) :global(.volunteerStatusGrid) h3, |
| 62 | +:global(.bg-oxford-blue) :global(.componentContainer) h3, |
| 63 | +:global(.bg-oxford-blue) :global(.statistics-section-title) { |
55 | 64 | color: #fff !important; |
56 | 65 | } |
57 | 66 |
|
58 | | -.statistics-number-shape { |
| 67 | +.statisticsNumberShape { |
59 | 68 | height: 3.6rem; |
60 | 69 | width: 5rem; |
61 | 70 | display: flex; |
|
64 | 73 | border-radius: 50%; |
65 | 74 | } |
66 | 75 |
|
67 | | - |
68 | | -.statistics-number { |
| 76 | +.statisticsNumber { |
69 | 77 | color: #000000; |
70 | 78 | } |
71 | 79 |
|
72 | | -.statistics-percentage { |
| 80 | +.statisticsPercentage { |
73 | 81 | margin-top: 0.75rem; |
74 | 82 | font-size: medium; |
75 | 83 | } |
76 | 84 |
|
77 | | - |
78 | | -.statistics-percentage-increase { |
| 85 | +.statisticsPercentageIncrease { |
79 | 86 | color: var(--color-increase-percentage); |
80 | 87 | } |
81 | | -.statistics-percentage-decrease { |
| 88 | + |
| 89 | +.statisticsPercentageDecrease { |
82 | 90 | color: var(--color-decrease-percentage); |
83 | 91 | } |
84 | 92 |
|
85 | | -.active-volunteers-tab-bg-color { |
| 93 | +.activeVolunteersTabBgColor { |
86 | 94 | background-color: var(--color-active-volunteers-tab-bg); |
87 | 95 | } |
88 | 96 |
|
89 | | -.active-volunteers-shape-bg-color { |
| 97 | +.activeVolunteersShapeBgColor { |
90 | 98 | background-color: var(--color-active-volunteers-shape-bg); |
91 | 99 | } |
92 | 100 |
|
93 | | -.new-volunteers-tab-bg-color { |
| 101 | +.newVolunteersTabBgColor { |
94 | 102 | background-color: var(--color-new-volunteers-tab-bg); |
95 | 103 | } |
96 | 104 |
|
97 | | -.new-volunteers-shape-bg-color { |
| 105 | +.newVolunteersShapeBgColor { |
98 | 106 | background-color: var(--color-new-volunteers-shape-bg); |
99 | 107 | } |
100 | 108 |
|
101 | | -.deactivated-volunteers-tab-bg-color { |
| 109 | +.deactivatedVolunteersTabBgColor { |
102 | 110 | background-color: var(--color-deactivated-volunteers-tab-bg); |
103 | 111 | } |
104 | 112 |
|
105 | | -.deactivated-volunteers-shape-bg-color { |
| 113 | +.deactivatedVolunteersShapeBgColor { |
106 | 114 | background-color: var(--color-deactivated-volunteers-shape-bg); |
107 | 115 | } |
108 | 116 |
|
109 | | -.total-hours-worked-tab-bg-color { |
| 117 | +.totalHoursWorkedTabBgColor { |
110 | 118 | background-color: var(--color-total-hours-worked-tab-bg); |
111 | 119 | } |
112 | 120 |
|
113 | | -.total-hours-worked-shape-bg-color { |
| 121 | +.totalHoursWorkedShapeBgColor { |
114 | 122 | background-color: var(--color-total-hours-worked-shape-bg); |
115 | 123 | } |
116 | 124 |
|
117 | 125 | @media (max-width: 768px) { |
118 | | - .statistics-tab-holder { |
| 126 | + .statisticsTabHolder { |
119 | 127 | width: 48%; |
120 | 128 | margin: 1%; |
121 | 129 | } |
122 | 130 | } |
123 | 131 |
|
124 | 132 | @media (max-width: 480px) { |
125 | | - .statistics-tab-holder { |
| 133 | + .statisticsTabHolder { |
126 | 134 | width: 100%; |
127 | 135 | margin: 0.5rem 0; |
128 | 136 | } |
129 | 137 | } |
| 138 | + |
0 commit comments