mirror of
https://github.com/thangisme/notes.git
synced 2025-02-21 06:57:46 -05:00
Improve presentation of Description Lists
Thought the description list could benefit from some CSS Grid powers
This commit is contained in:
parent
6c05ef8b9d
commit
952a016807
@ -5,8 +5,7 @@
|
||||
|
||||
.page-content {
|
||||
ul,
|
||||
ol,
|
||||
dl {
|
||||
ol {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
@ -64,4 +63,27 @@
|
||||
h1:first-of-type {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user