Skip to content

Commit

Permalink
Merge pull request #407 from w3c/reorg-multipart
Browse files Browse the repository at this point in the history
Split the specification into parts
  • Loading branch information
mattgarrish authored Mar 18, 2019
2 parents dcd922c + eb5e46d commit 26af644
Show file tree
Hide file tree
Showing 3 changed files with 3,087 additions and 2,894 deletions.
17 changes: 15 additions & 2 deletions common/css/common.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

section.part > h2 > span.secno {
display: none;
}

a.suppress {
display: inline-block !important;
margin-left: -4rem !important;
margin-bottom: 0.5rem !important;
}

a.suppress > span.secno {
display: none;
}

ul.ack > li,
ul.flat > li {
display: inline;
Expand All @@ -19,8 +33,7 @@ ul.flat {
padding-left: 0;
}

:not(div) > dl > dt,
:not(div) > dl > dd {
dt, dd {
padding-top: 0.5em;
}

Expand Down
13 changes: 13 additions & 0 deletions common/js/parts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

function denumber_parts() {

var toc_entries = document.querySelectorAll('nav#toc > ol.toc > li.tocline');

for (var i = 0; i < toc_entries.length; i++) {
toc_label = toc_entries[i].querySelector('a.tocxref');

if (toc_label.textContent.match(/part i+:/i)) {
toc_label.classList.add('suppress');
}
}
}
Loading

0 comments on commit 26af644

Please sign in to comment.