|
1 | 1 | /* Enhanced Aesthetic CSS for Activity List */ |
2 | 2 |
|
3 | | -.body { |
4 | | - font-family: 'Poppins', sans-serif; |
5 | | - margin: 0; |
6 | | - padding: 0; |
7 | | - background-color: #fff; |
8 | | - color: #333; |
| 3 | +/* Activity List Container */ |
| 4 | +.activityListContainer { |
| 5 | + padding: 20px; |
| 6 | + min-height: calc(100vh - 140px); |
9 | 7 | } |
10 | 8 |
|
11 | | -.darkBody { |
12 | | - background: #1b2a41; |
| 9 | +/* Dark mode follows Dashboard pattern using bg-oxford-blue */ |
| 10 | +.activityListContainer:global(.bg-oxford-blue) { |
| 11 | + color: #ffffff; |
| 12 | + padding-bottom: 40px; |
13 | 13 | } |
14 | 14 |
|
15 | | -.h1 { |
| 15 | +.heading { |
16 | 16 | text-align: center; |
17 | 17 | margin: 20px 0; |
18 | 18 | color: #1e3a8a; |
19 | 19 | font-size: 2.5em; |
20 | 20 | font-weight: 600; |
21 | 21 | } |
22 | 22 |
|
| 23 | +/* Dark mode heading - uses global text-light class */ |
| 24 | +.activityListContainer:global(.bg-oxford-blue) .heading { |
| 25 | + color: #ffffff !important; |
| 26 | +} |
| 27 | + |
| 28 | +/* Body background helper when Activity List is in dark mode */ |
| 29 | +:global(.activity-list-dark-body), |
| 30 | +:global(.activity-list-dark-body #root), |
| 31 | +:global(.activity-list-dark-body .App) { |
| 32 | + background-color: #1b2a41 !important; |
| 33 | + color: #ffffff !important; |
| 34 | +} |
| 35 | + |
23 | 36 | .filters { |
24 | 37 | display: flex; |
25 | 38 | justify-content: center; |
| 39 | + align-items: flex-end; |
26 | 40 | gap: 30px; |
27 | 41 | margin: 30px 0; |
28 | 42 | padding: 10px; |
|
31 | 45 | box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); |
32 | 46 | } |
33 | 47 |
|
34 | | -.darkFilters { |
35 | | - background: #0f172a; |
| 48 | +/* Dark mode filters - navy-blue theme matching Dashboard */ |
| 49 | +.darkModeFilters { |
| 50 | + background: #1e2a3a; |
| 51 | + box-shadow: none; |
| 52 | + border: 1px solid #3a4a5c; |
| 53 | + border-radius: 0; |
36 | 54 | } |
37 | 55 |
|
38 | 56 | .filters label { |
|
49 | 67 | margin-top: 5px; |
50 | 68 | font-size: 1rem; |
51 | 69 | transition: all 0.3s ease; |
| 70 | + background-color: #ffffff; |
| 71 | + color: #333; |
52 | 72 | } |
53 | 73 |
|
54 | | -.filters input:focus { |
55 | | - outline: none; |
56 | | - border-color: #3b82f6; |
57 | | - box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); |
| 74 | +/* Dark mode inputs - navy-blue theme (#1e2a3a bg, #3a4a5c borders) */ |
| 75 | +.darkModeInput { |
| 76 | + background-color: #1e2a3a !important; |
| 77 | + color: #ffffff !important; |
| 78 | + border: 1px solid #3a4a5c !important; |
| 79 | + color-scheme: dark; |
58 | 80 | } |
59 | 81 |
|
60 | | -.filters select { |
61 | | - padding: 10px; |
62 | | - height: 48px; |
63 | | - border: 1px solid #d1d5db; |
64 | | - border-radius: 6px; |
65 | | - margin-top: 5px; |
66 | | - font-size: 1rem; |
| 82 | +/* Dark mode date input - style the calendar icon */ |
| 83 | +.darkModeInput[type="date"]::-webkit-calendar-picker-indicator { |
| 84 | + filter: invert(1); |
| 85 | + cursor: pointer; |
67 | 86 | } |
68 | 87 |
|
69 | | -.filters select:focus { |
| 88 | +.filters input:focus { |
70 | 89 | outline: none; |
71 | 90 | border-color: #3b82f6; |
72 | 91 | box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); |
73 | 92 | } |
74 | 93 |
|
75 | | -.filters button { |
76 | | - margin: 30px 0; |
77 | | - border: 1px solid #000000; |
78 | | - border-radius: 6px; |
79 | | - padding: 10px; |
| 94 | +/* Dark mode input focus */ |
| 95 | +.darkModeInput:focus { |
| 96 | + border-color: #5c9ce6 !important; |
| 97 | + box-shadow: 0 0 8px rgba(92, 156, 230, 0.5) !important; |
80 | 98 | } |
81 | 99 |
|
82 | | -.filters button:hover:not(:disabled) { |
83 | | - transform: scale(1.05); |
| 100 | +/* Dark mode input placeholder */ |
| 101 | +.darkModeInput::placeholder { |
| 102 | + color: #a0a0a0; |
84 | 103 | } |
85 | 104 |
|
86 | | -.darkFilters button { |
87 | | - border: 1px solid #ffffff; |
| 105 | +/* Clear All button */ |
| 106 | +.clearButton { |
| 107 | + padding: 10px 20px; |
| 108 | + background-color: #ef4444; |
| 109 | + color: #ffffff; |
| 110 | + border: none; |
| 111 | + border-radius: 6px; |
| 112 | + font-size: 1rem; |
| 113 | + cursor: pointer; |
| 114 | + transition: all 0.3s ease; |
88 | 115 | } |
89 | 116 |
|
90 | | -.darkFilters input { |
91 | | - background: #0f172a; |
92 | | - border: 1px solid #ffffff; |
| 117 | +.clearButton:hover:not(:disabled) { |
| 118 | + background-color: #dc2626; |
| 119 | + transform: translateY(-2px); |
| 120 | + box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3); |
93 | 121 | } |
94 | 122 |
|
95 | | -.darkFilters select{ |
96 | | - background: #0f172a; |
97 | | - border: 1px solid #ffffff; |
| 123 | +.clearButton:disabled { |
| 124 | + background-color: #9ca3af; |
| 125 | + cursor: not-allowed; |
| 126 | + opacity: 0.6; |
98 | 127 | } |
99 | 128 |
|
100 | 129 | .activityList { |
|
106 | 135 | box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); |
107 | 136 | } |
108 | 137 |
|
109 | | -.darkActivityList { |
110 | | - background: #2b3e59; |
| 138 | +/* Dark mode activity list - remove border-radius, margin, box-shadow artifacts */ |
| 139 | +.darkModeList { |
| 140 | + background: #1e2a3a; |
| 141 | + box-shadow: none; |
| 142 | + border: 1px solid #3a4a5c; |
| 143 | + border-radius: 0; |
| 144 | + margin: 0 auto; |
111 | 145 | } |
112 | 146 |
|
113 | 147 | .activityList ul { |
|
127 | 161 | transition: transform 0.2s ease, box-shadow 0.2s ease; |
128 | 162 | } |
129 | 163 |
|
130 | | -.darkActivityList li { |
131 | | - background: #1b2a41; |
| 164 | +/* Dark mode list items - navy-blue theme */ |
| 165 | +.darkModeItem { |
| 166 | + background-color: #1e2a3a !important; |
| 167 | + border: 1px solid #3a4a5c !important; |
| 168 | + color: #ffffff !important; |
| 169 | + border-radius: 0; |
132 | 170 | } |
133 | 171 |
|
134 | 172 | .activityList li:hover { |
135 | 173 | transform: translateY(-3px); |
136 | 174 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
137 | 175 | } |
138 | 176 |
|
| 177 | +/* Dark mode list item hover - button color theme (#3d4f62) */ |
| 178 | +.darkModeItem:hover { |
| 179 | + background-color: #3d4f62 !important; |
| 180 | + box-shadow: none !important; |
| 181 | +} |
| 182 | + |
139 | 183 | .activityList li strong { |
140 | 184 | color: #1e3a8a; |
141 | 185 | font-size: 1.2rem; |
142 | 186 | } |
143 | 187 |
|
| 188 | +/* Dark mode strong text */ |
| 189 | +.darkModeItem strong { |
| 190 | + color: #5c9ce6 !important; |
| 191 | +} |
| 192 | + |
144 | 193 | .activityList li span { |
145 | 194 | color: #4b5563; |
146 | 195 | } |
147 | 196 |
|
| 197 | +/* Dark mode span text */ |
| 198 | +.darkModeItem span { |
| 199 | + color: #d1d5db !important; |
| 200 | +} |
| 201 | + |
148 | 202 | .activityList p { |
149 | 203 | text-align: center; |
150 | 204 | color: #6b7280; |
|
0 commit comments