179 lines
14 KiB
CSS
179 lines
14 KiB
CSS
:root {
|
|
--shell: #ffffff;
|
|
--surface: #f2f2f2;
|
|
--elevated: #e5e5e5;
|
|
--control: #dedede;
|
|
--active: #cacaca;
|
|
--text: #111111;
|
|
--muted: #6d6d6d;
|
|
--faint: #9a9a9a;
|
|
--border: #c9c9c9;
|
|
--tree-line: #c5c5c5;
|
|
--shadow: 0 24px 70px rgba(0, 0, 0, .16);
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--shell: #000000;
|
|
--surface: #111111;
|
|
--elevated: #222222;
|
|
--control: #242424;
|
|
--active: #686868;
|
|
--text: #f4f4f4;
|
|
--muted: #a5a5a5;
|
|
--faint: #747474;
|
|
--border: #333333;
|
|
--tree-line: #2c2c2c;
|
|
--shadow: 0 28px 80px rgba(0, 0, 0, .72);
|
|
color-scheme: dark;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
[hidden] { display: none !important; }
|
|
html, body { width: 100%; height: 100dvh; min-height: 100dvh; max-height: 100dvh; overflow: hidden; }
|
|
html { background: var(--shell); }
|
|
body { margin: 0; color: var(--text); background: var(--shell); font-family: system-ui; font-size: 16px; line-height: 1.55; }
|
|
button, input { font: inherit; }
|
|
button, a { -webkit-tap-highlight-color: transparent; }
|
|
button { color: inherit; }
|
|
.glyph-button, .refresh-glyph { font-family: Arial, sans-serif; }
|
|
.nav-arrow { font-family: system-ui; }
|
|
|
|
.app-shell { --desktop-sidebar-width: clamp(230px, 18vw, 310px); display: flex; width: 100%; height: 100%; flex-direction: column; overflow: hidden; background: var(--shell); }
|
|
.desktop-header { position: relative; z-index: 20; display: grid; min-height: 76px; flex: 0 0 76px; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 18px; padding: 12px 20px; background: var(--shell); }
|
|
.desktop-title { overflow: hidden; margin: 0; font-size: 1.55rem; font-weight: 450; line-height: 1.1; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
|
|
.header-link { display: block; width: 100%; padding: 6px 12px; border: 1px solid transparent; border-radius: 20px; color: var(--text); background: transparent; text-decoration: none; line-height: 1.2; transition: background .16s ease, border-color .16s ease; }
|
|
.header-link:hover { background: var(--control); }
|
|
.header-link.active { color: var(--text); background: var(--active); }
|
|
.header-link:not(.active):not(:hover) { border-color: var(--border); }
|
|
|
|
.desktop-main { display: flex; min-width: 0; min-height: 0; flex: 1; overflow: hidden; }
|
|
.desktop-sidebar { display: flex; width: var(--desktop-sidebar-width); min-width: 0; height: 100%; flex: 0 0 var(--desktop-sidebar-width); flex-direction: column; overflow: hidden; padding: 20px 18px 22px; background: var(--shell); }
|
|
.sidebar-header-buttons { display: flex; flex: 0 0 auto; flex-direction: column; gap: 4px; margin-bottom: 24px; }
|
|
|
|
.page-tree { min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
|
|
.desktop-sidebar > .page-tree { flex: 1; padding: 0 2px 24px; }
|
|
.tree-group { margin: 2px 0; }
|
|
.tree-children { margin-left: 17px; padding-left: 10px; border-left: 1px solid var(--tree-line); }
|
|
.tree-link { display: flex; width: 100%; min-height: 32px; align-items: baseline; gap: 5px; padding: 4px 10px; border: 0; border-radius: 18px; color: var(--text); background: transparent; cursor: pointer; text-align: left; transition: background .15s ease, color .15s ease; }
|
|
.tree-link:hover { background: var(--control); }
|
|
.tree-link.active { background: var(--active); }
|
|
.sidebar-header-buttons .header-link.active, .desktop-sidebar .tree-link.active { color: #050505; background: #f0f0f0; }
|
|
.desktop-sidebar .tree-link.active .tree-number { color: #555; }
|
|
.tree-number { flex: 0 0 auto; color: var(--muted); }
|
|
.tree-title { min-width: 0; overflow-wrap: anywhere; }
|
|
|
|
.workspace { display: flex; min-width: 0; height: 100%; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
|
|
.desktop-toolbar { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
|
|
.desktop-search-shell { position: relative; width: min(320px, 30vw); max-width: min(320px, 30vw); flex: 0 1 min(320px, 30vw); transition: max-width .24s ease, opacity .16s ease, transform .24s ease; }
|
|
.search-control { display: flex; width: 100%; height: 44px; align-items: center; border-radius: 24px; background: var(--control); }
|
|
.search-control input, .mobile-search-control input { min-width: 0; flex: 1; height: 100%; padding: 0 8px 0 18px; border: 0; outline: 0; color: var(--text); background: transparent; appearance: none; }
|
|
.search-control input::placeholder, .mobile-search-control input::placeholder { color: var(--faint); opacity: 1; }
|
|
.search-control input::-webkit-search-cancel-button, .mobile-search-control input::-webkit-search-cancel-button { display: none; }
|
|
.glyph-button { display: grid; place-items: center; border: 0; cursor: pointer; }
|
|
.search-glyph { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; color: var(--text); background: color-mix(in srgb, var(--control), var(--text) 8%); font-size: 1.45rem; }
|
|
.desktop-search-results { position: absolute; inset: 50px 0 auto; display: flex; max-height: min(460px, calc(100dvh - 98px)); flex-direction: column; gap: 3px; overflow: auto; padding: 8px; border-radius: 20px; background: var(--elevated); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-8px) scale(.985); transform-origin: top; transition: opacity .16s ease, transform .18s ease; }
|
|
.desktop-search-shell.open .desktop-search-results { opacity: 1; pointer-events: auto; transform: none; }
|
|
.search-result { display: block; width: 100%; padding: 10px 13px; border: 0; border-radius: 15px; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
|
|
.search-result:hover, .search-result:focus-visible { outline: 0; background: var(--active); }
|
|
.search-result strong { display: block; overflow: hidden; font-size: 1rem; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
|
|
.search-result span { display: block; overflow: hidden; margin-top: 1px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
.theme-button { width: 44px; height: 44px; max-width: 44px; flex: 0 0 44px; border-radius: 50%; color: var(--text); background: var(--control); font-size: 1.3rem; transition: max-width .24s ease, opacity .16s ease, transform .24s ease; }
|
|
.theme-button:hover { background: var(--active); }
|
|
.refresh-button { display: flex; width: 44px; max-width: min(320px, 38vw); height: 44px; flex: 0 0 auto; align-items: center; justify-content: flex-start; gap: 8px; overflow: hidden; padding: 0; border: 0; border-radius: 24px; color: var(--text); background: var(--control); cursor: pointer; transition: width .26s ease, background .16s ease; }
|
|
.refresh-button:hover { background: var(--active); }
|
|
.refresh-glyph { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; font-size: 1.45rem; }
|
|
.refresh-button.loading .refresh-glyph { animation: refresh-spin .8s linear infinite; }
|
|
.manifest-identity { overflow: hidden; padding-right: 15px; color: var(--text); font-size: .75rem; white-space: nowrap; opacity: 0; transition: opacity .12s ease .03s; }
|
|
.desktop-toolbar.refresh-expanded .desktop-search-shell { max-width: 0; opacity: 0; pointer-events: none; transform: translateX(18px); }
|
|
.desktop-toolbar.refresh-expanded .theme-button { max-width: 0; opacity: 0; pointer-events: none; transform: scale(.72); }
|
|
.desktop-toolbar.refresh-expanded .refresh-button { width: min(320px, 52vw); }
|
|
.desktop-toolbar.refresh-expanded .manifest-identity { opacity: 1; }
|
|
@keyframes refresh-spin { to { transform: rotate(360deg); } }
|
|
|
|
.page-surface { min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; border-radius: 36px 0 0; background: var(--surface); scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
|
|
.content { width: min(1120px, calc(100% - 72px)); min-height: calc(100dvh - 240px); margin: 0 auto; padding: 42px 0 44px; outline: none; }
|
|
.content > :first-child { margin-top: 0; }
|
|
.content h1 { margin: 0 0 1.5rem; font-size: clamp(2.15rem, 2.7vw, 3.35rem); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
|
|
.content h2 { margin: 2.5rem 0 .9rem; padding-bottom: .35rem; border-bottom: 1px solid var(--border); font-size: 1.65rem; font-weight: 500; }
|
|
.content h3 { margin: 1.9rem 0 .55rem; font-size: 1.25rem; font-weight: 550; }
|
|
.content p { margin: .8rem 0 1.2rem; font-size: 1.08rem; }
|
|
.content a { color: var(--text); text-underline-offset: 4px; }
|
|
.content img { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; border-radius: 20px; }
|
|
.content figure { margin: 1.6rem 0; }
|
|
.content figcaption { margin-top: .55rem; color: var(--muted); text-align: center; }
|
|
.content pre { overflow: auto; margin: 1.3rem 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--shell); }
|
|
.content code { padding: .12em .35em; border-radius: 5px; background: var(--shell); font: .88em/1.5 ui-monospace, monospace; }
|
|
.content pre code { padding: 0; background: transparent; }
|
|
.content blockquote { margin: 1.4rem 0; padding: .35rem 1.25rem; border-left: 2px solid var(--text); color: var(--muted); }
|
|
.content hr { margin: 2.6rem 0; border: 0; border-top: 1px solid var(--border); }
|
|
.content details { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--shell); }
|
|
.content summary { cursor: pointer; font-weight: 600; }
|
|
.callout { margin: 1.3rem 0; padding: 14px 17px; border: 1px solid var(--border); border-left: 4px solid var(--text); border-radius: 14px; background: var(--shell); }
|
|
.callout strong { display: block; margin-bottom: 3px; }
|
|
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; color: var(--shell); background: var(--text); font-size: .8em; font-weight: 700; }
|
|
.table-wrap { overflow-x: auto; margin: 1.3rem 0; }
|
|
.content table { width: 100%; border-collapse: collapse; }
|
|
.content th, .content td { padding: 10px 13px; border: 1px solid var(--border); text-align: left; }
|
|
.content th { background: var(--control); }
|
|
.page-navigation { display: flex; width: min(1120px, calc(100% - 72px)); gap: 10px; margin: 0 auto; padding: 0 0 42px; }
|
|
.nav-card { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 7px 16px; border: 0; border-radius: 26px; color: var(--text); background: var(--control); cursor: pointer; }
|
|
.nav-card:hover:not(:disabled) { background: var(--active); }
|
|
.nav-card:disabled { display: none; }
|
|
.nav-card small { color: inherit; font-size: 1.3rem; }
|
|
#next-page { color: var(--shell); background: var(--text); }
|
|
:root[data-theme="dark"] #next-page { color: #000; background: #eee; }
|
|
|
|
.mobile-view, .mobile-dock { display: none; }
|
|
|
|
@media (max-width: 820px) {
|
|
.app-shell { display: block; }
|
|
.desktop-header, .desktop-sidebar { display: none; }
|
|
.desktop-main { display: block; width: 100%; height: 100%; }
|
|
.workspace { width: 100%; height: 100%; }
|
|
.page-surface { display: block; width: 100%; border-radius: 0; background: var(--shell); }
|
|
.content { width: 100%; min-height: 0; padding: 52px 28px 28px; }
|
|
.content h1 { margin-bottom: 1.55rem; font-size: clamp(2.45rem, 12vw, 4rem); }
|
|
.content h2 { font-size: 1.55rem; }
|
|
.content p { font-size: 1.05rem; }
|
|
.page-navigation { width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 28px calc(150px + env(safe-area-inset-bottom)); }
|
|
#next-page { order: 1; }
|
|
#previous-page { order: 2; }
|
|
.nav-card { max-width: calc(100vw - 56px); min-height: 54px; }
|
|
.mobile-view { display: none; min-height: 0; flex: 1; overflow: auto; background: var(--shell); }
|
|
body.mobile-menu-open .page-surface, body.mobile-search-open .page-surface { display: none; }
|
|
body.mobile-menu-open .mobile-menu-view { display: block; }
|
|
body.mobile-search-open .mobile-search-view { display: flex; }
|
|
.mobile-menu-view { padding: 52px 28px calc(150px + env(safe-area-inset-bottom)); }
|
|
.mobile-site-title { margin: 0 0 34px; font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
|
|
.mobile-header-buttons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 38px; }
|
|
.mobile-header-buttons .header-link { padding: 12px 18px; border-radius: 28px; font-size: 1.05rem; }
|
|
.mobile-page-tree { overflow: visible; padding-bottom: 24px; }
|
|
.mobile-page-tree .tree-link { min-height: 46px; padding: 9px 14px; font-size: 1.05rem; }
|
|
.mobile-page-tree .tree-children { margin-left: 20px; padding-left: 12px; }
|
|
.mobile-search-view { flex-direction: column; justify-content: flex-end; padding: 40px 28px calc(142px + env(safe-area-inset-bottom)); overflow: hidden; }
|
|
.mobile-search-results { display: flex; max-height: 100%; flex: 1; flex-direction: column-reverse; justify-content: flex-start; gap: 20px; overflow-y: auto; }
|
|
.mobile-search-results .search-result { flex: 0 0 auto; padding: 8px 0; border-radius: 0; }
|
|
.mobile-search-results .search-result:hover, .mobile-search-results .search-result:focus-visible { background: transparent; }
|
|
.mobile-search-results .search-result strong { font-size: 1.25rem; }
|
|
.mobile-search-results .search-result span { font-size: 1rem; }
|
|
.mobile-dock { position: fixed; inset: auto 0 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 16px 28px max(22px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--shell) 74%, transparent); }
|
|
.mobile-menu-button { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; color: var(--text); background: var(--control); font-size: 2rem; }
|
|
body.mobile-menu-open .mobile-menu-button { background: var(--active); }
|
|
.mobile-search-control { display: flex; min-width: 0; height: 72px; flex: 1; align-items: center; border-radius: 38px; background: var(--control); }
|
|
.mobile-search-control input { padding-left: 22px; font-size: 1rem; }
|
|
.mobile-search-control .search-glyph { width: 64px; height: 64px; flex-basis: 64px; background: transparent; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
|
|
}
|
|
|
|
@media print {
|
|
html, body { height: auto; max-height: none; overflow: visible; }
|
|
.app-shell { display: block; }
|
|
.desktop-header, .desktop-sidebar, .mobile-dock, .page-navigation { display: none; }
|
|
.workspace, .page-surface { display: block; height: auto; overflow: visible; }
|
|
.content { width: 100%; padding: 0; }
|
|
}
|