Skip to content

Commit b5d918a

Browse files
committed
improve new link styling for light mode
1 parent 49f84de commit b5d918a

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

assets/customizations.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
:root {
2+
--accent: #2d9cdb;
3+
--grey: #444;
24
--bg: #fff;
35
--fg: #000;
46
--panelbg: #1b1a21;
@@ -239,13 +241,29 @@ mark {
239241
text-indent: -2em;
240242
line-height: 1.65rem;
241243
}
242-
.call-out::before{
244+
.call-out::before {
243245
content: '⚠️';
244246
position: relative;
245247
right: -105%;
246248
top: -1.5rem;
247249
font-size: 2em;
248250
}
251+
a[href] {
252+
color: var(--accent);
253+
text-decoration: none;
254+
font-weight: bold;
255+
padding: 0 2px;
256+
}
257+
a[href]:hover {
258+
background-color: var(--accent);
259+
color: var(--bg);
260+
border-radius: 4px;
261+
}
262+
a[href]:focus {
263+
outline: 2px solid var(--accent);
264+
outline-offset: 4px;
265+
}
266+
249267
@media not speech {
250268
.sr-only {
251269
display: none !important;

assets/style.css

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
:root {
2-
--accent: #2d9cdb;
3-
--grey: #444;
4-
}
5-
61
html {
72
font-size: 100%;
83
scroll-behavior: smooth;
@@ -56,22 +51,6 @@ main {
5651
margin-bottom: 8px;
5752
}
5853

59-
a[href] {
60-
color: var(--accent);
61-
text-decoration: none;
62-
font-weight: bold;
63-
}
64-
65-
a[href]:hover {
66-
background-color: var(--accent);
67-
color: var(--grey);
68-
}
69-
70-
a[href]:focus {
71-
outline: 2px solid var(--accent);
72-
outline-offset: 4px;
73-
}
74-
7554
.footnotes {
7655
font-size: 0.8em;
7756
}

0 commit comments

Comments
 (0)