Adjust dl layout

Works for description lists with multiple `dt` and `dd` elements.
This commit is contained in:
PLanCompS
2020-08-03 17:38:48 +02:00
parent 31b99a2a9b
commit 9fca3861ce
2 changed files with 36 additions and 3 deletions

View File

@@ -109,7 +109,7 @@
dl {
display: grid;
grid-template-columns: max-content 1fr;
grid-template: auto / 10em 1fr;
}
dt,
@@ -118,16 +118,18 @@
}
dt {
grid-column: 1;
text-align: right;
font-weight: 500;
&::after {
content: ":";
}
}
dd {
grid-column: 2;
margin-left: 1em;
font-weight: 500;
margin-bottom: 0;
}
.anchor-heading {