Skip to content

Commit a3fc8d8

Browse files
patrickhlaukekfranqueirombgower
authored
Restyle doclinks box (#4590)
Apply proposed styles from #1130 (comment) Closes #1130 Live preview: https://deploy-preview-4590--wcag2.netlify.app/guidelines/#text-alternatives --------- Co-authored-by: Kenneth G. Franqueiro <[email protected]> Co-authored-by: Mike Gower <[email protected]>
1 parent 81eb4b3 commit a3fc8d8

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

guidelines/guidelines.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@ dd.new, dd.proposed, dd.changed {
3535
}
3636
.doclinks {
3737
float: right;
38-
border: thin solid black;
39-
font-size: x-small;
38+
border: thin solid #aaa;
39+
background: #ecf2f7;
40+
font-size: small;
4041
display: block;
4142
width: 25%;
4243
hyphens: none;
43-
padding: 1em;
44-
display: flex;
45-
flex-direction: column;
46-
gap: .5em;
47-
margin-left: 2em;
44+
padding: 1em;
45+
display: flex;
46+
flex-direction: column;
47+
gap: 1em;
48+
margin: -0.5em 0 1em 2em;
4849
}
4950
.sc dt {
5051
display: list-item;

script/wcag.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function linkUnderstanding() {
2626
if (node.id == "parsing") pathFrag = "parsing"; // special case parsing
2727
var el = document.createElement("div");
2828
el.setAttribute("class", "doclinks");
29-
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>";
29+
el.innerHTML = "<a href=\"" + understandingBaseURI + pathFrag + ".html\">Understanding " + heading +
30+
"</a> <span class=\"screenreader\">|</span> <a href=\"https://www.w3.org/WAI/WCAG" + version + "/quickref/#" + pathFrag + "\">How to Meet " + heading + "</a>";
3031
if (node.className = "sc") node.insertBefore(el, node.children[2]);
3132
if (node.className = "guideline") node.insertBefore(el, node.children[1]);
3233
})

0 commit comments

Comments
 (0)