Skip to content

Commit

Permalink
docs: Update notes on default styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 committed Sep 24, 2024
1 parent 38716b6 commit e4c45a9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,41 @@ npx nuxi module add nuxt-toc
> .toc-sublist-item {
> padding-left: 1rem;
> }
>
> a {
> text-decoration: none;
> color: inherit;
> }
>
> ul,
> ol {
> list-style: none;
> padding: 0;
> margin: 0;
> }
> ```
>
> You can customize the style or reset it with:
>
> ```css
> .active-toc-item {
> color: inherit;
> color: initial;
> }
>
> .toc-sublist-item {
> padding-left: 0;
> padding-left: initial;
> }
>
> a {
> text-decoration: underline;
> color: initial;
> }
>
> ul,
> ol {
> list-style: initial;
> padding: initial;
> margin: initial;
> }
> ```
Expand Down
28 changes: 26 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,41 @@ npx nuxi module add nuxt-toc
> .toc-sublist-item {
> padding-left: 1rem;
> }
>
> a {
> text-decoration: none;
> color: inherit;
> }
>
> ul,
> ol {
> list-style: none;
> padding: 0;
> margin: 0;
> }
> ```
>
> 你可以自定义样式或重置样式:
>
> ```css
> .active-toc-item {
> color: inherit;
> color: initial;
> }
>
> .toc-sublist-item {
> padding-left: 0;
> padding-left: initial;
> }
>
> a {
> text-decoration: underline;
> color: initial;
> }
>
> ul,
> ol {
> list-style: initial;
> padding: initial;
> margin: initial;
> }
> ```
Expand Down

0 comments on commit e4c45a9

Please sign in to comment.