Skip to content

Commit b962d8d

Browse files
committed
Add custom color for code snippet links
1 parent 1122f3f commit b962d8d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/assets/styles/base.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*── src/assets/styles/base.css ── Base styles for the site ──*
22
3-
│ Copyright (c) 2024-2025 Deimonn (a.k.a. Nahuel S. Cisterna)
3+
│ Copyright (c) 2024-2026 Deimonn (a.k.a. Nahuel S. Cisterna)
44
55
│ This file is licensed under the MIT License.
66
@@ -238,6 +238,15 @@ code:not(pre > code) {
238238
background-color: var(--sl-color-neutral-50);
239239
}
240240

241+
/* Code reference snippet style. */
242+
a > code {
243+
color: var(--sl-color-primary-900);
244+
}
245+
246+
a > code:hover {
247+
color: var(--sl-color-primary-700);
248+
}
249+
241250
/* Block quote style. */
242251
blockquote {
243252
color: var(--sl-color-neutral-500);

0 commit comments

Comments
 (0)