-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: toggle toc when click toc heading
- Loading branch information
Showing
4 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.contents-btn { | ||
@apply flex justify-between w-full font-semibold font-head py-1 px-2 uppercase border-2 text-gray-800 hover:text-white border-gray-800 dark:text-white dark:hover:text-gray-800 dark:border-white dark:before:bg-gray-800 dark:from-white dark:to-white before:bg-white bg-gradient-to-r from-gray-800 to-gray-800; | ||
} | ||
|
||
li.toc { | ||
line-height: 1.7rem; | ||
margin: 0.5rem 0.25rem; | ||
} | ||
|
||
li.toc>ul { | ||
padding-left: 1.5rem; | ||
} | ||
|
||
.slide-fade-enter-active { | ||
transition: all 0.3s ease; | ||
} | ||
|
||
.slide-fade-exit-active { | ||
transition: all 0.3s ease; | ||
} | ||
|
||
.slide-fade-enter, | ||
.slide-fade-exit-to { | ||
transform: translateY(10px); | ||
opacity: 0; | ||
} | ||
|
||
svg.toc-active { | ||
transform: rotate(180deg); | ||
} |
This file was deleted.
Oops, something went wrong.