Skip to content

Commit 74bb271

Browse files
author
LinuxJava7
committed
fix view switcher
1 parent 9396025 commit 74bb271

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

colors.css

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
@import 'catppuccin.css';
2-
31
@media (prefers-color-scheme: dark) {
4-
52
.view-switcher a:hover,
63
.view-switcher a:focus,
74
.view-switcher-narrow a:hover,
85
.view-switcher-narrow a:focus {
9-
background-color: rgb(255 255 255 / 2.5%);
6+
background-color: rgba(255, 255, 255, 0.056);
7+
}
8+
9+
.view-switcher .current,
10+
.view-switcher-narrow .current {
11+
background-color: rgba(255, 255, 255, 0.08);
1012
}
1113

12-
.view-switcher .current .view-switcher-narrow .current {
13-
background-color: rgb(255 255 255 / 5%);
14+
.view-switcher .current:hover,
15+
.view-switcher .current:focus,
16+
.view-switcher-narrow .current:hover,
17+
.view-switcher-narrow .current:focus {
18+
background-color: rgba(255, 255, 255, 0.136);
1419
}
15-
}
20+
}

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<meta name="twitter:description" content="Welcome to LinuxJava7's personal website.">
1616
<!-- Link to Stylesheet -->
1717
<link rel="stylesheet" href="style.css">
18+
<link rel="stylesheet" href="colors.css">
1819
<link rel="preconnect" href="https://rsms.me/">
1920
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
2021
<!-- Disable Dark Reader -->

style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
@import 'catppuccin.css';
12
@import 'colors.css';
2-
33
/* Root Variables - Light Mode (Default) */
4+
45
:root {
56
/* Layout Variables */
67
--pagewidth: 50rem;
@@ -540,4 +541,4 @@ footer {
540541
.social li {
541542
margin: 0;
542543
}
543-
}
544+
}

0 commit comments

Comments
 (0)