Skip to content

Commit 106cf66

Browse files
danielledeleonginx-jack
authored andcommitted
Style: Add styling to linked inline code blocks
Note: leaving the transition commented out here because it causes a noticeable FOUC. Will need to find another solution.
1 parent 1338f38 commit 106cf66

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

assets/css/v2/style.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,12 +1518,29 @@ code {
15181518
/* Inline Code */
15191519
code:not(pre code) {
15201520
border: solid 1px #ccc;
1521-
border-radius: 4px;
1521+
border-radius: 0.25rem;
15221522
padding: 0 0.25rem;
15231523
background-color: #f9f9f9;
15241524
font-size: 0.875rem;
15251525
}
15261526

1527+
/* Inline Code (link) */
1528+
a code:not(pre code) {
1529+
border: solid 1px oklch(var(--color-brand) / 0.3);
1530+
border-bottom: solid 2px oklch(var(--color-brand) / 0.3);
1531+
1532+
/* transition: border 0.15s ease-in-out; */
1533+
}
1534+
1535+
a code:not(pre code):hover {
1536+
border: solid 1px oklch(var(--color-brand) / 0.8);
1537+
border-bottom: solid 2px oklch(var(--color-brand) / 0.8);
1538+
}
1539+
1540+
a:has(code:not(pre code)) {
1541+
text-decoration: none;
1542+
}
1543+
15271544
.highlight {
15281545
padding: 0 1rem 0 1rem;
15291546
position: relative;

0 commit comments

Comments
 (0)