Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use the implicit list-item counter
Signed-off-by: Peter Neupauer <peter@neupauer.sk>
  • Loading branch information
neupauer committed Oct 25, 2020
commit 5fffc3049af1056703e68a936d23663f80d3a36d
6 changes: 1 addition & 5 deletions src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ module.exports = {
color: defaultTheme.colors.gray[900],
fontWeight: '600',
},
ol: {
counterReset: 'list-counter',
},
'ol > li': {
position: 'relative',
counterIncrement: 'list-counter',
},
'ol > li::before': {
content: 'counter(list-counter) "."',
content: 'counter(list-item) "."',
position: 'absolute',
fontWeight: '400',
color: defaultTheme.colors.gray[500],
Expand Down