Skip to content

Commit

Permalink
Remove use-scroll hook, update list number spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
zslabs committed Apr 4, 2020
1 parent a08478b commit 53ecc78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
6 changes: 2 additions & 4 deletions src/assets/styles/utility/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ export const numbers = ({
},

'&:first-of-type::before': {
top: `calc((1em * ${theme.lineHeight.base} - ${circleSize}px) / 2)`,
top: 0,
},

'&:not(:first-of-type)::before': {
top: `calc((1em * ${theme.lineHeight.base} - ${circleSize}px) / 2${
border ? ` + ${space}px` : ''
})`,
top: border ? space : null,
},
},
}
Expand Down
35 changes: 0 additions & 35 deletions src/hooks/use-scroll.js

This file was deleted.

0 comments on commit 53ecc78

Please sign in to comment.