css拆分
This commit is contained in:
1 parent
0824c9dd68
commit
97f1c3712f
15 files changed
+4895
-4881
No files matched your search
+14
-4881
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,60 @@
|
||||
@import url("https://fontsapi.zeoseven.com/7/main/result.css");
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f7f5ef;
|
||||
--surface: #fffdf8;
|
||||
--text: #20242a;
|
||||
--muted: #686f78;
|
||||
--line: #ded8cc;
|
||||
--accent: #0f766e;
|
||||
--accent-strong: #14532d;
|
||||
--shadow: 0 14px 45px rgba(58, 51, 38, 0.1);
|
||||
--page-gutter: clamp(20px, 4vw, 64px);
|
||||
--wide-width: 1440px;
|
||||
--content-width: 1280px;
|
||||
--article-width: 1080px;
|
||||
--narrow-width: 1000px;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] {
|
||||
color-scheme: dark;
|
||||
--bg: #0b1014;
|
||||
--surface: #141b21;
|
||||
--text: #eef4f6;
|
||||
--muted: #b6c3c9;
|
||||
--line: rgba(181, 198, 207, 0.28);
|
||||
--accent: #8be0d5;
|
||||
--accent-strong: #b7e7d4;
|
||||
--shadow: 0 18px 52px rgba(0, 0, 0, 0.44);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-family: "Zhuque Fangsong (technical preview)";
|
||||
font-weight: normal;
|
||||
line-height: 1.75;
|
||||
background:
|
||||
linear-gradient(rgba(247, 245, 239, 0.86), rgba(247, 245, 239, 0.95)),
|
||||
url('/images/background.png') center top / cover fixed;
|
||||
transition:
|
||||
color 0.22s ease,
|
||||
background-color 0.22s ease;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] body {
|
||||
background:
|
||||
linear-gradient(rgba(7, 10, 14, 0.9), rgba(8, 13, 17, 0.96)),
|
||||
url('/images/background.png') center top / cover fixed;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,380 @@
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 12px;
|
||||
z-index: 10;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.nav {
|
||||
position: relative;
|
||||
width: min(var(--wide-width), calc(100% - (var(--page-gutter) * 2)));
|
||||
min-height: 58px;
|
||||
margin: 0 auto;
|
||||
padding: 0 18px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 255, 255, 0.56);
|
||||
border-radius: 999px;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.2)),
|
||||
rgba(255, 255, 255, 0.28);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.82),
|
||||
inset 0 -18px 38px rgba(255, 255, 255, 0.16),
|
||||
0 18px 54px rgba(44, 55, 63, 0.18);
|
||||
backdrop-filter: blur(22px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(22px) saturate(180%);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.nav::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 38%, rgba(255, 255, 255, 0.22));
|
||||
opacity: 0.74;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.nav::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.brand {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.nav-menu-toggle {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: none;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
place-items: center;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 999px;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 0.2s ease,
|
||||
background-color 0.2s ease,
|
||||
border-color 0.2s ease,
|
||||
box-shadow 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.nav-menu-close {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--muted);
|
||||
font-size: 0.94rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.nav-links a,
|
||||
.nav-random,
|
||||
.nav-search,
|
||||
.nav-console,
|
||||
.theme-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 999px;
|
||||
padding: 7px 12px;
|
||||
transition:
|
||||
color 0.2s ease,
|
||||
background-color 0.2s ease,
|
||||
border-color 0.2s ease,
|
||||
box-shadow 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.nav-search,
|
||||
.nav-random,
|
||||
.nav-console,
|
||||
.theme-toggle {
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
line-height: inherit;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-random {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.nav-random::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 3px;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
linear-gradient(120deg, transparent 8%, rgba(255, 255, 255, 0.82) 34%, transparent 58%);
|
||||
opacity: 0;
|
||||
transform: translateX(-135%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.nav-random.is-randomizing {
|
||||
color: var(--accent);
|
||||
border-color: rgba(15, 118, 110, 0.22);
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.76),
|
||||
0 10px 24px rgba(15, 118, 110, 0.16);
|
||||
}
|
||||
|
||||
.nav-random.is-randomizing::after {
|
||||
opacity: 1;
|
||||
animation: random-button-sheen 0.72s ease both;
|
||||
}
|
||||
|
||||
.nav-random.is-randomizing .nav-icon {
|
||||
animation: random-button-spin 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
|
||||
}
|
||||
|
||||
.nav-icon {
|
||||
display: inline-grid;
|
||||
width: 16px;
|
||||
min-width: 16px;
|
||||
height: 16px;
|
||||
place-items: center;
|
||||
font-size: 0.95em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
justify-content: center;
|
||||
width: 38px;
|
||||
min-height: 38px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
:root:not([data-theme='dark']) .theme-toggle-sun,
|
||||
:root[data-theme='dark'] .theme-toggle-moon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.nav-random:hover,
|
||||
.nav-search:hover,
|
||||
.nav-console:hover,
|
||||
.theme-toggle:hover,
|
||||
.site-footer a:hover,
|
||||
.section-heading a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.custom-context-menu {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
width: min(218px, calc(100vw - 20px));
|
||||
max-height: calc(100vh - 20px);
|
||||
overflow-y: auto;
|
||||
border: 1px solid rgba(255, 255, 255, 0.58);
|
||||
border-radius: 14px;
|
||||
padding: 8px;
|
||||
color: #4f565b;
|
||||
background:
|
||||
linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 248, 231, 0.68)),
|
||||
rgba(245, 252, 241, 0.82);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.86),
|
||||
0 18px 42px rgba(44, 55, 63, 0.18);
|
||||
backdrop-filter: blur(18px) saturate(165%);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(165%);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translate3d(0, 6px, 0) scale(0.98);
|
||||
transform-origin: top left;
|
||||
transition:
|
||||
opacity 0.14s ease,
|
||||
transform 0.14s ease;
|
||||
}
|
||||
|
||||
.custom-context-menu.is-open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translate3d(0, 0, 0) scale(1);
|
||||
}
|
||||
|
||||
.custom-context-menu [hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.context-menu-nav {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
.context-menu-group {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
border-top: 1px dashed rgba(104, 111, 120, 0.18);
|
||||
padding-top: 7px;
|
||||
}
|
||||
|
||||
.context-menu-group + .context-menu-group {
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.custom-context-menu :where(a, button) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
line-height: 1.25;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-menu-nav :where(a, button) {
|
||||
justify-content: center;
|
||||
height: 42px;
|
||||
border: 1px solid rgba(178, 194, 170, 0.42);
|
||||
border-radius: 14px;
|
||||
color: #6b7174;
|
||||
background: rgba(255, 255, 255, 0.44);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
|
||||
}
|
||||
|
||||
.context-menu-group :where(a, button) {
|
||||
gap: 12px;
|
||||
min-height: 40px;
|
||||
border-radius: 10px;
|
||||
padding: 9px 10px;
|
||||
}
|
||||
|
||||
.custom-context-menu :where(a, button):hover,
|
||||
.custom-context-menu :where(a, button):focus-visible {
|
||||
color: var(--accent);
|
||||
background: rgba(255, 255, 255, 0.58);
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.custom-context-menu i {
|
||||
display: inline-grid;
|
||||
width: 18px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
place-items: center;
|
||||
color: #737a7d;
|
||||
font-size: 0.98rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.custom-context-menu :where(a, button):hover i,
|
||||
.custom-context-menu :where(a, button):focus-visible i {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.custom-context-menu span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 650;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.context-menu-native-hint {
|
||||
position: fixed;
|
||||
right: max(16px, env(safe-area-inset-right));
|
||||
bottom: max(16px, env(safe-area-inset-bottom));
|
||||
z-index: 900;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
max-width: min(300px, calc(100vw - 32px));
|
||||
border: 1px solid rgba(255, 255, 255, 0.58);
|
||||
border-radius: 999px;
|
||||
padding: 8px 12px;
|
||||
color: #4f565b;
|
||||
font-size: 0.84rem;
|
||||
font-weight: 650;
|
||||
line-height: 1.3;
|
||||
background:
|
||||
linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 248, 231, 0.68)),
|
||||
rgba(245, 252, 241, 0.82);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.86),
|
||||
0 12px 30px rgba(44, 55, 63, 0.14);
|
||||
backdrop-filter: blur(16px) saturate(165%);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(165%);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translate3d(0, 8px, 0);
|
||||
transition:
|
||||
opacity 0.18s ease,
|
||||
transform 0.18s ease;
|
||||
}
|
||||
|
||||
.context-menu-native-hint.is-visible {
|
||||
opacity: 1;
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
.context-menu-native-hint kbd {
|
||||
border: 1px solid rgba(178, 194, 170, 0.52);
|
||||
border-radius: 7px;
|
||||
padding: 1px 6px;
|
||||
color: var(--accent);
|
||||
font: inherit;
|
||||
background: rgba(255, 255, 255, 0.52);
|
||||
box-shadow: inset 0 -1px 0 rgba(44, 55, 63, 0.08);
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.nav-random:hover,
|
||||
.nav-search:hover,
|
||||
.nav-console:hover,
|
||||
.theme-toggle:hover,
|
||||
.nav-menu-toggle:hover {
|
||||
border-color: rgba(255, 255, 255, 0.62);
|
||||
background: rgba(255, 255, 255, 0.38);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.72),
|
||||
0 8px 18px rgba(15, 118, 110, 0.1);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
Loaded 3 of 15 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user