Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5238bb4
commit cef5546
Showing
4 changed files
with
26 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'nextra': patch | ||
'nextra-theme-blog': patch | ||
'nextra-theme-docs': patch | ||
--- | ||
|
||
allow headings contain links |
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
.subheading-anchor { | ||
@apply absolute; | ||
@apply opacity-0 transition-opacity ltr:ml-1 rtl:mr-1; | ||
|
||
& + a { | ||
@apply text-current no-underline hover:after:opacity-100; | ||
span:target + &, | ||
:hover > & { | ||
@apply no-underline opacity-100; | ||
} | ||
|
||
& + a:after { | ||
@apply absolute /* for not including # in focus ring border */; | ||
@apply content-['#'] text-gray-300 px-2 opacity-0 transition-opacity; | ||
@apply dark:text-neutral-700; | ||
} | ||
|
||
&:target + a:after { | ||
@apply text-gray-400 opacity-100; | ||
@apply dark:text-neutral-500; | ||
&:after { | ||
@apply content-['#'] px-1; | ||
@apply text-gray-300 dark:text-neutral-700; | ||
span:target + & { | ||
@apply text-gray-400; | ||
@apply dark:text-neutral-500; | ||
} | ||
} | ||
} |