Skip to content

Commit 6cca225

Browse files
wip: refine dark mode component styling
1 parent a96fc2d commit 6cca225

4 files changed

Lines changed: 35 additions & 31 deletions

File tree

assets/scss/_community.scss

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,20 @@
1818
--bs-primary: #{$white};
1919
--bs-primary-rgb: 255, 255, 255;
2020

21-
/* Count badges */
22-
.badge,
23-
.btn .badge,
24-
.filter-topics .badge,
25-
.topics-list .badge,
26-
span[class*="badge"] {
21+
/* Navigation count badges */
22+
.nav.nav-pills.shadow-sm.rounded.bg-body .nav-link > .badge.bg-primary {
2723
background-color: #0d6efd !important;
2824
color: $white !important;
2925
border: none !important;
3026
border-radius: $border-radius-pill !important;
3127
}
28+
3229
/* Topic tags */
3330
.topic-tag,
3431
.badge.bg-secondary.bg-opacity-10,
3532
span[class*="topic-tag"] {
36-
background-color: rgba($white, 0.12);
37-
color: $white;
33+
background-color: $dark !important;
34+
color: $white !important;
3835
border: 1px solid rgba($white, 0.2);
3936
border-radius: $border-radius-pill;
4037
&.active {
@@ -78,6 +75,12 @@
7875
}
7976

8077
/* Leadership badges */
78+
.sig-card-wrapper a.badge.bg-primary.bg-opacity-10 {
79+
background-color: $dark !important;
80+
color: $white !important;
81+
border: 1px solid rgba($white, 0.2) !important;
82+
}
83+
8184
.chair-tag,
8285
.tech-lead-tag,
8386
.sig-leader {

assets/scss/_kep_filter.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@
228228
font-size: 0.85rem;
229229
font-weight: 600;
230230
color: $primary;
231-
background: #fff;
232-
border: 1px solid $slate-200;
231+
background: var(--bs-body-bg);
232+
border: 1px solid var(--bs-border-color);
233233
border-radius: 6px;
234234
cursor: pointer;
235235
transition: all 0.15s ease;

assets/scss/_kep_page.scss

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
padding: 0;
44

55
.kep-banner-container {
6-
background-color: #fff;
7-
border: 1px solid #e0e4e8;
6+
background-color: var(--bs-body-bg);
7+
border: 1px solid var(--bs-border-color);
88
border-radius: 4px;
99
overflow: hidden;
1010
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
@@ -24,11 +24,11 @@
2424
position: relative;
2525

2626
&.border-start-refined {
27-
border-left: 1px solid #e0e4e8;
27+
border-left: 1px solid var(--bs-border-color);
2828

2929
@media (max-width: 991px) {
3030
border-left: none;
31-
border-top: 1px solid #e0e4e8;
31+
border-top: 1px solid var(--bs-border-color);
3232
}
3333
}
3434
}
@@ -38,7 +38,7 @@
3838
font-size: 0.7rem;
3939
text-transform: uppercase;
4040
letter-spacing: 0.15em;
41-
color: #8a94a6;
41+
color: var(--bs-secondary-color);
4242
margin-bottom: 2rem;
4343
display: block;
4444
font-weight: 600;
@@ -49,7 +49,7 @@
4949
font-size: 0.65rem;
5050
text-transform: uppercase;
5151
letter-spacing: 0.1em;
52-
color: #a0aec0;
52+
color: var(--bs-secondary-color);
5353
margin-bottom: 0.75rem;
5454
font-weight: 600;
5555
}
@@ -89,9 +89,9 @@
8989
}
9090

9191
&.kep-status-generic {
92-
background-color: $slate-50;
93-
color: $slate-600;
94-
border: 1px solid $slate-200;
92+
background-color: #198754;
93+
color: #fff;
94+
border: 1px solid #198754;
9595
}
9696
}
9797

@@ -110,7 +110,7 @@
110110
padding: 0.25rem 0;
111111

112112
.kep-data-label {
113-
color: $slate-500;
113+
color: var(--bs-secondary-color);
114114
display: flex;
115115
align-items: center;
116116

@@ -144,13 +144,13 @@
144144

145145
.kep-data-value {
146146
font-weight: 500;
147-
color: $slate-800;
147+
color: var(--bs-body-color);
148148

149149
code {
150-
background: $slate-100;
150+
background: var(--bs-tertiary-bg);
151151
padding: 0.1rem 0.4rem;
152152
border-radius: 3px;
153-
color: $slate-600;
153+
color: var(--bs-body-color);
154154
}
155155
}
156156
}
@@ -159,7 +159,7 @@
159159
.kep-main-link {
160160
font-size: 1.25rem;
161161
font-weight: 700;
162-
color: $slate-900;
162+
color: var(--bs-body-color);
163163
text-decoration: none;
164164
transition: color 0.2s ease;
165165

@@ -171,7 +171,7 @@
171171
.kep-tag-link {
172172
display: inline-block;
173173
padding: 0.25rem 0.5rem;
174-
background-color: $slate-500;
174+
background-color: var(--bs-secondary-color);
175175
border-radius: 4px;
176176
font-size: 0.75rem;
177177
font-weight: 500;
@@ -180,7 +180,7 @@
180180
transition: all 0.2s ease;
181181

182182
&:hover {
183-
background-color: $slate-600;
183+
background-color: var(--bs-body-color);
184184
color: #ffffff;
185185
transform: translateY(-1px);
186186
}
@@ -194,7 +194,7 @@
194194

195195
.kep-person-link {
196196
font-size: 0.85rem;
197-
color: $slate-600;
197+
color: var(--bs-body-color);
198198
text-decoration: none;
199199
display: flex;
200200
align-items: center;
@@ -281,7 +281,7 @@
281281

282282
h2 {
283283
font-size: 1.5rem;
284-
color: #1a1a1a;
284+
color: var(--bs-body-color);
285285
}
286286

287287
p {

assets/scss/_kep_table.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,10 @@
460460
// Required because DataTables overrides the active pagination background.
461461
&.current {
462462
&, &:hover {
463-
color: var(--bs-light) !important;
464-
background: var(--bs-primary) !important;
465-
border-color: var(--bs-primary);
463+
color: var(--bs-body-color) !important;
464+
background: var(--bs-tertiary-bg) !important;
465+
border-color: var(--bs-border-color) !important;
466+
box-shadow: none !important;
466467
}
467468
}
468469

0 commit comments

Comments
 (0)