Skip to content

Commit a6e86fc

Browse files
committed
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 c5f37a4 commit a6e86fc

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

assets/css/v2/style.css

+18-1
Original file line numberDiff line numberDiff line change
@@ -1508,12 +1508,29 @@ code {
15081508
/* Inline Code */
15091509
code:not(pre code) {
15101510
border: solid 1px #ccc;
1511-
border-radius: 4px;
1511+
border-radius: 0.25rem;
15121512
padding: 0 0.25rem;
15131513
background-color: #f9f9f9;
15141514
font-size: 0.875rem;
15151515
}
15161516

1517+
/* Inline Code (link) */
1518+
a code:not(pre code) {
1519+
border: solid 1px oklch(var(--color-brand) / 0.3);
1520+
border-bottom: solid 2px oklch(var(--color-brand) / 0.3);
1521+
1522+
/* transition: border 0.15s ease-in-out; */
1523+
}
1524+
1525+
a code:not(pre code):hover {
1526+
border: solid 1px oklch(var(--color-brand) / 0.8);
1527+
border-bottom: solid 2px oklch(var(--color-brand) / 0.8);
1528+
}
1529+
1530+
a:has(code:not(pre code)) {
1531+
text-decoration: none;
1532+
}
1533+
15171534
.highlight {
15181535
padding: 0 1rem 0 1rem;
15191536
position: relative;

0 commit comments

Comments
 (0)