Skip to content

Commit

Permalink
[AsciiDoc] Better code text size handling in titles and tables (#61)
Browse files Browse the repository at this point in the history
* Better code text size handling in titles and tables

* Forgot to build
  • Loading branch information
benjaminleonard authored Nov 20, 2023
1 parent 414aa0f commit a9c473a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
11 changes: 10 additions & 1 deletion components/dist/asciidoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,17 @@
@apply overflow-x-auto !text-[13px] text-mono-code;
}

.asciidoc-body h1 code,
.asciidoc-body h2 code,
.asciidoc-body h3 code,
.asciidoc-body h4 code,
.asciidoc-body h5 code {
@apply text-[0.825em];
}

.asciidoc-body .paragraph > code,
.asciidoc-body p code {
@apply !text-[0.825em];
@apply text-[0.825rem];
}

.asciidoc-body code {
Expand Down
2 changes: 1 addition & 1 deletion components/dist/index.js.map

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion components/src/assets/asciidoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,17 @@
@apply overflow-x-auto !text-[13px] text-mono-code;
}

.asciidoc-body h1 code,
.asciidoc-body h2 code,
.asciidoc-body h3 code,
.asciidoc-body h4 code,
.asciidoc-body h5 code {
@apply text-[0.825em];
}

.asciidoc-body .paragraph > code,
.asciidoc-body p code {
@apply !text-[0.825em];
@apply text-[0.825rem];
}

.asciidoc-body code {
Expand Down

0 comments on commit a9c473a

Please sign in to comment.