Skip to content

Commit e2e1b4b

Browse files
committed
docs: fix cross-page formatting consistency on GitHub Pages
Made-with: Cursor
1 parent aead8f1 commit e2e1b4b

File tree

1 file changed

+79
-30
lines changed

1 file changed

+79
-30
lines changed

docs/_layouts/default.html

Lines changed: 79 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -114,39 +114,84 @@
114114
.main-content {
115115
max-width: 920px;
116116
}
117-
/* Fix Cayman's teal h2/h3 color bleed */
117+
/* Fix Cayman's teal color bleed on all heading levels */
118118
.main-content h1,
119119
.main-content h2,
120120
.main-content h3,
121-
.main-content h4 {
122-
color: #24292f;
121+
.main-content h4,
122+
.main-content h5,
123+
.main-content h6 {
124+
color: #24292f !important;
123125
}
124126
.main-content h2 {
125127
border-bottom: 1px solid #d0d7de;
126128
padding-bottom: 0.4rem;
129+
margin-top: 2rem;
127130
}
128-
/* Fix teal paragraph text from Cayman link inheritance */
131+
.main-content h3 {
132+
margin-top: 1.5rem;
133+
}
134+
/* Fix teal text from Cayman link color cascade */
129135
.main-content p,
130136
.main-content li,
131-
.main-content blockquote {
132-
color: #24292f;
137+
.main-content dt,
138+
.main-content dd,
139+
.main-content td,
140+
.main-content th {
141+
color: #24292f !important;
133142
}
134143
.main-content blockquote {
135144
border-left: 4px solid #d0d7de;
136-
padding: 0.5rem 1rem;
145+
padding: 0.6rem 1rem;
137146
background: #f6f8fa;
138147
border-radius: 0 4px 4px 0;
148+
margin: 1rem 0;
139149
}
140-
.main-content blockquote p { margin: 0; }
141-
.main-content a { color: #0969da; }
150+
.main-content blockquote p { margin: 0; color: #57606a !important; }
151+
.main-content a { color: #0969da !important; }
152+
.main-content a:hover { text-decoration: underline; }
153+
/* Inline code */
142154
.main-content code {
143-
background: #f6f8fa;
155+
background: #eef0f3;
144156
border: 1px solid #d0d7de;
145157
border-radius: 4px;
146158
padding: 1px 5px;
147159
font-size: 0.88em;
148-
color: #24292f;
160+
color: #24292f !important;
161+
}
162+
/* Block code — distinct from page bg */
163+
.main-content pre {
164+
background: #f0f2f5;
165+
border: 1px solid #d0d7de;
166+
border-radius: 6px;
167+
padding: 1rem 1.2rem;
168+
}
169+
.main-content pre code {
170+
background: none;
171+
border: none;
172+
padding: 0;
173+
font-size: 0.85em;
174+
color: #24292f !important;
175+
}
176+
/* Tables */
177+
.main-content table {
178+
border-collapse: collapse;
179+
width: 100%;
180+
margin: 1rem 0;
181+
}
182+
.main-content th {
183+
background: #f0f2f5;
184+
border: 1px solid #d0d7de;
185+
padding: 8px 12px;
186+
text-align: left;
187+
font-size: 0.85rem;
188+
}
189+
.main-content td {
190+
border: 1px solid #d0d7de;
191+
padding: 7px 12px;
192+
font-size: 0.85rem;
149193
}
194+
.main-content tr:nth-child(even) td { background: #f6f8fa; }
150195

151196
/* ── Feature grid ── */
152197
.feature-grid {
@@ -183,17 +228,20 @@
183228
margin: 2rem 0 1rem;
184229
}
185230
.doc-nav a {
186-
background: #161b22;
187-
border: 1px solid #21262d;
231+
background: #f0f2f5;
232+
border: 1px solid #d0d7de;
188233
border-radius: 6px;
189234
padding: 6px 14px;
190235
font-size: 12px;
191236
font-family: "SFMono-Regular", Consolas, monospace;
192-
color: #58a6ff;
193-
text-decoration: none;
194-
transition: background 0.15s;
237+
color: #0969da !important;
238+
text-decoration: none !important;
239+
transition: background 0.15s, border-color 0.15s;
240+
}
241+
.doc-nav a:hover {
242+
background: #e6edf3;
243+
border-color: #0969da;
195244
}
196-
.doc-nav a:hover { background: #1c2128; }
197245

198246
/* ── Screenshot ── */
199247
.screenshot-wrap {
@@ -215,16 +263,17 @@
215263

216264
/* ── Footer ── */
217265
.site-footer {
218-
border-top: 1px solid #d0d7de;
219-
background: #f6f8fa;
220-
padding: 1.4rem 2rem;
221-
font-size: 0.8rem;
222-
color: #57606a;
223-
text-align: center;
224-
}
266+
border-top: 1px solid #d0d7de !important;
267+
background: #f6f8fa !important;
268+
padding: 1.4rem 2rem !important;
269+
font-size: 0.8rem !important;
270+
color: #57606a !important;
271+
text-align: center !important;
272+
}
273+
.site-footer-owner { margin-bottom: 0.25rem; }
225274
.site-footer-owner a,
226-
.site-footer-credits a { color: #0969da; }
227-
.site-footer-credits { display: block; margin-top: 0.2rem; }
275+
.site-footer-credits a { color: #0969da !important; }
276+
.site-footer-credits { margin-top: 0.1rem; }
228277

229278
/* ── Copy button ── */
230279
.code-block-wrap {
@@ -316,17 +365,17 @@
316365
{% include page-nav.html %}
317366
{% endif %}
318367
<footer class="site-footer">
319-
<span class="site-footer-owner">
368+
<div class="site-footer-owner">
320369
<a href="https://github.com/TMHSDigital/subenum">subenum</a> is maintained by
321370
<a href="https://github.com/TMHSDigital">TMHSDigital</a>
322-
</span>
323-
<span class="site-footer-credits">
371+
</div>
372+
<div class="site-footer-credits">
324373
<a href="{{ '/CONTRIBUTING.html' | relative_url }}">Contributing</a>
325374
&nbsp;&middot;&nbsp;
326375
<a href="https://github.com/TMHSDigital/subenum/blob/main/SECURITY.md">Security</a>
327376
&nbsp;&middot;&nbsp;
328377
<a href="https://github.com/TMHSDigital/subenum/blob/main/LICENSE">GPL-3.0</a>
329-
</span>
378+
</div>
330379
</footer>
331380
</main>
332381

0 commit comments

Comments
 (0)