Better OL styling
This commit is contained in:
@@ -57,28 +57,21 @@ ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
counter-reset: item;
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 1ch;
|
||||
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
display: contents;
|
||||
overflow-wrap: anywhere;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
counter-increment: item;
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
li::before {
|
||||
content: counter(item) '.';
|
||||
counter-increment: item;
|
||||
}
|
||||
|
||||
ol {
|
||||
gap: 0 1ch;
|
||||
grid-column: 2;
|
||||
content: counter(item) ".";
|
||||
display: table-cell;
|
||||
padding-right: 1ch;
|
||||
white-space: nowrap;
|
||||
width: 3ch;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user