Skip to content

Style: Add styling to linked inline code blocks #241

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

Merged
merged 1 commit into from
May 6, 2025
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
19 changes: 18 additions & 1 deletion assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1508,12 +1508,29 @@ code {
/* Inline Code */
code:not(pre code) {
border: solid 1px #ccc;
border-radius: 4px;
border-radius: 0.25rem;
padding: 0 0.25rem;
background-color: #f9f9f9;
font-size: 0.875rem;
}

/* Inline Code (link) */
a code:not(pre code) {
border: solid 1px oklch(var(--color-brand) / 0.3);
border-bottom: solid 2px oklch(var(--color-brand) / 0.3);

/* transition: border 0.15s ease-in-out; */
}

a code:not(pre code):hover {
border: solid 1px oklch(var(--color-brand) / 0.8);
border-bottom: solid 2px oklch(var(--color-brand) / 0.8);
}

a:has(code:not(pre code)) {
text-decoration: none;
}

.highlight {
padding: 0 1rem 0 1rem;
position: relative;
Expand Down
Loading