mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 18:21:53 +02:00
fix: nav menu active style (#1752)
This commit is contained in:
parent
fa107ffa51
commit
71c6381b15
13
tools/package-lock.json
generated
13
tools/package-lock.json
generated
@ -9,14 +9,14 @@
|
||||
"version": "1.0.0",
|
||||
"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",
|
||||
"uglify-js": "^3.11.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": "16.x"
|
||||
"node": "18.x"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
@ -227,9 +227,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@picocss/pico": {
|
||||
"version": "1.5.11",
|
||||
"resolved": "https://registry.npmjs.org/@picocss/pico/-/pico-1.5.11.tgz",
|
||||
"integrity": "sha512-cDaFiSyNPtuSTwSQt/05xsw8+g2ek4/S58tgh9Nc7miJCCdUrY9PAyl4OPWRJtYgJDdEvkUA9GuGj0J4nDP4Cw=="
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@picocss/pico/-/pico-2.0.6.tgz",
|
||||
"integrity": "sha512-/d8qsykowelD6g8k8JYgmCagOIulCPHMEc2NC4u7OjmpQLmtSetLhEbt0j1n3fPNJVcrT84dRp0RfJBn3wJROA==",
|
||||
"engines": {
|
||||
"node": ">=18.19.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sindresorhus/is": {
|
||||
"version": "0.7.0",
|
||||
|
@ -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",
|
||||
@ -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",
|
||||
|
File diff suppressed because one or more lines are too long
@ -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;
|
||||
@ -153,6 +151,10 @@ main.container {
|
||||
.site-navbar {
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:focus {
|
||||
background-color: var(--pico-text-selection-color);
|
||||
}
|
||||
}
|
||||
|
||||
.site-name {
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
@ -421,9 +419,13 @@ 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;
|
||||
}
|
||||
@ -431,7 +433,7 @@ main.container {
|
||||
.next {
|
||||
margin-left: auto;
|
||||
text-align: right;
|
||||
& a::after {
|
||||
a::after {
|
||||
content: "›";
|
||||
margin-left: .25rem;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user