Skip to content

Commit 166285b

Browse files
committed
fix(ui): robust hero section and sleek header hierarchy
- Switched hero buttons to direct HTML for reliable rendering - Forced white color for hero H1 and P with high specificity - Restored sleek, lightweight (weight 300) hierarchy for H2-H6 - Removed default H2 borders for a cleaner layout
1 parent 95b039d commit 166285b

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

docs/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@ hide:
2424
Deliver strategic business value and agility through connected
2525
enterprise knowledge — one use case at a time.
2626

27-
<div class="hero-buttons" markdown="1">
28-
29-
[Explore the Use Case Tree](concept/use-case-tree.md){ .md-button
30-
.md-button--primary }
31-
[Browse example use cases](https://catalog.ekgf.org/){ .md-button }
32-
27+
<div class="hero-buttons">
28+
<a href="concept/use-case-tree.md" class="md-button md-button--primary">Explore the Use Case Tree</a>
29+
<a href="https://catalog.ekgf.org/" class="md-button">Browse example use cases</a>
3330
</div>
3431

3532
</div>

docs/stylesheets/extra.css

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
display: block;
112112
}
113113

114-
.md-typeset .hero-container h1 {
114+
.md-typeset .hero-container h1,
115+
[data-md-color-scheme="slate"] .md-typeset .hero-container h1 {
115116
color: white !important;
116117
font-size: 3rem !important;
117118
font-weight: 800 !important;
@@ -127,7 +128,8 @@
127128
display: none !important;
128129
}
129130

130-
.md-typeset .hero-container p {
131+
.md-typeset .hero-container p,
132+
[data-md-color-scheme="slate"] .md-typeset .hero-container p {
131133
font-size: 1.25rem !important;
132134
max-width: 850px !important;
133135
margin-left: auto !important;
@@ -146,7 +148,8 @@
146148
flex-wrap: wrap;
147149
}
148150

149-
.hero-buttons .md-button {
151+
.hero-buttons .md-button,
152+
[data-md-color-scheme="slate"] .hero-buttons .md-button {
150153
margin: 0 !important;
151154
padding: 0.6rem 1.5rem !important;
152155
font-weight: 700 !important;
@@ -157,13 +160,17 @@
157160
min-width: 180px;
158161
}
159162

160-
.hero-buttons .md-button--primary {
163+
.hero-buttons .md-button--primary,
164+
[data-md-color-scheme="slate"] .hero-buttons .md-button--primary {
161165
background-color: var(--md-accent-fg-color) !important;
162166
border-color: var(--md-accent-fg-color) !important;
163167
color: white !important;
164168
}
165169

166-
.hero-buttons .md-button:not(.md-button--primary) {
170+
.hero-buttons .md-button:not(.md-button--primary),
171+
[data-md-color-scheme="slate"]
172+
.hero-buttons
173+
.md-button:not(.md-button--primary) {
167174
background-color: rgba(255, 255, 255, 0.2) !important;
168175
border-color: rgba(255, 255, 255, 0.8) !important;
169176
color: white !important;
@@ -269,6 +276,7 @@ hr {
269276
}
270277

271278
/* Typography */
279+
272280
.md-typeset h1 {
273281
color: var(--md-primary-fg-color--dark);
274282
}
@@ -277,7 +285,7 @@ hr {
277285
font-weight: 300 !important;
278286
margin-top: 1.5rem !important;
279287
font-size: 1.2rem !important;
280-
color: var(--md-primary-fg-color--dark);
288+
color: var(--md-primary-fg-color--dark) !important;
281289
letter-spacing: -0.01em !important;
282290
line-height: 1.2 !important;
283291
border: none !important;
@@ -287,7 +295,7 @@ hr {
287295
font-weight: 400 !important;
288296
margin-top: 1.25rem !important;
289297
font-size: 1.1rem !important;
290-
color: var(--md-primary-fg-color);
298+
color: var(--md-primary-fg-color) !important;
291299
letter-spacing: -0.01em !important;
292300
line-height: 1.3 !important;
293301
}
@@ -296,7 +304,7 @@ hr {
296304
font-weight: 400 !important;
297305
margin-top: 1rem !important;
298306
font-size: 1rem !important;
299-
color: var(--md-primary-fg-color);
307+
color: var(--md-primary-fg-color) !important;
300308
letter-spacing: -0.01em !important;
301309
}
302310

@@ -305,7 +313,7 @@ hr {
305313
font-weight: 400 !important;
306314
margin-top: 1rem !important;
307315
font-size: 0.9rem !important;
308-
color: var(--md-primary-fg-color--light);
316+
color: var(--md-primary-fg-color--light) !important;
309317
letter-spacing: -0.01em !important;
310318
}
311319

0 commit comments

Comments
 (0)