Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience classes for inline code and links #92

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions components/src/assets/asciidoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
*/

@layer components {
.accent-link {
@apply text-accent-secondary hover:text-accent;
text-decoration: underline;
text-decoration-color: var(--content-accent-tertiary);
}

.asciidoc-body .line-through {
text-decoration: line-through;
}
Expand Down Expand Up @@ -278,8 +284,8 @@
.asciidoc-body h3 code,
.asciidoc-body h4 code,
.asciidoc-body h5 code,
.asciidoc-body table code {
@apply text-secondary;
.asciidoc-body table code .inline-code {
@apply text-[0.825rem] text-secondary;
@apply ml-[1px] mr-[1px] rounded border px-[4px] py-[1px] align-[1px] bg-raise border-secondary;
}

Expand All @@ -300,19 +306,6 @@
@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.825rem];
}

.asciidoc-body code {
font-feature-settings: 'calt' 0;
}
Expand Down
Loading