Expand the template catalog and restore fwnet dark mode
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
@@ -298,8 +298,39 @@
|
||||
--accent-light: #e9edfa;
|
||||
--line: #e2e2e3;
|
||||
--button-ink: #ffffff;
|
||||
--fwnet-primary: #5672cd;
|
||||
--fwnet-primary-hover: #3a5ccc;
|
||||
}
|
||||
.theme-fwnet .hero { padding: 0; background: var(--white); }
|
||||
/* In dark mode use the source site's colors over the template's stored light palette. */
|
||||
#main-content.theme-fwnet[data-fwnet-appearance="dark"] {
|
||||
color-scheme: dark;
|
||||
--white: #1b1b1f;
|
||||
--paper: #202127;
|
||||
--ink: #dfdfd6;
|
||||
--muted: #98989f;
|
||||
--accent: #a8b1ff;
|
||||
--accent-deep: #5c73e7;
|
||||
--accent-light: #32363f;
|
||||
--line: #2e2e32;
|
||||
--fwnet-primary: #3e63dd;
|
||||
--fwnet-primary-hover: #5c73e7;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#main-content.theme-fwnet:not([data-fwnet-appearance="light"]) {
|
||||
color-scheme: dark;
|
||||
--white: #1b1b1f;
|
||||
--paper: #202127;
|
||||
--ink: #dfdfd6;
|
||||
--muted: #98989f;
|
||||
--accent: #a8b1ff;
|
||||
--accent-deep: #5c73e7;
|
||||
--accent-light: #32363f;
|
||||
--line: #2e2e32;
|
||||
--fwnet-primary: #3e63dd;
|
||||
--fwnet-primary-hover: #5c73e7;
|
||||
}
|
||||
}
|
||||
.theme-fwnet .hero { padding: 0; background-color: var(--white); }
|
||||
.theme-fwnet .hero h1 { margin: 0; max-width: 670px; font-size: clamp(2.5rem, 5vw, 3.625rem); line-height: 1.08; letter-spacing: -.035em; }
|
||||
.fwnet-nav, .fwnet-nav > div, .fwnet-brand { display: flex; align-items: center; gap: 1.25rem; }
|
||||
.fwnet-nav { min-height: 64px; justify-content: space-between; padding-block: .75rem; }
|
||||
@@ -345,9 +376,24 @@
|
||||
.fwnet-hero p { color: var(--muted); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 500; }
|
||||
.fwnet-hero > img { width: min(100%, 330px); height: auto; margin-inline: auto; }
|
||||
.fwnet-hero .button { border-radius: 999px; font-size: .9rem; }
|
||||
.fwnet-hero .button-outline { background: var(--paper); }
|
||||
.fwnet-hero .button-primary { background: var(--fwnet-primary); border-color: var(--fwnet-primary); }
|
||||
.fwnet-hero .button-primary:hover { background: var(--fwnet-primary-hover); border-color: var(--fwnet-primary-hover); }
|
||||
.fwnet-hero .button-outline { background: var(--paper); border-color: var(--line); }
|
||||
.fwnet-theme-toggle {
|
||||
min-width: 2.5rem;
|
||||
min-height: 1.6rem;
|
||||
padding: .15rem .32rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 1rem;
|
||||
color: var(--ink);
|
||||
background: var(--paper);
|
||||
text-align: start;
|
||||
cursor: pointer;
|
||||
}
|
||||
.fwnet-theme-toggle[aria-pressed="true"] { text-align: end; }
|
||||
.fwnet-theme-toggle span { display: inline-block; font-size: .9rem; line-height: 1; }
|
||||
.theme-fwnet #capabilities { padding-block: 1rem 3.5rem; }
|
||||
.fwnet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
|
||||
.fwnet-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
|
||||
.fwnet-card { display: grid; align-content: start; gap: .6rem; padding: 1.4rem; border-radius: .85rem; background: var(--paper); }
|
||||
.fwnet-card h3, .fwnet-card p { margin: 0; }
|
||||
.fwnet-card h3 { font-size: 1rem; }
|
||||
@@ -364,3 +410,48 @@
|
||||
.fwnet-hero > img { grid-row: 1; width: min(100%, 12rem); height: 12rem; object-fit: contain; }
|
||||
.fwnet-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.theme-signal {
|
||||
--white: #121a2a;
|
||||
--paper: #192438;
|
||||
--ink: #eef4ff;
|
||||
--muted: #aebdd3;
|
||||
--accent: #79e2c4;
|
||||
--accent-deep: #a6eed9;
|
||||
--accent-light: #233e45;
|
||||
--line: #35425a;
|
||||
--button-ink: #132332;
|
||||
}
|
||||
.theme-signal .hero {
|
||||
background: radial-gradient(ellipse at 82% 15%, #244c52 0, transparent 55%),
|
||||
linear-gradient(155deg, var(--paper), var(--white));
|
||||
border-block-end: 1px solid var(--line);
|
||||
}
|
||||
.theme-signal .hero h1 { font-size: clamp(2.5rem, 6vw, 4.65rem); }
|
||||
.theme-signal .hero-inner { min-height: clamp(21rem, 38vw, 35rem); }
|
||||
.theme-signal .app-frame { border-color: #588984; border-radius: .65rem; background: #233246; }
|
||||
.theme-signal .content-card { background: var(--paper); }
|
||||
.theme-signal .button-outline { border-color: var(--line); }
|
||||
|
||||
.theme-table {
|
||||
--white: #fffaf2;
|
||||
--paper: #f4e5d4;
|
||||
--ink: #30201a;
|
||||
--muted: #665048;
|
||||
--accent: #985034;
|
||||
--accent-deep: #773820;
|
||||
--accent-light: #f8decf;
|
||||
--line: #d9bca8;
|
||||
--button-ink: #fffaf2;
|
||||
}
|
||||
.theme-table .hero { background: linear-gradient(120deg, var(--white), var(--paper)); }
|
||||
.theme-table :is(h1, h2) { font-family: 'Noto Serif CJK SC', 'Songti SC', Georgia, serif; }
|
||||
.theme-table .app-frame {
|
||||
padding: .55rem;
|
||||
border-color: var(--line);
|
||||
border-radius: .4rem;
|
||||
background: var(--white);
|
||||
box-shadow: 8px 8px 0 #a66d4e3d;
|
||||
}
|
||||
.theme-table .app-frame img { object-fit: cover; border-radius: .15rem; }
|
||||
.theme-table .button { border-radius: .25rem; }
|
||||
|
||||
@@ -766,3 +766,38 @@ img.studio-style-display-inline-block, .hero-visual.studio-style-display-inline-
|
||||
}
|
||||
.studio-mirror-note a, .studio-mirror-note button { display: inline-flex; align-items: center; min-height: 28px; color: #214ed7; text-decoration: underline; font: inherit; cursor: pointer; }
|
||||
.studio-mirror-note button { padding: .1rem; border: 0; background: transparent; }
|
||||
|
||||
.studio-status-summary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: clamp(1rem, 4vw, 2rem);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: var(--paper);
|
||||
}
|
||||
.rich .studio-labeled-rows { list-style: none; padding: 0; margin: 0; border-block-start: 1px solid var(--line); }
|
||||
.studio-labeled-rows > :is(li, div) {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: .5rem 1.5rem;
|
||||
padding: .9rem 0;
|
||||
border-block-end: 1px solid var(--line);
|
||||
}
|
||||
.studio-labeled-rows h3, .studio-status-summary h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
|
||||
.rich .studio-status-summary p, .rich .studio-labeled-rows p, .studio-labeled-rows dd { margin: 0; color: var(--muted); }
|
||||
.studio-status-ok { background: #dff4e8; color: #155e3d; }
|
||||
.studio-status-watch { background: #ffedc8; color: #764700; }
|
||||
.studio-menu-list li > strong { color: var(--accent); font-variant-numeric: tabular-nums; }
|
||||
.studio-group-dining dt { font-weight: 650; }
|
||||
.studio-downloads .content-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.studio-downloads .button { margin-top: auto; }
|
||||
.studio-seasonal img { border-radius: .65rem; }
|
||||
|
||||
@@ -1,6 +1,42 @@
|
||||
'use strict';
|
||||
|
||||
jQuery(function ($) {
|
||||
const fwnetPage = document.querySelector('#main-content.theme-fwnet');
|
||||
const fwnetLinks = fwnetPage?.querySelector('.fwnet-nav > div');
|
||||
if (fwnetLinks) {
|
||||
const systemTheme = matchMedia('(prefers-color-scheme: dark)');
|
||||
const preferenceKey = 'laysite-fwnet-appearance';
|
||||
let preference;
|
||||
try {
|
||||
const stored = localStorage.getItem(preferenceKey);
|
||||
if (stored === 'dark' || stored === 'light') preference = stored;
|
||||
} catch {
|
||||
// The switch still works when the browser disables storage.
|
||||
}
|
||||
const $icon = $('<span>', {'aria-hidden': 'true'});
|
||||
const $toggle = $('<button>', {type: 'button', class: 'fwnet-theme-toggle', 'aria-label': '深色模式'}).append($icon);
|
||||
$(fwnetLinks).append($toggle);
|
||||
|
||||
function reflectAppearance() {
|
||||
const dark = preference ? preference === 'dark' : systemTheme.matches;
|
||||
if (preference) fwnetPage.dataset.fwnetAppearance = preference;
|
||||
$toggle.attr('aria-pressed', String(dark));
|
||||
$icon.text(dark ? '☾' : '☀');
|
||||
}
|
||||
|
||||
reflectAppearance();
|
||||
systemTheme.addEventListener('change', reflectAppearance);
|
||||
$toggle.on('click', () => {
|
||||
preference = $toggle.attr('aria-pressed') === 'true' ? 'light' : 'dark';
|
||||
reflectAppearance();
|
||||
try {
|
||||
localStorage.setItem(preferenceKey, preference);
|
||||
} catch {
|
||||
// A storage error must not undo the visible change.
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('.menu-toggle[aria-controls]').each(function () {
|
||||
const $toggle = $(this);
|
||||
const $nav = $(document.getElementById(this.getAttribute('aria-controls')));
|
||||
|
||||
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 8.8 KiB |