mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 05:13:33 -06:00
Adjust dl layout
Works for description lists with multiple `dt` and `dd` elements.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user