Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Sep 17, 2024
1 parent b272ca9 commit 1c6d12b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
16 changes: 13 additions & 3 deletions examples/blog/pages/posts/callout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,24 @@ Contents for step 2.

<Steps>
### nextra:test

### nextra-theme-docs:test

<Steps>
#### more

#### more more

#### more more more

</Steps>

### nextra-theme-blog:test

</Steps>

## Lint

## Lint

</Steps>

## Tabs
Expand Down
19 changes: 13 additions & 6 deletions examples/swr-site/pages/en/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,26 @@ https://google.com/da;djaldhksagfugsufgasuyfgyuasgfuasgdjasbdjasdjkasfuydfasyrdy

<Steps>
### Install Dependencies

Run `pnpm install` in the project root directory.

### Lint
<Steps>
#### Lint ESLint
run `pnpm lint`

#### Lint Prettier
run `pnpm lint:prettier --write` to format the entire project.
</Steps>
<Steps>
#### Lint ESLint

run `pnpm lint`

#### Lint Prettier

run `pnpm lint:prettier --write` to format the entire project.

</Steps>

### Test

Run `pnpm test`

</Steps>

```css filename="CSS" word-wrap=false
Expand Down
9 changes: 5 additions & 4 deletions packages/nextra/styles/steps.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
h3,
h4 {
counter-increment: var(--counter-id);
@apply _relative _mt-8 _border-none _text-xl _font-semibold;
&::before {
/* 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]; */
@apply _top-[calc(50%-16.5px)] _left-[-41px];
@apply _mt-[3px] _ml-[-41px];
content: counter(var(--counter-id));
}
}
Expand Down

0 comments on commit 1c6d12b

Please sign in to comment.