Skip to content

Commit

Permalink
fix: nav menu active style
Browse files Browse the repository at this point in the history
  • Loading branch information
fenbox committed Mar 29, 2024
1 parent fa107ff commit 0d737c4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
13 changes: 8 additions & 5 deletions tools/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tools/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Typecho build tools",
"main": "build.js",
"engines": {
"node": "16.x"
"node": "18.x"
},
"scripts": {
"build_js": "node build.js js",
Expand All @@ -17,7 +17,7 @@
"author": "joyqi",
"license": "GPL-2.0-only",
"dependencies": {
"@picocss/pico": "^1.5.0",
"@picocss/pico": "^2.0.6",
"chalk": "^4.0.0",
"node-sass": "^9.0.0",
"sprite-magic-importer": "^1.6.2",
Expand Down
2 changes: 1 addition & 1 deletion usr/themes/classic-22/static/css/style.css

Large diffs are not rendered by default.

28 changes: 15 additions & 13 deletions usr/themes/classic-22/static/scss/style.scss
Expand Up @@ -31,14 +31,12 @@
body {
cursor: auto;
margin: 0;
text-underline-offset: 0.2rem;
}

a {
:not(.fmt a) {
text-decoration: none;
}


// button[type=submit],
// input[type=submit] {
// display: inline-block;
Expand Down Expand Up @@ -153,6 +151,10 @@ main.container {
.site-navbar {
a {
color: inherit;

&:focus {
background-color: var(--pico-text-selection-color);
}
}

.site-name {
Expand Down Expand Up @@ -284,6 +286,10 @@ main.container {
color: var(--pico-muted-color);
border-radius: 100px;
text-decoration: none;

&:focus {
background-color: var(--pico-text-selection-color);
}
}
}

Expand All @@ -299,14 +305,6 @@ main.container {
// Format
.fmt {
line-height: 1.6;

a {
text-decoration: underline;
text-decoration-color: var(--pico-underline);
}
pre, hr {
margin-bottom: var(--pico-typography-spacing-vertical);
}
}

// Footer
Expand Down Expand Up @@ -421,17 +419,21 @@ main.container {
pointer-events: none;
}

a:focus {
background-color: var(--pico-text-selection-color);
}

.prev {
margin-right: auto;
& a::before {
a::before {
content: "";
margin-right: .25rem;
}
}
.next {
margin-left: auto;
text-align: right;
& a::after {
a::after {
content: "";
margin-left: .25rem;
}
Expand Down

0 comments on commit 0d737c4

Please sign in to comment.