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
15 changes: 8 additions & 7 deletions guidelines/guidelines.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ dd.new, dd.proposed, dd.changed {
}
.doclinks {
float: right;
border: thin solid black;
font-size: x-small;
border: thin solid #aaa;
background: #ecf2f7;
font-size: small;
display: block;
width: 25%;
hyphens: none;
padding: 1em;
display: flex;
flex-direction: column;
gap: .5em;
margin-left: 2em;
padding: 1em;
display: flex;
flex-direction: column;
gap: 1em;
margin: -0.5em 0 1em 2em;
}
.sc dt {
display: list-item;
Expand Down
3 changes: 2 additions & 1 deletion script/wcag.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function linkUnderstanding() {
if (node.id == "parsing") pathFrag = "parsing"; // special case parsing
var el = document.createElement("div");
el.setAttribute("class", "doclinks");
el.innerHTML = "<a href=\"" + understandingBaseURI + pathFrag + ".html\">Understanding " + heading + "</a> <span class=\"screenreader\">|</span> <br /><a href=\"https://www.w3.org/WAI/WCAG" + version + "/quickref/#" + pathFrag + "\">How to Meet " + heading + "</a>";
el.innerHTML = "<a href=\"" + understandingBaseURI + pathFrag + ".html\">Understanding " + heading +
"</a> <span class=\"screenreader\">|</span> <a href=\"https://www.w3.org/WAI/WCAG" + version + "/quickref/#" + pathFrag + "\">How to Meet " + heading + "</a>";
if (node.className = "sc") node.insertBefore(el, node.children[2]);
if (node.className = "guideline") node.insertBefore(el, node.children[1]);
})
Expand Down