-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3] support for h2 and h4 headings with steps component (#3237)
* [v3] support h2 headings with steps component * support for h2 and h4 headings with steps component * polish --------- Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
- Loading branch information
1 parent
34035ca
commit 982862f
Showing
4 changed files
with
81 additions
and
15 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,5 @@ | ||
--- | ||
'nextra': patch | ||
--- | ||
|
||
Support for `h2` and `h4` Markdown headings with the Steps component. |
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,11 +1,17 @@ | ||
.nextra-steps h3 { | ||
counter-increment: var(--counter-id); | ||
.nextra-steps { | ||
h2, | ||
h3, | ||
h4 { | ||
counter-increment: var(--counter-id); | ||
/* resets from nextra-theme-docs */ | ||
@apply _border-0 _pb-0 _font-semibold _tracking-tight _mt-8 _text-2xl; | ||
|
||
&:before { | ||
@apply _absolute _size-[33px]; | ||
@apply _border-4 _border-[rgb(var(--nextra-bg))] _bg-gray-100 dark:_bg-neutral-800; | ||
@apply _rounded-full _text-neutral-400 _text-base _font-normal _text-center _-indent-px; | ||
@apply _mt-[3px] _ml-[-41px]; | ||
content: counter(var(--counter-id)); | ||
&:before { | ||
@apply _absolute _size-[33px]; | ||
@apply _border-4 _border-[rgb(var(--nextra-bg))] _bg-gray-100 dark:_bg-neutral-800; | ||
@apply _rounded-full _text-neutral-400 _text-base _font-normal _text-center _-indent-px; | ||
@apply _mt-[3px] _ml-[-41px]; | ||
content: counter(var(--counter-id)); | ||
} | ||
} | ||
} |