Skip to content

Commit

Permalink
docs: Simplified an example
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 committed Sep 24, 2024
1 parent a3dc4be commit 1e4ba00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,6 @@ First level titles be active when any of it's second level titles be active.
</template>
<style>
.active-toc-item {
/* Overrides builtin style */
color: initial;
}
/* Sublist item is contained in sub list, which is top item's sibling */
.active-toc-item, .toc-topitem:has(+ .toc-sublist .active-toc-sublist-item) {
color: #60a5fa
Expand All @@ -248,10 +243,6 @@ First level titles be active when any of it's second level titles be active.
<!-- Or with Tailwind CSS
<style>
.active-toc-item {
@apply text-inherit
}
.active-toc-item, .toc-topitem:has(+ .toc-sublist .active-toc-sublist-item) {
@apply text-blue-400
}
Expand Down
8 changes: 0 additions & 8 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ npx nuxi module add nuxt-toc
<style>
.active-toc-item {
/* 重置内置样式 */
color: initial;
}
/* 子级目录项包含在子列表中,而子列表是顶级目录项的兄弟元素 */
.active-toc-item, .toc-topitem:has(+ .toc-sublist .active-toc-sublist-item) {
color: #60a5fa
Expand All @@ -244,10 +240,6 @@ npx nuxi module add nuxt-toc
<!-- 或者使用 Tailwind CSS
<style>
.active-toc-item {
@apply text-inherit
}
.active-toc-item, .toc-topitem:has(+ .toc-sublist .active-toc-sublist-item) {
@apply text-blue-400
}
Expand Down

0 comments on commit 1e4ba00

Please sign in to comment.