mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-16 15:37:23 -05:00
updated a bit
This commit is contained in:
72
src/css/404.css
Normal file
72
src/css/404.css
Normal file
@@ -0,0 +1,72 @@
|
||||
body.is-404 #sidebar,
|
||||
body.is-404 #toc,
|
||||
body.is-404 #mobile-bar,
|
||||
body.is-404 .footer-nav {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.is-404 #content-wrapper {
|
||||
padding: 0 !important;
|
||||
margin: 0 auto !important;
|
||||
max-width: 100% !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
body.is-404 #content-col,
|
||||
body.is-404 #main-wrap,
|
||||
body.is-404 #main-content {
|
||||
max-width: 100% !important;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
body.is-404 .error-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: calc(80vh - 120px);
|
||||
padding: 40px 20px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body.is-404 .error-code {
|
||||
margin: 0 0 16px;
|
||||
color: var(--text);
|
||||
font-size: clamp(74px, 14vw, 112px);
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: -2px;
|
||||
}
|
||||
|
||||
body.is-404 .error-title {
|
||||
margin: 0 0 24px;
|
||||
color: var(--text);
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
body.is-404 .error-desc {
|
||||
max-width: 440px;
|
||||
margin: 0 0 32px;
|
||||
color: var(--muted);
|
||||
font-size: 15.5px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
body.is-404 .btn-home {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 10px 28px;
|
||||
border-radius: 9999px;
|
||||
background: var(--btn-home-bg);
|
||||
color: var(--btn-home-text) !important;
|
||||
font-size: 14.5px;
|
||||
font-weight: 500;
|
||||
text-decoration: none !important;
|
||||
transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
327
src/css/components.css
Normal file
327
src/css/components.css
Normal file
@@ -0,0 +1,327 @@
|
||||
.ico {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#search-trigger {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: var(--search-bg);
|
||||
width: min(440px, 40vw);
|
||||
height: 36px;
|
||||
padding: 0 12px;
|
||||
border: none;
|
||||
border-radius: 100px;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#search-trigger kbd {
|
||||
margin-left: auto;
|
||||
font: 600 11px var(--font);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.code-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.code-wrap .copy-btn {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
display: flex;
|
||||
padding: 6px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
background: none;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.code-wrap .copy-btn:hover {
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
.code-group {
|
||||
position: relative;
|
||||
margin: 16px 0;
|
||||
border-radius: 20px;
|
||||
background: var(--code-group-bg);
|
||||
padding: 6px 4px 4px;
|
||||
}
|
||||
|
||||
.code-group-tabs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 4px 6px 6px;
|
||||
}
|
||||
|
||||
.code-group-tab {
|
||||
position: relative;
|
||||
padding: 6px 2px 8px;
|
||||
font-family: var(--font);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
line-height: 16px;
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.code-group-tab.active {
|
||||
color: var(--code-tab-active);
|
||||
}
|
||||
|
||||
.code-group-tab.active::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 2px;
|
||||
background: var(--code-tab-active);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.code-group-panels {
|
||||
background: var(--code-group-panel-bg);
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cg-copy-btn {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 4px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: none;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cg-copy-btn:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.code-group-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.code-group-panel.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
main.prose .code-group pre {
|
||||
margin: 0;
|
||||
padding: 16px 20px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
main.prose .code-group pre code {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
main.prose blockquote {
|
||||
margin: 16px 0;
|
||||
padding: 4px 0 4px 16px;
|
||||
border-left: 3px solid var(--border);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
main.prose blockquote p {
|
||||
margin: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.skeleton-wrap {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.skeleton-line,
|
||||
.skeleton-media {
|
||||
background: linear-gradient(90deg, var(--skeleton-pulse-1) 25%, var(--skeleton-pulse-2) 37%, var(--skeleton-pulse-1) 63%);
|
||||
background-size: 400% 100%;
|
||||
animation: skeletonPulse 1.3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@keyframes skeletonPulse {
|
||||
0% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.skeleton-eyebrow {
|
||||
width: 90px;
|
||||
height: 16px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.skeleton-title {
|
||||
width: 65%;
|
||||
height: 38px;
|
||||
margin-bottom: 18px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.skeleton-desc {
|
||||
width: 85%;
|
||||
height: 22px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.skeleton-media {
|
||||
width: 100%;
|
||||
height: 320px;
|
||||
border-radius: 24px;
|
||||
margin: 24px 0;
|
||||
}
|
||||
|
||||
.skeleton-text {
|
||||
height: 16px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.w-100 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.w-90 {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.w-85 {
|
||||
width: 85%;
|
||||
}
|
||||
|
||||
.w-75 {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.content-animate>* {
|
||||
animation: smoothBlurReveal 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||
will-change: filter, opacity, transform;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(1) {
|
||||
animation-delay: 0ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(2) {
|
||||
animation-delay: 35ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(3) {
|
||||
animation-delay: 70ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(4) {
|
||||
animation-delay: 105ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(5) {
|
||||
animation-delay: 140ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(6) {
|
||||
animation-delay: 175ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(7) {
|
||||
animation-delay: 210ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(8) {
|
||||
animation-delay: 245ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(9) {
|
||||
animation-delay: 280ms;
|
||||
}
|
||||
|
||||
.content-animate>*:nth-child(n+10) {
|
||||
animation-delay: 315ms;
|
||||
}
|
||||
|
||||
.content-animate.caught-up>* {
|
||||
animation: none !important;
|
||||
opacity: 1 !important;
|
||||
filter: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
@keyframes smoothBlurReveal {
|
||||
0% {
|
||||
opacity: 0;
|
||||
filter: blur(8px);
|
||||
transform: translateY(6px);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
filter: blur(0px);
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.content-animate>* {
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
.skeleton-line,
|
||||
.skeleton-media {
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
#search-trigger {
|
||||
order: 2;
|
||||
position: static;
|
||||
transform: none;
|
||||
width: auto;
|
||||
padding: 8px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#search-trigger .ico {
|
||||
font-weight: 900;
|
||||
width: 1.53rem;
|
||||
height: 1.3rem;
|
||||
}
|
||||
|
||||
#search-trigger span,
|
||||
#search-trigger kbd {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
main.prose h1,
|
||||
main.prose h2,
|
||||
main.prose h3,
|
||||
main.prose h4 {
|
||||
cursor: pointer;
|
||||
}
|
||||
261
src/css/features.css
Normal file
261
src/css/features.css
Normal file
@@ -0,0 +1,261 @@
|
||||
.bm-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: none;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
transition: color 0.15s ease, background 0.15s ease;
|
||||
}
|
||||
|
||||
.bm-btn .ico {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.bm-btn:hover {
|
||||
background: var(--hover-bg);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.bm-btn.on {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.bm-btn.on .ico {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
.personal-card {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 50px;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.personal-card label {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.pc-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pc-row input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 36px;
|
||||
padding: 0 14px;
|
||||
border: none;
|
||||
border-radius: 100px;
|
||||
background: var(--search-bg);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 13.5px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.pc-row input.bad {
|
||||
border-color: #ef4444;
|
||||
}
|
||||
|
||||
.pc-btn {
|
||||
height: 36px;
|
||||
padding: 0 18px;
|
||||
border: none;
|
||||
border-radius: 100px;
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text);
|
||||
font: inherit;
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
main.prose .pc-hint {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12.5px;
|
||||
line-height: 1.5;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.rec-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
margin-left: 8px;
|
||||
padding: 2px 10px;
|
||||
border-radius: 100px;
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text);
|
||||
font-size: 11.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
tbody tr.rec-row td {
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
tbody tr.rec-row td:first-child {
|
||||
padding-left: 12px;
|
||||
border-top-left-radius: 12px;
|
||||
border-bottom-left-radius: 12px;
|
||||
}
|
||||
|
||||
tbody tr.rec-row td:last-child {
|
||||
padding-right: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
border-bottom-right-radius: 12px;
|
||||
}
|
||||
|
||||
#footer-note {
|
||||
margin: 0 0 16px;
|
||||
font-size: 13.5px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.changelog,
|
||||
.contributors {
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.contributors {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
main.prose .muted-line {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.cl-item {
|
||||
padding: 16px 0;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.cl-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 12.5px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.cl-tag {
|
||||
padding: 2px 10px;
|
||||
border-radius: 100px;
|
||||
background: var(--hover-bg);
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.cl-title {
|
||||
margin-top: 8px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
main.prose .cl-notes {
|
||||
margin: 6px 0 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.cl-link {
|
||||
display: inline-block;
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.ct-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0px 14px 0px 5px;
|
||||
border-radius: 100px;
|
||||
background: var(--hover-bg);
|
||||
color: var(--text);
|
||||
;
|
||||
font-size: 13.5px;
|
||||
margin-right: 10px;
|
||||
height: 40px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ct-chip em {
|
||||
font-style: normal;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.ct-avatar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.ct-avatar-img {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.confetti-canvas {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 3000;
|
||||
}
|
||||
|
||||
body:not(.is-home) main.prose {
|
||||
zoom: var(--text-scale, 1);
|
||||
}
|
||||
|
||||
body.no-deco .cobweb,
|
||||
body.no-deco .spider-container,
|
||||
body.no-deco .snowfall,
|
||||
body.no-deco .leaf-fall,
|
||||
body.no-deco .light-string {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-video .video-bg,
|
||||
body.no-video .body-blurred-video,
|
||||
body.no-video .header-video {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-motion *,
|
||||
body.no-motion *::before,
|
||||
body.no-motion *::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.rec-badge {
|
||||
margin-left: 0 !important;
|
||||
margin-top: 10px !important;
|
||||
}
|
||||
}
|
||||
72
src/css/highlight.css
Normal file
72
src/css/highlight.css
Normal file
@@ -0,0 +1,72 @@
|
||||
pre[class*="language-"],
|
||||
code[class*="language-"] {
|
||||
color: var(--code-text);
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: var(--hl-comment);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: var(--hl-punct);
|
||||
}
|
||||
|
||||
.token.function,
|
||||
.token.function-name {
|
||||
color: var(--hl-func);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.token.keyword,
|
||||
.token.selector {
|
||||
color: var(--hl-keyword);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.token.string,
|
||||
.token.url {
|
||||
color: var(--hl-string);
|
||||
}
|
||||
|
||||
.token.variable,
|
||||
.token.attr-name,
|
||||
.token.property {
|
||||
color: var(--hl-var);
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity {
|
||||
color: var(--hl-op);
|
||||
}
|
||||
|
||||
.token.number,
|
||||
.token.boolean,
|
||||
.token.constant {
|
||||
color: var(--hl-num);
|
||||
}
|
||||
|
||||
.token.parameter {
|
||||
color: var(--hl-param);
|
||||
}
|
||||
|
||||
.token.class-name {
|
||||
color: var(--hl-class);
|
||||
}
|
||||
|
||||
.token.tag {
|
||||
color: var(--hl-tag);
|
||||
}
|
||||
|
||||
.token.deleted {
|
||||
color: var(--hl-deleted-color);
|
||||
background-color: var(--hl-deleted-bg);
|
||||
}
|
||||
|
||||
.token.inserted {
|
||||
color: var(--hl-inserted-color);
|
||||
background-color: var(--hl-inserted-bg);
|
||||
}
|
||||
1007
src/css/layout.css
Normal file
1007
src/css/layout.css
Normal file
File diff suppressed because it is too large
Load Diff
858
src/css/overlay.css
Normal file
858
src/css/overlay.css
Normal file
@@ -0,0 +1,858 @@
|
||||
#search-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#search-modal.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.search-panel {
|
||||
position: relative;
|
||||
width: min(640px, calc(100vw - 24px));
|
||||
margin: 52px auto 0;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
background: var(--search-panel-bg) !important;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.search-input-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 18px 20px;
|
||||
}
|
||||
|
||||
.search-input-row .ico {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
#search-input {
|
||||
flex: 1;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#search-results {
|
||||
max-height: 40vh;
|
||||
overflow-y: auto;
|
||||
padding: 0 6px 8px;
|
||||
}
|
||||
|
||||
.search-label {
|
||||
padding: 8px 14px;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.sr {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.sr>.ico {
|
||||
margin-top: 3px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.sr.on {
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
.sr-body {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sr .t {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.sr .s {
|
||||
display: -webkit-box;
|
||||
margin-top: 2px;
|
||||
font-size: 12.5px;
|
||||
line-height: 1.4;
|
||||
color: var(--muted);
|
||||
overflow: hidden;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.sr .p {
|
||||
margin-top: 2px;
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sr .sep {
|
||||
margin: 0 6px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.sr .hit {
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.search-footer {
|
||||
display: flex;
|
||||
gap: 18px;
|
||||
padding: 12px 20px;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.search-footer .close-hint {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.search-footer kbd {
|
||||
margin-right: 4px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 4px;
|
||||
font: 11px var(--font);
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.search-panel {
|
||||
margin-top: 50px;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.search-footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sheet-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.sheet-overlay.active {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.sheet-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.sheet-panel {
|
||||
position: relative;
|
||||
width: min(500px, calc(100vw - 32px));
|
||||
background: var(--bg-modal);
|
||||
border-radius: 28px;
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
padding: 32px 28px 28px;
|
||||
box-sizing: border-box;
|
||||
transform: scale(0.92) translateY(16px);
|
||||
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sheet-overlay.active .sheet-panel {
|
||||
transform: scale(1) translateY(0);
|
||||
}
|
||||
|
||||
.sheet-handle-bar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sheet-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
margin: 0 0 10px;
|
||||
line-height: 1.3;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sheet-desc {
|
||||
font-size: 14.5px;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
margin: 0 0 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sheet-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sheet-btn-primary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 10px 22px;
|
||||
border-radius: 100px;
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text) !important;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
text-decoration: none !important;
|
||||
transition: transform 0.15s ease, opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.sheet-btn-primary:hover {
|
||||
opacity: 0.9;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.sheet-btn-never {
|
||||
padding: 10px 18px;
|
||||
border: none;
|
||||
background: none;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: 13.5px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
border-radius: 100px;
|
||||
transition: color 0.15s ease, background 0.15s ease;
|
||||
}
|
||||
|
||||
.sheet-btn-never:hover {
|
||||
color: var(--text);
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.sheet-overlay {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.sheet-panel {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
border-radius: 28px 28px 0 0;
|
||||
border-bottom: none;
|
||||
padding: 14px 22px 32px;
|
||||
transform: translateY(100%);
|
||||
transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
|
||||
touch-action: none;
|
||||
max-height: 90vh;
|
||||
}
|
||||
|
||||
.sheet-panel.dragging {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.sheet-overlay.active .sheet-panel {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.sheet-handle-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: 6px 0 16px;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.sheet-handle {
|
||||
width: 40px;
|
||||
height: 5px;
|
||||
border-radius: 999px;
|
||||
background: var(--muted);
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.sheet-actions {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.sheet-btn-primary {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sheet-btn-never {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (orientation: landscape) and (max-height: 550px) {
|
||||
.sheet-panel {
|
||||
max-height: 94vh;
|
||||
overflow-y: auto;
|
||||
padding: 10px max(24px, env(safe-area-inset-right)) 16px max(24px, env(safe-area-inset-left));
|
||||
}
|
||||
|
||||
.sheet-title {
|
||||
font-size: 18px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.sheet-desc {
|
||||
font-size: 13px;
|
||||
margin-bottom: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.sheet-actions {
|
||||
flex-direction: row;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.sheet-btn-primary,
|
||||
.sheet-btn-never {
|
||||
width: auto;
|
||||
padding: 8px 18px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.image-lightbox {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 2000;
|
||||
background: transparent;
|
||||
backdrop-filter: blur(0px);
|
||||
-webkit-backdrop-filter: blur(0px);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: background 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
|
||||
backdrop-filter 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
|
||||
opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.image-lightbox.active {
|
||||
background: var(--bg-modal);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.lightbox-controls {
|
||||
position: fixed;
|
||||
top: max(16px, env(safe-area-inset-top));
|
||||
right: max(16px, env(safe-area-inset-right));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
z-index: 2003;
|
||||
background: var(--bg-menu);
|
||||
border-radius: 100px;
|
||||
padding: 3px 6px;
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
opacity: 0;
|
||||
transform: translateY(-8px) scale(0.96);
|
||||
transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
|
||||
transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
|
||||
}
|
||||
|
||||
.image-lightbox.active .lightbox-controls {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
.lightbox-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font-family: var(--font);
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
|
||||
.lightbox-btn:hover {
|
||||
background: var(--hover-bg);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.lightbox-btn svg {
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
fill: currentColor;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lightbox-img {
|
||||
position: fixed;
|
||||
object-fit: contain;
|
||||
border-radius: 16px;
|
||||
transition: top 0.44s cubic-bezier(0.2, 0.9, 0.3, 1),
|
||||
left 0.44s cubic-bezier(0.2, 0.9, 0.3, 1),
|
||||
width 0.44s cubic-bezier(0.2, 0.9, 0.3, 1),
|
||||
height 0.44s cubic-bezier(0.2, 0.9, 0.3, 1),
|
||||
border-radius 0.44s cubic-bezier(0.2, 0.9, 0.3, 1),
|
||||
transform 0.25s ease;
|
||||
z-index: 2002;
|
||||
transform-origin: center center;
|
||||
will-change: top, left, width, height, transform;
|
||||
}
|
||||
|
||||
main.prose img {
|
||||
cursor: zoom-in;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
main.prose img:hover {
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
#settings-trigger,
|
||||
.side-settings {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background: none;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#settings-trigger .ico,
|
||||
.side-settings .ico {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
#settings-trigger:hover,
|
||||
.side-settings:hover {
|
||||
background: var(--hover-bg);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.settings-panel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.st-top,
|
||||
.st-bottom {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 3;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.st-top::before,
|
||||
.st-bottom::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
backdrop-filter: blur(18px) saturate(1.2);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(1.2);
|
||||
}
|
||||
|
||||
.st-top {
|
||||
top: 0;
|
||||
padding: 26px 28px 30px;
|
||||
}
|
||||
|
||||
.st-top::before {
|
||||
background: linear-gradient(to bottom, var(--bg-menu) 40%, transparent);
|
||||
background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-menu) 94%, transparent), color-mix(in srgb, var(--bg-menu) 80%, transparent) 60%, transparent);
|
||||
-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
|
||||
mask-image: linear-gradient(to bottom, #000 55%, transparent);
|
||||
}
|
||||
|
||||
.st-top .sheet-title {
|
||||
margin: 0 0 6px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.st-top .sheet-desc {
|
||||
margin: 0;
|
||||
font-size: 13.5px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.st-bottom {
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
padding: 36px 28px calc(20px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.st-bottom::before {
|
||||
background: linear-gradient(to top, var(--bg-menu) 40%, transparent);
|
||||
background: linear-gradient(to top, color-mix(in srgb, var(--bg-menu) 94%, transparent), color-mix(in srgb, var(--bg-menu) 80%, transparent) 60%, transparent);
|
||||
-webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
|
||||
mask-image: linear-gradient(to top, #000 55%, transparent);
|
||||
}
|
||||
|
||||
.st-bottom .sheet-btn-primary {
|
||||
border: none;
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.st-bottom .sheet-btn-primary.done {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.st-scroll {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding: var(--st-top, 110px) 28px var(--st-bottom, 84px);
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
touch-action: pan-y;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border) transparent;
|
||||
}
|
||||
|
||||
.st-group {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.st-heading {
|
||||
margin: 0 0 8px 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.st-card {
|
||||
border-radius: 20px;
|
||||
background: var(--hover-bg);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.st-row,
|
||||
.st-field {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
padding: 14px 16px;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.st-card>:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.st-row {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.st-row.stack {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
label.st-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.st-field {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.st-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.st-label {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.st-hint {
|
||||
font-size: 12.5px;
|
||||
line-height: 1.45;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.st-hint.err {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.st-input {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
padding: 0 16px;
|
||||
border: none;
|
||||
border-radius: 100px;
|
||||
background: var(--search-bg);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
|
||||
.st-input::placeholder {
|
||||
color: var(--muted);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.st-input:focus {
|
||||
border-color: var(--text);
|
||||
}
|
||||
|
||||
.st-input.bad {
|
||||
border-color: #ef4444;
|
||||
}
|
||||
|
||||
.st-swatches {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.st-swatch {
|
||||
display: block;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: var(--sw, var(--hover-bg));
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.st-swatch:hover {
|
||||
transform: scale(1.12);
|
||||
}
|
||||
|
||||
.st-swatch.on {
|
||||
box-shadow: 0 0 0 2px var(--bg-menu), 0 0 0 4px var(--text);
|
||||
;
|
||||
}
|
||||
|
||||
.st-swatch.reset {
|
||||
background: linear-gradient(135deg, transparent 46%, var(--muted) 46%, var(--muted) 54%, transparent 54%), var(--search-bg);
|
||||
box-shadow: inset 0 0 0 1.5px var(--muted);
|
||||
}
|
||||
|
||||
.st-swatch.reset.on {
|
||||
box-shadow: inset 0 0 0 1.5px var(--muted), 0 0 0 2px var(--bg-menu), 0 0 0 4px var(--text);
|
||||
;
|
||||
}
|
||||
|
||||
.st-swatch.custom {
|
||||
background: conic-gradient(from 0deg, #ff5c5c, #f4b942, #5fd68f, #8ad1ff, #c084fc, #ff5c5c);
|
||||
}
|
||||
|
||||
.st-swatch.custom input {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: none;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.st-seg {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
padding: 3px;
|
||||
border-radius: 100px;
|
||||
background: var(--search-bg);
|
||||
}
|
||||
|
||||
.st-seg button {
|
||||
flex: 1;
|
||||
height: 32px;
|
||||
padding: 0 10px;
|
||||
border: none;
|
||||
border-radius: 100px;
|
||||
background: none;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
|
||||
.st-seg button:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.st-seg button.on {
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text);
|
||||
}
|
||||
|
||||
.st-switch {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
width: 44px;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.st-switch input {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.st-track {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 100px;
|
||||
background: var(--search-bg);
|
||||
transition: background 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.st-track::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: var(--muted);
|
||||
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
|
||||
}
|
||||
|
||||
.st-switch input:checked+.st-track {
|
||||
border-color: transparent;
|
||||
background: var(--btn-primary-bg);
|
||||
}
|
||||
|
||||
.st-switch input:checked+.st-track::after {
|
||||
transform: translateX(18px);
|
||||
background: var(--btn-primary-text);
|
||||
}
|
||||
|
||||
.st-switch input:focus-visible+.st-track {
|
||||
outline: 2px solid var(--text);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (min-width: 901px) {
|
||||
.settings-panel {
|
||||
width: min(540px, calc(100vw - 32px));
|
||||
max-height: min(88vh, 780px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.st-top {
|
||||
padding: 8px 22px 28px;
|
||||
}
|
||||
|
||||
.st-scroll {
|
||||
padding-left: 22px;
|
||||
padding-right: 22px;
|
||||
}
|
||||
|
||||
.st-bottom {
|
||||
padding: 36px 22px calc(18px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.st-bottom .sheet-btn-primary {
|
||||
flex: 1;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.st-bottom .sheet-btn-never {
|
||||
flex: 0 0 auto;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (orientation: landscape) and (max-height: 550px) {
|
||||
.settings-panel {
|
||||
max-height: 94vh;
|
||||
}
|
||||
|
||||
.st-top {
|
||||
padding: 14px 24px 22px;
|
||||
}
|
||||
|
||||
.st-top .sheet-title {
|
||||
font-size: 17px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.st-top .sheet-desc {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
305
src/css/prose.css
Normal file
305
src/css/prose.css
Normal file
@@ -0,0 +1,305 @@
|
||||
main.prose {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
main.prose .eyebrow {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 8px;
|
||||
color: var(--text);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
main.prose h1 {
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
margin: 0 0 6px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
main.prose .page-description {
|
||||
color: var(--muted);
|
||||
font-size: 18px;
|
||||
margin: 0 0 32px;
|
||||
}
|
||||
|
||||
main.prose h2 {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
margin: 40px 0 14px;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
main.prose h2:first-child {
|
||||
border-top: none;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
main.prose h3 {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
margin: 26px 0 10px;
|
||||
}
|
||||
|
||||
main.prose h2,
|
||||
main.prose h3 {
|
||||
scroll-margin-top: 130px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
main.prose p,
|
||||
main.prose li {
|
||||
color: var(--muted);
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
main.prose strong {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
main.prose a {
|
||||
color: var(--text);
|
||||
;
|
||||
font-weight: 600;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
main.prose ul,
|
||||
main.prose ol {
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
main.prose li {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
main.prose img {
|
||||
max-width: 100%;
|
||||
border-radius: 16px;
|
||||
display: block;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
main.prose img.vyla-banner {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
main.prose hr {
|
||||
border: none;
|
||||
}
|
||||
|
||||
main.prose code {
|
||||
background: var(--code-inline-bg);
|
||||
color: var(--text);
|
||||
font-family: var(--mono);
|
||||
font-size: 13px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
main.prose pre {
|
||||
margin: 16px 0;
|
||||
padding: 16px 20px;
|
||||
border-radius: 25px;
|
||||
overflow-x: auto;
|
||||
background: var(--bg-code);
|
||||
color: var(--code-text);
|
||||
--fade-l: 0px;
|
||||
--fade-r: 0px;
|
||||
scrollbar-width: none;
|
||||
-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
|
||||
mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
|
||||
}
|
||||
|
||||
main.prose pre code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
--fade-l: 0px;
|
||||
--fade-r: 0px;
|
||||
max-width: 100%;
|
||||
margin: 20px 0;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: thin;
|
||||
border-radius: 14px;
|
||||
-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
|
||||
mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
|
||||
}
|
||||
|
||||
.table-wrap table {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
margin: 0;
|
||||
font-size: 13.5px;
|
||||
line-height: 1.55;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th {
|
||||
padding: 12px 5px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 14px 5px;
|
||||
vertical-align: top;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
color: var(--text);
|
||||
;
|
||||
}
|
||||
|
||||
tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
td code {
|
||||
white-space: nowrap;
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
.callout {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 14px 11px;
|
||||
border-radius: 25px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.callout-content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.callout-content> :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.callout-content> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.callout-note {
|
||||
background: var(--callout-note-bg);
|
||||
}
|
||||
|
||||
.callout-info {
|
||||
background: var(--callout-info-bg);
|
||||
}
|
||||
|
||||
.callout-warning {
|
||||
background: var(--callout-warning-bg) !important;
|
||||
color: var(--callout-warning-text) !important;
|
||||
}
|
||||
|
||||
.callout-warning p,
|
||||
.callout-warning strong {
|
||||
color: inherit !important;
|
||||
}
|
||||
|
||||
aside#toc {
|
||||
width: var(--toc-width);
|
||||
flex-shrink: 0;
|
||||
display: none;
|
||||
border-radius: 12px;
|
||||
padding-left: 10px;
|
||||
height: fit-content;
|
||||
max-height: calc(100vh - var(--header-height) - 40px);
|
||||
padding-bottom: 10px;
|
||||
overflow-y: auto;
|
||||
position: sticky;
|
||||
top: calc(var(--header-height) + 40px);
|
||||
}
|
||||
|
||||
@media (min-width: 1100px) {
|
||||
aside#toc {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
aside#toc .toc-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 20px;
|
||||
color: var(--text);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
aside#toc .toc-title::before {
|
||||
content: "";
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: currentColor;
|
||||
-webkit-mask: var(--ico-toc-mask) center / contain no-repeat;
|
||||
mask: var(--ico-toc-mask) center / contain no-repeat;
|
||||
}
|
||||
|
||||
aside#toc ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
aside#toc li a {
|
||||
display: block;
|
||||
padding: 6px 0;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
aside#toc li a:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
aside#toc li a.active {
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
aside#toc {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@supports (-webkit-touch-callout: none) {
|
||||
#main-wrap {
|
||||
margin-top: max(130px, env(safe-area-inset-top));
|
||||
}
|
||||
|
||||
body.is-home {
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
}
|
||||
518
src/css/roots.css
Normal file
518
src/css/roots.css
Normal file
@@ -0,0 +1,518 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
|
||||
|
||||
:root,
|
||||
:root[data-theme="dark"] {
|
||||
--bg: #000000;
|
||||
--text: #f3f3f3;
|
||||
--text: #ffffff;
|
||||
--muted: #a3a3a3;
|
||||
--border: #2b2b2b98;
|
||||
--bg-elevated: rgba(255, 255, 255, 0.08);
|
||||
--bg-card: rgba(25, 25, 25, 0.2);
|
||||
--bg-card-hover: rgba(28, 28, 28, 0.8);
|
||||
--bg-code: #050505;
|
||||
--code-inline-bg: #050505;
|
||||
--code-inline-text: #f3f3f3;
|
||||
--code-text: #abb2bf;
|
||||
--bg-menu: #000000;
|
||||
--bg-modal: rgba(10, 10, 10, 0.35);
|
||||
--hover-bg: rgba(120, 120, 120, 0.05);
|
||||
--search-bg: rgba(50, 50, 50, 0.1);
|
||||
--search-panel-bg: rgba(10, 10, 10, 0.6);
|
||||
--code-group-bg: #0d0d0d;
|
||||
--code-group-panel-bg: #000000;
|
||||
--code-tab-active: #ffffff;
|
||||
--footer-border: rgba(255, 255, 255, 0.08);
|
||||
--border-subtle: rgba(255, 255, 255, 0.05);
|
||||
--btn-primary-bg: #ffffff;
|
||||
--btn-primary-text: #000000;
|
||||
--btn-home-bg: #ffffff;
|
||||
--btn-home-text: #000000;
|
||||
--callout-note-bg: rgba(50, 50, 50, 0.1);
|
||||
--callout-info-bg: rgba(39, 39, 39, 0.08);
|
||||
--callout-warning-bg: rgba(180, 120, 0, 0.18);
|
||||
--callout-warning-text: #fde047;
|
||||
--body-radial-tint: rgba(0, 0, 0, 0.7);
|
||||
--skeleton-pulse-1: rgba(255, 255, 255, 0.05);
|
||||
--skeleton-pulse-2: rgba(255, 255, 255, 0.12);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(255, 255, 255, 0.3);
|
||||
--snow-display: none;
|
||||
--leaf-display: none;
|
||||
--lights-display: none;
|
||||
|
||||
--hl-comment: #5c6370;
|
||||
--hl-punct: #abb2bf;
|
||||
--hl-func: #61afef;
|
||||
--hl-keyword: #c678dd;
|
||||
--hl-string: #98c379;
|
||||
--hl-var: #e06c75;
|
||||
--hl-op: #56b6c2;
|
||||
--hl-num: #d19a66;
|
||||
--hl-param: #d19a66;
|
||||
--hl-class: #e5c07b;
|
||||
--hl-tag: #e06c75;
|
||||
--hl-deleted-color: #e06c75;
|
||||
--hl-deleted-bg: rgba(224, 108, 117, 0.15);
|
||||
--hl-inserted-color: #98c379;
|
||||
--hl-inserted-bg: rgba(152, 195, 121, 0.15);
|
||||
|
||||
--sidebar-width: 150px;
|
||||
--toc-width: 240px;
|
||||
--header-height: 148px;
|
||||
--font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
||||
|
||||
--ico-toc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h14'/%3E%3C/svg%3E");
|
||||
--ico-check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
|
||||
--ico-chevron-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||||
--ico-search-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
|
||||
--ico-close-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
:root[data-theme="light"] {
|
||||
--bg: #ffffff;
|
||||
--text: #000000;
|
||||
--muted: #6b7280;
|
||||
--border: #e5e7eb;
|
||||
--bg-elevated: rgba(0, 0, 0, 0.05);
|
||||
--bg-card: rgba(240, 240, 240, 0.85);
|
||||
--bg-card-hover: rgba(225, 225, 225, 0.95);
|
||||
--bg-code: #fafafa;
|
||||
--code-inline-bg: rgba(240, 240, 240, 0.8);
|
||||
--code-inline-text: #0b0b0c;
|
||||
--code-text: #24292e;
|
||||
--bg-menu: #ffffff;
|
||||
--bg-modal: rgba(240, 240, 240);
|
||||
--hover-bg: rgba(0, 0, 0, 0.05);
|
||||
--search-bg: rgba(0, 0, 0, 0.05);
|
||||
--search-panel-bg: rgba(255, 255, 255, 0.85);
|
||||
--code-group-bg: #f4f4f5;
|
||||
--code-group-panel-bg: #ffffff;
|
||||
--code-tab-active: #0b0b0c;
|
||||
--footer-border: rgba(0, 0, 0, 0.08);
|
||||
--border-subtle: rgba(0, 0, 0, 0.05);
|
||||
--btn-primary-bg: #000000;
|
||||
--btn-primary-text: #ffffff;
|
||||
--btn-home-bg: #000000;
|
||||
--btn-home-text: #ffffff;
|
||||
--callout-note-bg: rgba(5, 5, 5, 0.06);
|
||||
--callout-info-bg: rgba(39, 39, 39, 0.06);
|
||||
--callout-warning-bg: #fefce8;
|
||||
--callout-warning-text: #854d0e;
|
||||
--body-radial-tint: rgba(255, 255, 255, 0.7);
|
||||
--skeleton-pulse-1: rgba(0, 0, 0, 0.05);
|
||||
--skeleton-pulse-2: rgba(0, 0, 0, 0.12);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(0, 0, 0, 0.3);
|
||||
|
||||
--hl-comment: #6a737d;
|
||||
--hl-punct: #24292e;
|
||||
--hl-func: #6f42c1;
|
||||
--hl-keyword: #d73a49;
|
||||
--hl-string: #22863a;
|
||||
--hl-var: #e36209;
|
||||
--hl-op: #d73a49;
|
||||
--hl-num: #005cc5;
|
||||
--hl-param: #b08800;
|
||||
--hl-class: #6f42c1;
|
||||
--hl-tag: #22863a;
|
||||
--hl-deleted-color: #b31d28;
|
||||
--hl-deleted-bg: #ffeef0;
|
||||
--hl-inserted-color: #22863a;
|
||||
--hl-inserted-bg: #f0fff4;
|
||||
}
|
||||
|
||||
:root[data-theme="midnight"] {
|
||||
--bg: #070913;
|
||||
--text: #e2e8f0;
|
||||
--text: #f8fafc;
|
||||
--muted: #7f8ea3;
|
||||
--border: #1a2234;
|
||||
--bg-elevated: rgba(30, 41, 59, 0.5);
|
||||
--bg-card: rgba(15, 23, 42, 0.55);
|
||||
--bg-card-hover: rgba(30, 41, 59, 0.7);
|
||||
--bg-code: #0b1120;
|
||||
--code-inline-bg: #0f172a;
|
||||
--code-inline-text: #38bdf8;
|
||||
--code-text: #cbd5e1;
|
||||
--bg-menu: #0b1120;
|
||||
--bg-modal: rgba(11, 17, 32, 0.75);
|
||||
--hover-bg: rgba(56, 189, 248, 0.08);
|
||||
--search-bg: rgba(30, 41, 59, 0.4);
|
||||
--search-panel-bg: rgba(11, 17, 32, 0.85);
|
||||
--code-group-bg: #0b1329;
|
||||
--code-group-panel-bg: #070913;
|
||||
--code-tab-active: #38bdf8;
|
||||
--footer-border: #1e293b;
|
||||
--border-subtle: rgba(255, 255, 255, 0.06);
|
||||
--btn-primary-bg: #38bdf8;
|
||||
--btn-primary-text: #020617;
|
||||
--btn-home-bg: #38bdf8;
|
||||
--btn-home-text: #020617;
|
||||
--callout-note-bg: rgba(56, 189, 248, 0.1);
|
||||
--callout-info-bg: rgba(99, 102, 241, 0.12);
|
||||
--callout-warning-bg: rgba(245, 158, 11, 0.15);
|
||||
--callout-warning-text: #fbbf24;
|
||||
--body-radial-tint: rgba(7, 9, 19, 0.85);
|
||||
--skeleton-pulse-1: rgba(56, 189, 248, 0.05);
|
||||
--skeleton-pulse-2: rgba(56, 189, 248, 0.15);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(56, 189, 248, 0.3);
|
||||
|
||||
--hl-comment: #64748b;
|
||||
--hl-punct: #94a3b8;
|
||||
--hl-func: #38bdf8;
|
||||
--hl-keyword: #818cf8;
|
||||
--hl-string: #34d399;
|
||||
--hl-var: #f472b6;
|
||||
--hl-op: #38bdf8;
|
||||
--hl-num: #fbbf24;
|
||||
--hl-param: #cbd5e1;
|
||||
--hl-class: #67e8f9;
|
||||
--hl-tag: #818cf8;
|
||||
--hl-deleted-color: #f87171;
|
||||
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
|
||||
--hl-inserted-color: #34d399;
|
||||
--hl-inserted-bg: rgba(52, 211, 153, 0.15);
|
||||
}
|
||||
|
||||
:root[data-theme="nord"] {
|
||||
--bg: #2e3440;
|
||||
--text: #eceff4;
|
||||
--text: #88c0d0;
|
||||
--muted: #d8dee9;
|
||||
--border: #3b4252;
|
||||
--bg-elevated: rgba(67, 76, 94, 0.5);
|
||||
--bg-card: rgba(59, 66, 82, 0.5);
|
||||
--bg-card-hover: rgba(67, 76, 94, 0.7);
|
||||
--bg-code: #242933;
|
||||
--code-inline-bg: #3b4252;
|
||||
--code-inline-text: #eceff4;
|
||||
--code-text: #d8dee9;
|
||||
--bg-menu: #2e3440;
|
||||
--bg-modal: rgba(46, 52, 64, 0.8);
|
||||
--hover-bg: rgba(136, 192, 208, 0.1);
|
||||
--search-bg: rgba(59, 66, 82, 0.5);
|
||||
--search-panel-bg: rgba(46, 52, 64, 0.9);
|
||||
--code-group-bg: #3b4252;
|
||||
--code-group-panel-bg: #2e3440;
|
||||
--code-tab-active: #88c0d0;
|
||||
--footer-border: #3b4252;
|
||||
--border-subtle: rgba(255, 255, 255, 0.05);
|
||||
--btn-primary-bg: #88c0d0;
|
||||
--btn-primary-text: #2e3440;
|
||||
--btn-home-bg: #88c0d0;
|
||||
--btn-home-text: #2e3440;
|
||||
--callout-note-bg: rgba(129, 161, 193, 0.15);
|
||||
--callout-info-bg: rgba(136, 192, 208, 0.15);
|
||||
--callout-warning-bg: rgba(235, 203, 139, 0.15);
|
||||
--callout-warning-text: #ebcb8b;
|
||||
--body-radial-tint: rgba(46, 52, 64, 0.8);
|
||||
--skeleton-pulse-1: rgba(216, 222, 233, 0.05);
|
||||
--skeleton-pulse-2: rgba(216, 222, 233, 0.12);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(236, 239, 244, 0.3);
|
||||
|
||||
--hl-comment: #616e88;
|
||||
--hl-punct: #d8dee9;
|
||||
--hl-func: #88c0d0;
|
||||
--hl-keyword: #81a1c1;
|
||||
--hl-string: #a3be8c;
|
||||
--hl-var: #d08770;
|
||||
--hl-op: #81a1c1;
|
||||
--hl-num: #b48ead;
|
||||
--hl-param: #d8dee9;
|
||||
--hl-class: #8fbcbb;
|
||||
--hl-tag: #81a1c1;
|
||||
--hl-deleted-color: #bf616a;
|
||||
--hl-deleted-bg: rgba(191, 97, 106, 0.15);
|
||||
--hl-inserted-color: #a3be8c;
|
||||
--hl-inserted-bg: rgba(163, 190, 140, 0.15);
|
||||
}
|
||||
|
||||
:root[data-theme="dracula"] {
|
||||
--bg: #282a36;
|
||||
--text: #f8f8f2;
|
||||
--text: #bd93f9;
|
||||
--muted: #6272a4;
|
||||
--border: #44475a;
|
||||
--bg-elevated: rgba(68, 71, 90, 0.5);
|
||||
--bg-card: rgba(68, 71, 90, 0.4);
|
||||
--bg-card-hover: rgba(68, 71, 90, 0.7);
|
||||
--bg-code: #1e1f29;
|
||||
--code-inline-bg: #44475a;
|
||||
--code-inline-text: #ff79c6;
|
||||
--code-text: #f8f8f2;
|
||||
--bg-menu: #282a36;
|
||||
--bg-modal: rgba(40, 42, 54, 0.85);
|
||||
--hover-bg: rgba(189, 147, 249, 0.12);
|
||||
--search-bg: rgba(68, 71, 90, 0.5);
|
||||
--search-panel-bg: rgba(40, 42, 54, 0.9);
|
||||
--code-group-bg: #44475a;
|
||||
--code-group-panel-bg: #282a36;
|
||||
--code-tab-active: #ff79c6;
|
||||
--footer-border: #44475a;
|
||||
--border-subtle: rgba(255, 255, 255, 0.07);
|
||||
--btn-primary-bg: #bd93f9;
|
||||
--btn-primary-text: #282a36;
|
||||
--btn-home-bg: #bd93f9;
|
||||
--btn-home-text: #282a36;
|
||||
--callout-note-bg: rgba(189, 147, 249, 0.15);
|
||||
--callout-info-bg: rgba(139, 233, 253, 0.15);
|
||||
--callout-warning-bg: rgba(241, 250, 140, 0.15);
|
||||
--callout-warning-text: #f1fa8c;
|
||||
--body-radial-tint: rgba(40, 42, 54, 0.85);
|
||||
--skeleton-pulse-1: rgba(98, 114, 164, 0.08);
|
||||
--skeleton-pulse-2: rgba(98, 114, 164, 0.2);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(189, 147, 249, 0.3);
|
||||
|
||||
--hl-comment: #6272a4;
|
||||
--hl-punct: #f8f8f2;
|
||||
--hl-func: #50fa7b;
|
||||
--hl-keyword: #ff79c6;
|
||||
--hl-string: #f1fa8c;
|
||||
--hl-var: #ffb86c;
|
||||
--hl-op: #ff79c6;
|
||||
--hl-num: #bd93f9;
|
||||
--hl-param: #ffb86c;
|
||||
--hl-class: #8be9fd;
|
||||
--hl-tag: #ff79c6;
|
||||
--hl-deleted-color: #ff5555;
|
||||
--hl-deleted-bg: rgba(255, 85, 85, 0.15);
|
||||
--hl-inserted-color: #50fa7b;
|
||||
--hl-inserted-bg: rgba(80, 250, 123, 0.15);
|
||||
}
|
||||
|
||||
:root[data-theme="forest"] {
|
||||
--bg: #0d1612;
|
||||
--text: #e2ede5;
|
||||
--text: #86efac;
|
||||
--muted: #739481;
|
||||
--border: #1a2f24;
|
||||
--bg-elevated: rgba(34, 76, 56, 0.35);
|
||||
--bg-card: rgba(20, 42, 31, 0.45);
|
||||
--bg-card-hover: rgba(28, 59, 44, 0.65);
|
||||
--bg-code: #080f0c;
|
||||
--code-inline-bg: #142a1f;
|
||||
--code-inline-text: #86efac;
|
||||
--code-text: #d1fae5;
|
||||
--bg-menu: #0d1612;
|
||||
--bg-modal: rgba(13, 22, 18, 0.85);
|
||||
--hover-bg: rgba(134, 239, 172, 0.08);
|
||||
--search-bg: rgba(26, 47, 36, 0.6);
|
||||
--search-panel-bg: rgba(13, 22, 18, 0.9);
|
||||
--code-group-bg: #15271e;
|
||||
--code-group-panel-bg: #0d1612;
|
||||
--code-tab-active: #86efac;
|
||||
--footer-border: #1a2f24;
|
||||
--border-subtle: rgba(255, 255, 255, 0.05);
|
||||
--btn-primary-bg: #4ade80;
|
||||
--btn-primary-text: #052e16;
|
||||
--btn-home-bg: #4ade80;
|
||||
--btn-home-text: #052e16;
|
||||
--callout-note-bg: rgba(74, 222, 128, 0.12);
|
||||
--callout-info-bg: rgba(45, 212, 191, 0.12);
|
||||
--callout-warning-bg: rgba(250, 204, 21, 0.15);
|
||||
--callout-warning-text: #fde047;
|
||||
--body-radial-tint: rgba(13, 22, 18, 0.85);
|
||||
--skeleton-pulse-1: rgba(134, 239, 172, 0.05);
|
||||
--skeleton-pulse-2: rgba(134, 239, 172, 0.12);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(134, 239, 172, 0.3);
|
||||
|
||||
--hl-comment: #527561;
|
||||
--hl-punct: #d1fae5;
|
||||
--hl-func: #4ade80;
|
||||
--hl-keyword: #2dd4bf;
|
||||
--hl-string: #a7f3d0;
|
||||
--hl-var: #fcd34d;
|
||||
--hl-op: #34d399;
|
||||
--hl-num: #fbbf24;
|
||||
--hl-param: #e2ede5;
|
||||
--hl-class: #6ee7b7;
|
||||
--hl-tag: #2dd4bf;
|
||||
--hl-deleted-color: #f87171;
|
||||
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
|
||||
--hl-inserted-color: #4ade80;
|
||||
--hl-inserted-bg: rgba(74, 222, 128, 0.15);
|
||||
}
|
||||
|
||||
:root[data-theme="sunset"] {
|
||||
--bg: #180d18;
|
||||
--text: #fce7f3;
|
||||
--text: #fb7185;
|
||||
--muted: #a77c98;
|
||||
--border: #3b1d36;
|
||||
--bg-elevated: rgba(80, 30, 70, 0.35);
|
||||
--bg-card: rgba(50, 20, 45, 0.5);
|
||||
--bg-card-hover: rgba(75, 30, 68, 0.65);
|
||||
--bg-code: #120712;
|
||||
--code-inline-bg: #3b1d36;
|
||||
--code-inline-text: #fda4af;
|
||||
--code-text: #fbcfe8;
|
||||
--bg-menu: #180d18;
|
||||
--bg-modal: rgba(24, 13, 24, 0.85);
|
||||
--hover-bg: rgba(251, 113, 133, 0.1);
|
||||
--search-bg: rgba(59, 29, 54, 0.5);
|
||||
--search-panel-bg: rgba(24, 13, 24, 0.9);
|
||||
--code-group-bg: #2d1329;
|
||||
--code-group-panel-bg: #180d18;
|
||||
--code-tab-active: #fb7185;
|
||||
--footer-border: #3b1d36;
|
||||
--border-subtle: rgba(255, 255, 255, 0.05);
|
||||
--btn-primary-bg: #f43f5e;
|
||||
--btn-primary-text: #ffffff;
|
||||
--btn-home-bg: #f43f5e;
|
||||
--btn-home-text: #ffffff;
|
||||
--callout-note-bg: rgba(251, 113, 133, 0.15);
|
||||
--callout-info-bg: rgba(192, 132, 252, 0.15);
|
||||
--callout-warning-bg: rgba(251, 146, 60, 0.15);
|
||||
--callout-warning-text: #fdba74;
|
||||
--body-radial-tint: rgba(24, 13, 24, 0.85);
|
||||
--skeleton-pulse-1: rgba(251, 113, 133, 0.05);
|
||||
--skeleton-pulse-2: rgba(251, 113, 133, 0.15);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(251, 113, 133, 0.3);
|
||||
|
||||
--hl-comment: #835b77;
|
||||
--hl-punct: #fbcfe8;
|
||||
--hl-func: #fb7185;
|
||||
--hl-keyword: #c084fc;
|
||||
--hl-string: #f472b6;
|
||||
--hl-var: #fb923c;
|
||||
--hl-op: #f43f5e;
|
||||
--hl-num: #facc15;
|
||||
--hl-param: #fce7f3;
|
||||
--hl-class: #e879f9;
|
||||
--hl-tag: #c084fc;
|
||||
--hl-deleted-color: #f87171;
|
||||
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
|
||||
--hl-inserted-color: #4ade80;
|
||||
--hl-inserted-bg: rgba(74, 222, 128, 0.15);
|
||||
}
|
||||
|
||||
:root[data-theme="cyberpunk"] {
|
||||
--bg: #050508;
|
||||
--text: #00ffcc;
|
||||
--text: #ffe600;
|
||||
--muted: #5e7a75;
|
||||
--border: #1a2a26;
|
||||
--bg-elevated: rgba(0, 255, 204, 0.08);
|
||||
--bg-card: rgba(10, 20, 20, 0.7);
|
||||
--bg-card-hover: rgba(20, 40, 35, 0.85);
|
||||
--bg-code: #020204;
|
||||
--code-inline-bg: rgba(0, 255, 204, 0.12);
|
||||
--code-inline-text: #ffe600;
|
||||
--code-text: #00ffcc;
|
||||
--bg-menu: #08080f;
|
||||
--bg-modal: rgba(5, 5, 8, 0.9);
|
||||
--hover-bg: rgba(0, 255, 204, 0.1);
|
||||
--search-bg: rgba(0, 255, 204, 0.08);
|
||||
--search-panel-bg: rgba(8, 8, 15, 0.95);
|
||||
--code-group-bg: #0e121a;
|
||||
--code-group-panel-bg: #050508;
|
||||
--code-tab-active: #ffe600;
|
||||
--footer-border: #1a2a26;
|
||||
--border-subtle: rgba(0, 255, 204, 0.15);
|
||||
--btn-primary-bg: #ffe600;
|
||||
--btn-primary-text: #000000;
|
||||
--btn-home-bg: #00ffcc;
|
||||
--btn-home-text: #000000;
|
||||
--callout-note-bg: rgba(0, 255, 204, 0.12);
|
||||
--callout-info-bg: rgba(255, 0, 128, 0.15);
|
||||
--callout-warning-bg: rgba(255, 230, 0, 0.15);
|
||||
--callout-warning-text: #ffe600;
|
||||
--body-radial-tint: rgba(5, 5, 8, 0.9);
|
||||
--skeleton-pulse-1: rgba(0, 255, 204, 0.05);
|
||||
--skeleton-pulse-2: rgba(255, 230, 0, 0.12);
|
||||
--spider-display: none;
|
||||
--cobweb-display: none;
|
||||
--spider-thread: rgba(0, 255, 204, 0.3);
|
||||
|
||||
--hl-comment: #3f5e58;
|
||||
--hl-punct: #00ffcc;
|
||||
--hl-func: #ffe600;
|
||||
--hl-keyword: #ff007f;
|
||||
--hl-string: #00f0ff;
|
||||
--hl-var: #ff5500;
|
||||
--hl-op: #ff007f;
|
||||
--hl-num: #00ffcc;
|
||||
--hl-param: #ffffff;
|
||||
--hl-class: #ffe600;
|
||||
--hl-tag: #ff007f;
|
||||
--hl-deleted-color: #ff0055;
|
||||
--hl-deleted-bg: rgba(255, 0, 85, 0.2);
|
||||
--hl-inserted-color: #00ffcc;
|
||||
--hl-inserted-bg: rgba(0, 255, 204, 0.2);
|
||||
}
|
||||
|
||||
body.banner-dismissed {
|
||||
--header-height: 109px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100%;
|
||||
min-height: -webkit-fill-available;
|
||||
margin: 0;
|
||||
font-family: var(--font);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
;
|
||||
line-height: 1.65;
|
||||
overflow-x: hidden;
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
padding-left: env(safe-area-inset-left);
|
||||
padding-right: env(safe-area-inset-right);
|
||||
}
|
||||
|
||||
html::-webkit-scrollbar,
|
||||
body::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
background: radial-gradient(ellipse at center, transparent 35%, var(--body-radial-tint) 100%);
|
||||
}
|
||||
|
||||
.video-bg {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: -2;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
250
src/css/themes.css
Normal file
250
src/css/themes.css
Normal file
@@ -0,0 +1,250 @@
|
||||
:root {
|
||||
--snow-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='white'%3E%3Ccircle cx='22' cy='38' r='2.4' fill-opacity='.9'/%3E%3Ccircle cx='96' cy='126' r='1.8' fill-opacity='.7'/%3E%3Ccircle cx='168' cy='28' r='3' fill-opacity='.85'/%3E%3Ccircle cx='236' cy='204' r='2' fill-opacity='.75'/%3E%3Ccircle cx='272' cy='92' r='2.8' fill-opacity='.9'/%3E%3Ccircle cx='58' cy='252' r='2.2' fill-opacity='.8'/%3E%3Ccircle cx='196' cy='282' r='1.6' fill-opacity='.7'/%3E%3Ccircle cx='140' cy='190' r='2.4' fill-opacity='.85'/%3E%3C/g%3E%3Cg stroke='white' stroke-opacity='.9' stroke-width='1.3' stroke-linecap='round' fill='none'%3E%3Cpath transform='translate(126 72)' d='M0 -8V8M-6.9 -4L6.9 4M-6.9 4L6.9 -4'/%3E%3Cpath transform='translate(246 150)' d='M0 -6V6M-5.2 -3L5.2 3M-5.2 3L5.2 -3'/%3E%3Cpath transform='translate(40 160)' d='M0 -7V7M-6 -3.5L6 3.5M-6 3.5L6 -3.5'/%3E%3Cpath transform='translate(210 250)' d='M0 -6V6M-5.2 -3L5.2 3M-5.2 3L5.2 -3'/%3E%3C/g%3E%3C/svg%3E");
|
||||
--leaf-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg transform='translate(50 60) rotate(25) scale(1.2)' fill='%23e8710a'%3E%3Cpath d='M0 -14C10 -8 12 6 0 16C-12 6 -10 -8 0 -14Z'/%3E%3Cpath d='M0 -12V14' stroke='%23000' stroke-opacity='.25' stroke-width='1'/%3E%3C/g%3E%3Cg transform='translate(190 40) rotate(-40)' fill='%23c2410c'%3E%3Cpath d='M0 -14C10 -8 12 6 0 16C-12 6 -10 -8 0 -14Z'/%3E%3Cpath d='M0 -12V14' stroke='%23000' stroke-opacity='.25' stroke-width='1'/%3E%3C/g%3E%3Cg transform='translate(300 130) rotate(70) scale(1.3)' fill='%23eab308'%3E%3Cpath d='M0 -14C10 -8 12 6 0 16C-12 6 -10 -8 0 -14Z'/%3E%3Cpath d='M0 -12V14' stroke='%23000' stroke-opacity='.25' stroke-width='1'/%3E%3C/g%3E%3Cg transform='translate(120 200) rotate(-15) scale(1.1)' fill='%23b45309'%3E%3Cpath d='M0 -14C10 -8 12 6 0 16C-12 6 -10 -8 0 -14Z'/%3E%3Cpath d='M0 -12V14' stroke='%23000' stroke-opacity='.25' stroke-width='1'/%3E%3C/g%3E%3Cg transform='translate(250 280) rotate(140) scale(1.2)' fill='%23d97706'%3E%3Cpath d='M0 -14C10 -8 12 6 0 16C-12 6 -10 -8 0 -14Z'/%3E%3Cpath d='M0 -12V14' stroke='%23000' stroke-opacity='.25' stroke-width='1'/%3E%3C/g%3E%3Cg transform='translate(40 310) rotate(-80)' fill='%23ca8a04'%3E%3Cpath d='M0 -14C10 -8 12 6 0 16C-12 6 -10 -8 0 -14Z'/%3E%3Cpath d='M0 -12V14' stroke='%23000' stroke-opacity='.25' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
|
||||
--lights-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='56'%3E%3Cpath d='M0 4Q40 32 80 4Q120 32 160 4' fill='none' stroke='%23245c3a' stroke-width='1.6'/%3E%3Cg fill='%23222'%3E%3Crect x='18' y='13' width='4' height='4'/%3E%3Crect x='38' y='17' width='4' height='4'/%3E%3Crect x='58' y='13' width='4' height='4'/%3E%3Crect x='98' y='13' width='4' height='4'/%3E%3Crect x='118' y='17' width='4' height='4'/%3E%3Crect x='138' y='13' width='4' height='4'/%3E%3C/g%3E%3Cellipse cx='20' cy='22' rx='4' ry='5.5' fill='%23ff4d4d'/%3E%3Cellipse cx='40' cy='26' rx='4' ry='5.5' fill='%23ffd24d'/%3E%3Cellipse cx='60' cy='22' rx='4' ry='5.5' fill='%234dff88'/%3E%3Cellipse cx='100' cy='22' rx='4' ry='5.5' fill='%234da6ff'/%3E%3Cellipse cx='120' cy='26' rx='4' ry='5.5' fill='%23ff4d4d'/%3E%3Cellipse cx='140' cy='22' rx='4' ry='5.5' fill='%23ffd24d'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.snowfall,
|
||||
.leaf-fall {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
.snowfall {
|
||||
display: var(--snow-display);
|
||||
}
|
||||
|
||||
.leaf-fall {
|
||||
display: var(--leaf-display);
|
||||
}
|
||||
|
||||
.snowfall::before,
|
||||
.snowfall::after,
|
||||
.leaf-fall::before,
|
||||
.leaf-fall::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
background-repeat: repeat;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.snowfall::before {
|
||||
top: -600px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image: var(--snow-tile);
|
||||
background-size: 300px 300px;
|
||||
opacity: 0.9;
|
||||
animation: snowFallNear 18s linear infinite;
|
||||
}
|
||||
|
||||
.snowfall::after {
|
||||
top: -500px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image: var(--snow-tile);
|
||||
background-size: 500px 500px;
|
||||
opacity: 0.6;
|
||||
animation: snowFallFar 30s linear infinite;
|
||||
}
|
||||
|
||||
.leaf-fall::before {
|
||||
top: -720px;
|
||||
left: 0;
|
||||
right: -360px;
|
||||
bottom: 0;
|
||||
background-image: var(--leaf-tile);
|
||||
background-size: 360px 360px;
|
||||
opacity: 0.9;
|
||||
animation: leafFallNear 26s linear infinite;
|
||||
}
|
||||
|
||||
.leaf-fall::after {
|
||||
top: -540px;
|
||||
left: -540px;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image: var(--leaf-tile);
|
||||
background-size: 540px 540px;
|
||||
opacity: 0.7;
|
||||
animation: leafFallFar 40s linear infinite;
|
||||
}
|
||||
|
||||
.light-string {
|
||||
display: var(--lights-display);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 56px;
|
||||
pointer-events: none;
|
||||
z-index: 100;
|
||||
background-image: var(--lights-tile);
|
||||
background-repeat: repeat-x;
|
||||
background-size: 160px 56px;
|
||||
animation: lightTwinkle 2.6s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes snowFallNear {
|
||||
from {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(0, 600px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes snowFallFar {
|
||||
from {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(0, 500px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes leafFallNear {
|
||||
from {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(-360px, 720px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes leafFallFar {
|
||||
from {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(540px, 540px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes lightTwinkle {
|
||||
from {
|
||||
opacity: 0.65;
|
||||
filter: drop-shadow(0 0 3px rgba(255, 214, 120, 0.5));
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
filter: drop-shadow(0 0 8px rgba(255, 214, 120, 0.9));
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
.snowfall::before,
|
||||
.snowfall::after,
|
||||
.leaf-fall::before,
|
||||
.leaf-fall::after,
|
||||
.light-string {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
#navbar .brand {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#navbar .brand::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -9px;
|
||||
right: -9px;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
:root[data-theme="halloween"] #navbar .brand::after {
|
||||
content: "🎃";
|
||||
}
|
||||
|
||||
:root[data-theme="autumn"] #navbar .brand::after {
|
||||
content: "🍂";
|
||||
}
|
||||
|
||||
:root[data-theme="winter"] #navbar .brand::after {
|
||||
content: "❄️";
|
||||
}
|
||||
|
||||
:root[data-theme="christmas"] #navbar .brand::after {
|
||||
content: "🎄";
|
||||
}
|
||||
|
||||
.st-themes {
|
||||
padding: 14px 16px 16px;
|
||||
}
|
||||
|
||||
.st-sub {
|
||||
margin: 0 0 8px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.st-theme-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.st-theme-grid:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.st-theme {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
height: 40px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 100px;
|
||||
background: var(--search-bg);
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: 13.5px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
|
||||
.st-theme .ico {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.st-theme span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.st-theme:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.st-theme.on {
|
||||
border-color: var(--text);
|
||||
background: var(--hover-bg);
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
}
|
||||
Reference in New Issue
Block a user