hdoc-tools 0.41.6 → 0.41.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -229,3 +229,56 @@ p {
|
|
229
229
|
overflow-wrap: break-word;
|
230
230
|
}
|
231
231
|
|
232
|
+
:root{
|
233
|
+
/* Tweak the min/max to taste; ratio ≈ 1.25 across levels */
|
234
|
+
--h1-min: 2.0rem; --h1-max: 3.0rem; /* 32–48 */
|
235
|
+
--h2-min: 1.6rem; --h2-max: 2.25rem; /* 25.6–36 */
|
236
|
+
--h3-min: 1.35rem; --h3-max: 1.8rem; /* 21.6–28.8 */
|
237
|
+
--h4-min: 1.15rem; --h4-max: 1.45rem; /* 18.4–23.2 */
|
238
|
+
--h5-min: 1.05rem; --h5-max: 1.2rem; /* 16.8–19.2 */
|
239
|
+
--h6-min: 0.95rem; --h6-max: 1.05rem; /* 15.2–16.8 */
|
240
|
+
}
|
241
|
+
|
242
|
+
h3,h4 {
|
243
|
+
font-family: var(--hb-heading, inherit);
|
244
|
+
line-height: 1.15;
|
245
|
+
margin-top: 2.2em; /* consistent vertical rhythm */
|
246
|
+
margin-bottom: 0.6em;
|
247
|
+
letter-spacing: 0;
|
248
|
+
}
|
249
|
+
h1{
|
250
|
+
font-size: clamp(var(--h1-min), 2vw + 1rem, var(--h1-max));
|
251
|
+
font-weight: 750; /* strong but not shouty */
|
252
|
+
line-height: 1.1;
|
253
|
+
margin-top: 0; /* article title at top */
|
254
|
+
}
|
255
|
+
h2:not(.title){
|
256
|
+
font-size: clamp(var(--h2-min), 1.5vw + 0.9rem, var(--h2-max));
|
257
|
+
font-weight: 700;
|
258
|
+
/*border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);*/
|
259
|
+
padding-bottom: 0.2em;
|
260
|
+
}
|
261
|
+
h3{
|
262
|
+
font-size: clamp(var(--h3-min), 1.2vw + 0.7rem, var(--h3-max));
|
263
|
+
font-weight: 650;
|
264
|
+
}
|
265
|
+
h4{
|
266
|
+
font-size: clamp(var(--h4-min), 0.8vw + 0.65rem, var(--h4-max));
|
267
|
+
font-weight: 600;
|
268
|
+
}
|
269
|
+
h5:not(.description){
|
270
|
+
font-size: clamp(var(--h5-min), 0.6vw + 0.6rem, var(--h5-max));
|
271
|
+
font-weight: 550;
|
272
|
+
color: color-mix(in srgb, currentColor 85%, #000 15%);
|
273
|
+
}
|
274
|
+
h6:not(.description){
|
275
|
+
font-size: clamp(var(--h6-min), 0.4vw + 0.5rem, var(--h6-max));
|
276
|
+
font-weight: 600;
|
277
|
+
text-transform: uppercase; /* differentiate without shrinking */
|
278
|
+
letter-spacing: 0.06em;
|
279
|
+
color: color-mix(in srgb, currentColor 70%, #000 30%);
|
280
|
+
}
|
281
|
+
/* Better anchor linking with fixed headers/ToC */
|
282
|
+
:where(h1,h2,h3,h4,h5,h6){ scroll-margin-top: 96px; }
|
283
|
+
/* Tighten multi-line large headings */
|
284
|
+
h1, h2 { hyphens: auto; }
|
package/ui/index.html
CHANGED
@@ -159,7 +159,7 @@
|
|
159
159
|
<div class="toolbar-middle hb-center-v hb-container-expand">
|
160
160
|
|
161
161
|
<h2 class="title">{{docApp.title}}</h2>
|
162
|
-
<
|
162
|
+
<h5 class="description">{{docApp.description}}</h5>
|
163
163
|
|
164
164
|
<!-- could generate nav bar based on library settings -->
|
165
165
|
<!--
|