Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions csstest.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ var Test = function (spec) {
}),
);
}

contents.push(
$.create({
tag: 'a',
properties: {
href: '#' + spec.id,
textContent: '#',
className: 'section-link',
},
}),
);
}

var h1 = $.create({
Expand Down
13 changes: 13 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ h2 {
display: flex;
align-items: center;
font-size: 180%;
position: relative;
}

#content > section section section h1:hover > .section-link {
display: block;
}

#content > section section section section h1 {
Expand Down Expand Up @@ -180,6 +185,14 @@ details summary > .spec-link::before {
vertical-align: -4px;
}

.section-link {
display: none;
position: absolute;
left: calc(-1 * 1.2em);
width: 1.2em;
text-align: center;
}

body > h1 {
position: fixed;
left: 0;
Expand Down