Skip to content
Snippets Groups Projects
Unverified Commit 952a0168 authored by David Darnes's avatar David Darnes Committed by GitHub
Browse files

Improve presentation of Description Lists

Thought the description list could benefit from some CSS Grid powers
parent 6c05ef8b
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
.page-content { .page-content {
ul, ul,
ol, ol {
dl {
padding-left: 1.5em; padding-left: 1.5em;
} }
...@@ -64,4 +63,27 @@ ...@@ -64,4 +63,27 @@
h1:first-of-type { h1:first-of-type {
margin-top: 0.5em; margin-top: 0.5em;
} }
dl {
display: grid;
grid-template-columns: max-content 1fr;
}
dt,
dd {
margin: 0.25em 0;
}
dt {
text-align: right;
&::after {
content: ":";
}
}
dd {
margin-left: 1em;
font-weight: 500;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment