Skip to content

Commit 2eb86b4

Browse files
committed
fix(styling): make code backgrounds solid, transparent backgrounds on
code link hovers
1 parent 6da827f commit 2eb86b4

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

sass/_vendor.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,12 @@ a.zola-anchor:hover {
421421
}
422422

423423
code {
424-
background: rgba($color: #000000, $alpha: 0.35)
424+
background: rgba($color: #3d4253, $alpha: 1)
425425
}
426426
}
427427

428428
.light .hack code {
429-
background: rgba($color: #000000, $alpha: 0.1);
429+
background: rgba($color: #d0cfd5, $alpha: 1);
430430
border-radius: 4px;
431431
padding: 2px 6px;
432432
}

sass/parts/_code.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ pre::-webkit-scrollbar-track {
154154
a {
155155
code:hover {
156156
background-color: transparent;
157+
background: transparent !important;
157158
}
158159
}
159160

160161
code {
161-
color: var(--text-color);
162162
background-color: var(--bg-primary);
163163
}
164164

sass/site.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// This file is the main entry point for the Sass styles of the site.
2+
13
@use "vendor";
24
@use "theme";
35
@use "parts/note";
@@ -6,6 +8,7 @@
68
@use "parts/toc";
79
@use "parts/latex";
810

11+
/// Globally defined CSS variables
912
:root {
1013
--bg-primary: #282828;
1114
--accent: #c62c2a;

0 commit comments

Comments
 (0)