aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ToC
Commit message (Collapse)AuthorAgeFilesLines
* chore: update sidebar and widgets stylesArmand Philippot2022-01-152-56/+0
| | | | | | | | | I'm now using a widget that can be expanded/collapsed. It also allows me to handle more effectively widgets overflow and to avoid styles repetitions. However, with stylelint rule "no-descending-specificity", I'm not sure if the stylesheets are really logical... Maybe I should deactivate this rule.
* fix(toc): render on each route change and exclude aside titlesArmand Philippot2022-01-111-3/+0
| | | | | | On subject pages for example, the table of contents was not updated on route change. So I added router.asPath as dependency of useEffect. I also changed the query to exclude all titles in aside (ToC, widgets).
* refactor(sidebar): use a component to avoid styles repetitionArmand Philippot2022-01-111-4/+20
| | | | | | I also fix some overflow/sticky issues. I have to set overflow auto only when there is no button-like links otherwise, with translate, the button is cropped on hover.
* chore: move Main grid to its childrenArmand Philippot2022-01-062-3/+15
| | | | This way I can use full width background for some blocks.
* chore: add a table of contentsArmand Philippot2021-12-211-0/+31