Skip to content

Commit f94e0f6

Browse files
committed
Update for Wattsi changes
1 parent 2e46d8a commit f94e0f6

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed

dev/styles.css

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ var > var::after {
269269
}
270270

271271

272-
/* TODO: Wattsi should omit these */
273-
pre.idl {
274-
display: none;
275-
}
276-
277272
/* SPECIFIC ELEMENTS */
278273
/* Header */
279274

@@ -321,11 +316,6 @@ body > nav {
321316
margin: 2em 0;
322317
}
323318

324-
/* TODO: Wattsi should omit these */
325-
h2#contents, ol.brief.toc {
326-
display: none;
327-
}
328-
329319
ol.toc a:link {
330320
border-bottom: 1px solid #bbb;
331321
}
@@ -347,41 +337,35 @@ ol.toc .secno {
347337
color: #888888;
348338
}
349339

350-
/*
351-
TODO we distinguish between index and not by h2 + .toc vs. nav + .toc on index, which is silly.
352-
Instead we should get a dedicated class for the index file, and also Wattsi should omit the
353-
things we are `display: none`ing.
354-
*/
355-
356-
h2 + ol.toc li {
340+
body.index ol.toc li {
357341
position: relative;
358342
}
359343

360-
h2 + ol.toc li .secno {
344+
body.index ol.toc li .secno {
361345
position: absolute;
362346
left: -1.7em;
363347
}
364348

365-
h2 + ol.toc li li {
349+
body.index ol.toc li li {
366350
margin-left: 1.6em;
367351
}
368352

369-
h2 + ol.toc li li .secno {
353+
body.index ol.toc li li .secno {
370354
left: -1.7em;
371355
}
372356

373-
h2 + ol.toc li li a {
357+
body.index ol.toc li li a {
374358
margin-left: 1em;
375359
}
376360

377-
h2 + ol.toc li ol ol {
361+
body.index ol.toc li ol ol {
378362
display: none;
379363
}
380364

381-
nav + .toc li {
365+
body:not(.index) ol.toc li {
382366
margin-bottom: 0.2em;
383367
}
384-
nav + .toc ol {
368+
body:not(.index) ol.toc ol {
385369
margin: 0;
386370
}
387371

source

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,10 @@
256256

257257
<hr w-nodev w-nosplit>
258258

259-
<div w-nodev w-nosplit id="configUI"></div>
260-
261259
<h2 class="no-num no-toc" w-nosplit>Table of contents</h2>
262260
<!--smalltoc-->
263261

264-
<h2 class="no-num no-toc" id="contents" w-nosplit>Full table of contents</h2>
262+
<h2 class="no-num no-toc" id="contents" w-nosplit w-nodev>Full table of contents</h2>
265263
<!--toc-->
266264

267265
<!--

0 commit comments

Comments
 (0)