Skip to content

Commit b56c8b5

Browse files
committed
fix page in light theme
1 parent ed0349d commit b56c8b5

2 files changed

Lines changed: 198 additions & 70 deletions

File tree

src/app/pages/mapping/mapping.component.css

Lines changed: 149 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
gap: 6px;
2121
}
2222

23-
.search-field { width: 100%; }
23+
.search-field {
24+
width: 100%;
25+
}
2426

2527
.search-field .mat-form-field-wrapper,
2628
.search-field .mat-mdc-form-field-subscript-wrapper {
@@ -36,19 +38,25 @@
3638
.search-chip {
3739
font-size: 0.76rem !important;
3840
height: 22px !important;
39-
background: rgba(255,255,255,0.1) !important;
40-
color: var(--text-primary, #e0e0e0) !important;
41-
border: 1px solid rgba(255,255,255,0.18) !important;
41+
background: var(--background-tertiary);
42+
border: 1px solid var(--border-subtle);
43+
color: var(--text-primary, #212121) !important;
4244
letter-spacing: 0.01em;
4345
}
46+
4447
.search-chip .mat-chip-remove,
4548
.search-chip button[matChipRemove] {
46-
color: var(--text-secondary, #9e9e9e) !important;
49+
color: var(--text-secondary, #616161) !important;
4750
opacity: 1 !important;
4851
}
4952

50-
.clear-btn { color: var(--text-tertiary, #616161) !important; }
51-
.clear-btn:hover { color: var(--text-secondary, #9e9e9e) !important; }
53+
.clear-btn {
54+
color: var(--text-tertiary, #757575) !important;
55+
}
56+
57+
.clear-btn:hover {
58+
color: var(--text-secondary, #424242) !important;
59+
}
5260

5361
.search-status {
5462
font-size: 0.76rem;
@@ -57,23 +65,25 @@
5765
min-height: 18px;
5866
}
5967

60-
.status-idle { color: var(--text-tertiary, #616161); }
68+
.status-idle {
69+
color: var(--text-tertiary, #757575);
70+
}
6171

6272
.status-idle kbd {
6373
display: inline-flex;
6474
align-items: center;
6575
padding: 0 4px;
66-
border: 1px solid rgba(255,255,255,0.12);
76+
border: 1px solid rgba(0, 0, 0, 0.15);
6777
border-radius: 3px;
6878
font-family: inherit;
6979
font-size: 0.72rem;
70-
background: rgba(255,255,255,0.05);
71-
color: var(--text-secondary, #9e9e9e);
80+
background: rgba(0, 0, 0, 0.04);
81+
color: var(--text-secondary, #616161);
7282
vertical-align: middle;
7383
}
7484

7585
.status-active {
76-
color: var(--text-secondary, #9e9e9e);
86+
color: var(--text-secondary, #616161);
7787
display: flex;
7888
align-items: center;
7989
flex-wrap: wrap;
@@ -87,7 +97,7 @@
8797

8898
.term-list {
8999
font-weight: 600;
90-
color: var(--text-primary, #e0e0e0);
100+
color: var(--text-primary, #212121);
91101
}
92102

93103
.clear-link {
@@ -96,11 +106,14 @@
96106
padding: 0;
97107
cursor: pointer;
98108
font-size: inherit;
99-
color: var(--text-tertiary, #616161);
109+
color: var(--text-tertiary, #757575);
100110
text-decoration: underline;
101111
text-underline-offset: 2px;
102112
}
103-
.clear-link:hover { color: var(--text-secondary, #9e9e9e); }
113+
114+
.clear-link:hover {
115+
color: var(--text-secondary, #424242);
116+
}
104117

105118
.toolbar-actions {
106119
margin-left: auto;
@@ -118,8 +131,14 @@
118131
color: #071a09 !important;
119132
border-color: transparent !important;
120133
}
121-
.export-btn:not([disabled]):hover { background: #66bb6a !important; }
122-
.export-btn[disabled] { opacity: 0.35; }
134+
135+
.export-btn:not([disabled]):hover {
136+
background: #66bb6a !important;
137+
}
138+
139+
.export-btn[disabled] {
140+
opacity: 0.35;
141+
}
123142

124143
.table-wrap {
125144
position: relative;
@@ -128,7 +147,7 @@
128147
margin: 0 24px 32px;
129148
border-radius: 6px;
130149
overflow: hidden;
131-
border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
150+
border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
132151
min-height: 200px;
133152
flex: 1;
134153
}
@@ -142,57 +161,103 @@
142161
align-items: center;
143162
justify-content: center;
144163
gap: 14px;
145-
background: var(--surface-00, rgba(28,28,28,0.9));
164+
background: var(--surface-00, rgba(255, 255, 255, 0.9));
146165
}
166+
147167
.loading-text {
148168
font-size: 0.84rem;
149-
color: var(--text-secondary, #9e9e9e);
169+
color: var(--text-secondary, #616161);
150170
}
151171

152172
.mapping-table {
153173
width: 100%;
154174
table-layout: fixed;
155175
}
156176

157-
.mapping-table .mat-column-dimension { width: 12%; }
158-
.mapping-table .mat-column-subDimension { width: 15%; }
159-
.mapping-table .mat-column-activityName { width: 26%; }
160-
.mapping-table .mat-column-samm2 { width: 14%; }
161-
.mapping-table .mat-column-ISO17 { width: 16%; }
162-
.mapping-table .mat-column-ISO22 { width: 17%; }
177+
.mapping-table .mat-column-dimension {
178+
width: 12%;
179+
}
180+
181+
.mapping-table .mat-column-subDimension {
182+
width: 15%;
183+
}
184+
185+
.mapping-table .mat-column-activityName {
186+
width: 26%;
187+
}
188+
189+
.mapping-table .mat-column-samm2 {
190+
width: 14%;
191+
}
192+
193+
.mapping-table .mat-column-ISO17 {
194+
width: 16%;
195+
}
196+
197+
.mapping-table .mat-column-ISO22 {
198+
width: 17%;
199+
}
163200

164201
.mat-header-cell {
165202
font-size: 0.68rem;
166203
font-weight: 700;
167204
letter-spacing: 0.08em;
168205
text-transform: uppercase;
169-
color: var(--text-tertiary, #757575);
206+
color: var(--text-primary);
170207
padding: 10px 12px;
171-
background: var(--surface-01, #272727);
172-
border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
208+
background: var(--background-secondary);
209+
border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
173210
white-space: nowrap;
174211
}
175-
.mat-sort-header-container { overflow: visible; }
176-
.mat-header-cell .mat-sort-header-button { padding-right: 18px; }
177-
.mat-sort-header[disabled] { cursor: default; pointer-events: none; }
212+
213+
.mat-sort-header-container {
214+
overflow: visible;
215+
}
216+
217+
.mat-header-cell .mat-sort-header-button {
218+
padding-right: 18px;
219+
}
220+
221+
.mat-sort-header[disabled] {
222+
cursor: default;
223+
pointer-events: none;
224+
}
178225

179226
.mat-cell {
180227
padding: 11px 12px;
181228
vertical-align: top;
182-
font-size: 0.84rem;
229+
font-size: 0.88rem;
183230
line-height: 1.55;
184-
color: var(--text-primary, #e0e0e0);
185-
border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
231+
color: var(--text-primary, #212121);
232+
border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
186233
word-break: break-word;
187234
}
188235

189-
.data-row { transition: background 80ms ease; }
190-
.data-row:hover { background: rgba(255,255,255,0.04); }
191-
.data-row:nth-child(even) { background: rgba(255,255,255,0.015); }
192-
.data-row:nth-child(even):hover { background: rgba(255,255,255,0.045); }
236+
.data-row {
237+
transition: background 80ms ease;
238+
}
239+
240+
.data-row:hover {
241+
background: var(--background-hover);
242+
}
243+
244+
.data-row:nth-child(even) {
245+
opacity: 0.98;
246+
}
247+
248+
.data-row:nth-child(even):hover {
249+
background: rgba(0, 0, 0, 0.03);
250+
}
193251

194-
.cell-dimension { color: var(--text-secondary, #9e9e9e); font-size: 0.80rem; }
195-
.cell-subdimension { color: var(--text-secondary, #9e9e9e); font-size: 0.82rem; }
252+
.cell-dimension {
253+
color: var(--text-secondary, #616161);
254+
font-size: 0.80rem;
255+
}
256+
257+
.cell-subdimension {
258+
color: var(--text-secondary, #616161);
259+
font-size: 0.82rem;
260+
}
196261

197262
.activity-link {
198263
display: block;
@@ -202,6 +267,7 @@
202267
font-size: 0.85rem;
203268
line-height: 1.45;
204269
}
270+
205271
.activity-link:hover {
206272
text-decoration: underline;
207273
text-underline-offset: 2px;
@@ -213,24 +279,30 @@
213279
margin-top: 3px;
214280
font-size: 0.70rem;
215281
letter-spacing: 0.04em;
216-
color: var(--text-tertiary, #616161);
282+
color: var(--text-tertiary, #757575);
217283
font-weight: 500;
218284
}
219285

220-
.cell-refs { vertical-align: top; }
286+
.cell-refs {
287+
vertical-align: top;
288+
}
289+
221290
.refs-text {
222291
font-size: 0.78rem;
223-
color: var(--text-secondary, #9e9e9e);
292+
color: var(--text-secondary, #616161);
224293
line-height: 1.6;
225294
}
226295

227296
.cell-empty {
228-
color: var(--text-tertiary, #424242);
297+
color: var(--text-tertiary, #9e9e9e);
229298
user-select: none;
230299
font-size: 0.85rem;
231300
}
232301

233-
.no-data-cell { border: none !important; padding: 0 !important; }
302+
.no-data-cell {
303+
border: none !important;
304+
padding: 0 !important;
305+
}
234306

235307
.no-data {
236308
display: flex;
@@ -246,39 +318,56 @@
246318
font-size: 2rem;
247319
width: 2rem;
248320
height: 2rem;
249-
color: var(--text-tertiary, #424242);
321+
color: var(--text-tertiary, #9e9e9e);
250322
}
251323

252324
.no-data p {
253325
margin: 0;
254326
font-size: 0.88rem;
255-
color: var(--text-secondary, #9e9e9e);
327+
color: var(--text-secondary, #616161);
256328
}
257329

258330
.no-data button {
259331
font-size: 0.80rem;
260-
border-color: var(--border-subtle, rgba(255,255,255,0.12)) !important;
261-
color: var(--text-secondary, #9e9e9e) !important;
332+
border-color: var(--border-subtle, rgba(0, 0, 0, 0.15)) !important;
333+
color: var(--text-secondary, #616161) !important;
262334
}
335+
263336
.no-data button:hover {
264-
border-color: rgba(255,255,255,0.25) !important;
265-
color: var(--text-primary, #e0e0e0) !important;
337+
border-color: rgba(0, 0, 0, 0.35) !important;
338+
color: var(--text-primary, #212121) !important;
266339
}
267340

268341
mat-paginator {
269-
background: var(--surface-01, #272727);
270-
border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.07));
342+
background: var(--background-secondary);
343+
border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
271344
font-size: 0.80rem;
272-
color: var(--text-secondary, #9e9e9e);
345+
color: var(--text-secondary, #616161);
273346
}
274347

275348
@media (max-width: 900px) {
276-
.toolbar { flex-wrap: wrap; }
277-
.toolbar-actions { margin-left: 0; align-self: flex-end; }
349+
.toolbar {
350+
flex-wrap: wrap;
351+
}
352+
353+
.toolbar-actions {
354+
margin-left: 0;
355+
align-self: flex-end;
356+
}
278357
}
279358

280359
@media (max-width: 700px) {
281-
.table-wrap { margin: 0 8px 24px; overflow-x: auto; }
282-
.mapping-table { table-layout: auto; min-width: 680px; }
283-
.export-btn { width: 100%; }
360+
.table-wrap {
361+
margin: 0 8px 24px;
362+
overflow-x: auto;
363+
}
364+
365+
.mapping-table {
366+
table-layout: auto;
367+
min-width: 680px;
368+
}
369+
370+
.export-btn {
371+
width: 100%;
372+
}
284373
}

0 commit comments

Comments
 (0)