Skip to content

Commit

Permalink
Style numbered lists in articles
Browse files Browse the repository at this point in the history
Numbered listed and nested numbered lists aren't styled when ingested from Gdocs. Numbered lists count from in integers startingfrom 1. Nested numbered lists (all levels) also count in integers starting from 1. Level 1 nesting should count in lowercase alpha. Level 2 nesting should count in lowercase roman numerals.
  • Loading branch information
Ian committed Oct 4, 2024
1 parent 3cff8c5 commit fcdc260
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions blocks/article/article.css
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,18 @@ article [data-docs-heading] span {
word-break: break-word;
}

.pan-article .book-content ol {
list-style-type: decimal;
}

.pan-article .book-content ol ol {
list-style-type: lower-alpha;
}

.pan-article .book-content ol ol ol {
list-style-type: lower-roman;
}

.pan-article .book-content pre {
display: block;
margin: var(--spacing--6) 0;
Expand Down

0 comments on commit fcdc260

Please sign in to comment.