Skip to content

Commit

Permalink
style: update nested ol (#22057)
Browse files Browse the repository at this point in the history
<!--Delete sections as needed -->

## Description

Update style for nested ordered lists to use numbers, then letters, then
roman numerals.

Example:

https://deploy-preview-22057--docsdocker.netlify.app/contribute/components/lists/
https://docs.docker.com/contribute/components/lists/


![image](https://github.com/user-attachments/assets/bdcaf793-e970-402a-8e8a-3c18d5554584)

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews


- [ ] Editorial review

Signed-off-by: Craig <[email protected]>
  • Loading branch information
craig-osterhout authored Feb 21, 2025
1 parent 115be65 commit 6827d48
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/css/lists.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.prose ol {
list-style-type: decimal;
}

.prose ol ol {
list-style-type: lower-alpha;
}

.prose ol ol ol {
list-style-type: lower-roman;
}

1 change: 1 addition & 0 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
@import "/assets/css/syntax-light";
@import "/assets/css/syntax-dark";
@import "/assets/css/icons";
@import "/assets/css/lists";

0 comments on commit 6827d48

Please sign in to comment.