@namewta/skills-hub 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/package.json +1 -1
- package/scripts/persistence/home.md +1 -0
- package/skills/dev/dev-archive/references/change-closure.md +4 -0
- package/skills/home/home-project-changelog/SKILL.md +4 -3
- package/skills/home/home-project-changelog/assets/project-changelog.md +20 -10
- package/skills/home/home-project-changelog/references/git-ranges.md +19 -5
- package/skills/home/home-project-changelog/references/tools.md +13 -5
- package/skills/home/home-project-changelog/references/workflow.md +11 -2
- package/skills/home/home-project-changelog/references/writing.md +15 -7
- package/skills/home/home-project-changelog/scripts/changelog.mjs +5 -2
- package/skills/home/home-project-changelog/scripts/contract.mjs +6 -2
- package/skills/home/home-project-changelog/scripts/git.mjs +6 -0
- package/skills/home/home-project-changelog/scripts/storage.mjs +8 -2
- package/skills/home/home-project-changelog/scripts/summary.mjs +13 -12
- package/skills/home/home-setup/SKILL.md +1 -1
- package/skills/home/home-setup/references/registry.md +4 -0
- package/skills/home/home-setup/scripts/git.mjs +2 -0
- package/skills/home/home-website/SKILL.md +20 -0
- package/skills/home/home-website/assets/website/gitignore.tmpl +4 -0
- package/skills/home/home-website/assets/website/package-lock.json +2376 -0
- package/skills/home/home-website/assets/website/package.json +11 -0
- package/skills/home/home-website/assets/website/scripts/artifact.mjs +84 -0
- package/skills/home/home-website/assets/website/scripts/inputs.mjs +209 -0
- package/skills/home/home-website/assets/website/scripts/preview.mjs +50 -0
- package/skills/home/home-website/assets/website/scripts/render.mjs +92 -0
- package/skills/home/home-website/assets/website/scripts/site.mjs +173 -0
- package/skills/home/home-website/assets/website/site/.vitepress/theme/index.js +3 -0
- package/skills/home/home-website/assets/website/site/public/home-assets/app.js +292 -0
- package/skills/home/home-website/assets/website/site/public/home-assets/site.css +337 -0
- package/skills/home/home-website/assets/website/site/public/home-assets/start.js +7 -0
- package/skills/home/home-website/assets/website/site/templates/layout.mjs +81 -0
- package/skills/home/home-website/assets/website/site/templates/ledger.mjs +53 -0
- package/skills/home/home-website/assets/website/site/templates/model.mjs +66 -0
- package/skills/home/home-website/assets/website/site/templates/pages.mjs +93 -0
- package/skills/home/home-website/assets/website/site/templates/project-logs.mjs +114 -0
- package/skills/home/home-website/assets/website/site.config.json +6 -0
- package/skills/home/home-website/references/website.md +85 -0
- package/skills/home/home-website/scripts/init.mjs +57 -0
- package/skills/home/home-workflow/SKILL.md +1 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
'use strict';
|
|
3
|
+
const one = selector => document.querySelector(selector);
|
|
4
|
+
const all = selector => [...document.querySelectorAll(selector)];
|
|
5
|
+
const root = one('.home-site')?.dataset.root;
|
|
6
|
+
const normalize = value => (value ?? '').normalize('NFKC').toLocaleLowerCase('zh-CN').trim();
|
|
7
|
+
if (!root) return;
|
|
8
|
+
const fileRoot = location.protocol === 'file:' ? new URL('../', document.currentScript.src) : null;
|
|
9
|
+
|
|
10
|
+
function routeHref(href) {
|
|
11
|
+
if (!fileRoot || !href.startsWith(root) || href.startsWith('//')) return href;
|
|
12
|
+
const target = new URL(href.slice(root.length), fileRoot);
|
|
13
|
+
if (target.pathname.endsWith('/')) target.pathname += 'index.html';
|
|
14
|
+
return target.href;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (fileRoot) {
|
|
18
|
+
for (const link of all('.home-site a[href^="/"]')) link.href = routeHref(link.getAttribute('href'));
|
|
19
|
+
}
|
|
20
|
+
document.documentElement.classList.add('enhanced');
|
|
21
|
+
const searchIndex = window.homeSearchIndex ?? [];
|
|
22
|
+
|
|
23
|
+
function setQueryParam(name, value) {
|
|
24
|
+
const url = new URL(location.href);
|
|
25
|
+
if (value) url.searchParams.set(name, value);
|
|
26
|
+
else url.searchParams.delete(name);
|
|
27
|
+
try { history.replaceState(null, '', url.href); } catch { /* Filtering also works when a local browser restricts history. */ }
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function initTheme() {
|
|
31
|
+
const toggle = one('[data-theme-toggle]');
|
|
32
|
+
const key = 'skills-hub.home-website.theme';
|
|
33
|
+
function updateLabel() {
|
|
34
|
+
const dark = document.documentElement.dataset.theme === 'dark';
|
|
35
|
+
const label = dark ? '切换浅色模式' : '切换深色模式';
|
|
36
|
+
toggle.setAttribute('aria-label', label);
|
|
37
|
+
toggle.title = label;
|
|
38
|
+
}
|
|
39
|
+
updateLabel();
|
|
40
|
+
toggle.addEventListener('click', () => {
|
|
41
|
+
const choice = document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark';
|
|
42
|
+
document.documentElement.dataset.theme = choice;
|
|
43
|
+
try { localStorage.setItem(key,choice); } catch {}
|
|
44
|
+
updateLabel();
|
|
45
|
+
});
|
|
46
|
+
window.addEventListener('pageshow', updateLabel);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function initCatalog() {
|
|
50
|
+
const input = one('#catalog-query');
|
|
51
|
+
if (!input) return;
|
|
52
|
+
const cards = all('#project-grid .project-card');
|
|
53
|
+
const buttons = all('[data-group-filter]');
|
|
54
|
+
const params = new URL(location.href).searchParams;
|
|
55
|
+
let group = buttons.find(button => button.dataset.groupFilter === params.get('group'))?.dataset.groupFilter ?? '';
|
|
56
|
+
input.value = params.get('q') ?? '';
|
|
57
|
+
function filter(updateUrl = true) {
|
|
58
|
+
const q = normalize(input.value);
|
|
59
|
+
let count = 0;
|
|
60
|
+
for (const card of cards) {
|
|
61
|
+
const visible = (!group || JSON.parse(card.dataset.groups).includes(group)) && normalize(card.innerText || card.textContent).includes(q);
|
|
62
|
+
card.hidden = !visible;
|
|
63
|
+
if (visible) count++;
|
|
64
|
+
}
|
|
65
|
+
buttons.forEach(button => button.setAttribute('aria-pressed', String(button.dataset.groupFilter === group)));
|
|
66
|
+
one('#catalog-count').textContent = '显示 ' + count + ' 个项目';
|
|
67
|
+
one('#catalog-empty').hidden = count !== 0;
|
|
68
|
+
if (updateUrl) { setQueryParam('group', group); setQueryParam('q', input.value.trim()); }
|
|
69
|
+
}
|
|
70
|
+
buttons.forEach(button => button.addEventListener('click', () => { group = button.dataset.groupFilter; filter(); }));
|
|
71
|
+
input.addEventListener('input', () => filter());
|
|
72
|
+
one('#reset-catalog').addEventListener('click', () => { group = ''; input.value = ''; filter(); input.focus(); });
|
|
73
|
+
filter(false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function initTimeline() {
|
|
77
|
+
const select = one('#timeline-project');
|
|
78
|
+
if (!select) return;
|
|
79
|
+
const category = one('#timeline-category'), input = one('#timeline-query'), expand = one('#expand-ledger');
|
|
80
|
+
const fields = [['repo',select],['category',category],['q',input]];
|
|
81
|
+
const count = one('#timeline-count'), empty = one('#timeline-empty');
|
|
82
|
+
const windows = all('.ledger-window').map(section => ({
|
|
83
|
+
section, count:section.querySelector('.window-count'),
|
|
84
|
+
groups:[...section.querySelectorAll('.ledger-group')].map(group => ({
|
|
85
|
+
group, id:group.dataset.ledgerRepo,
|
|
86
|
+
periods:[...group.querySelectorAll('.ledger-period')].map(period => ({
|
|
87
|
+
period,
|
|
88
|
+
more:period.querySelector('.more-entries'),
|
|
89
|
+
rows:[...period.querySelectorAll('[data-kind]')].map(row => ({
|
|
90
|
+
row, category:row.dataset.kind, text:normalize(row.querySelector('.change-cell').textContent),
|
|
91
|
+
entry:row.hasAttribute('data-entry'),
|
|
92
|
+
})),
|
|
93
|
+
})),
|
|
94
|
+
})),
|
|
95
|
+
}));
|
|
96
|
+
let requestedAll = false;
|
|
97
|
+
|
|
98
|
+
function restore() {
|
|
99
|
+
const args = new URL(location.href).searchParams;
|
|
100
|
+
const openAll = args.get('view') === 'all';
|
|
101
|
+
const changed = openAll !== requestedAll;
|
|
102
|
+
requestedAll = openAll;
|
|
103
|
+
for (const [key,field] of fields) {
|
|
104
|
+
field.value = args.get(key) ?? '';
|
|
105
|
+
if (field.tagName === 'SELECT' && field.selectedIndex < 0) field.value = '';
|
|
106
|
+
}
|
|
107
|
+
return changed;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function syncExpand() {
|
|
111
|
+
const visible = all('.more-entries').filter(detail => !detail.closest('[hidden]'));
|
|
112
|
+
const expanded = visible.length > 0 && visible.every(detail => detail.open);
|
|
113
|
+
expand.textContent = expanded ? '收起全部' : '展开全部';
|
|
114
|
+
expand.setAttribute('aria-pressed',String(expanded));
|
|
115
|
+
expand.disabled = visible.length === 0;
|
|
116
|
+
return visible;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function render(resetOpen = false) {
|
|
120
|
+
const query = normalize(input.value);
|
|
121
|
+
const filtered = Boolean(select.value || category.value || query);
|
|
122
|
+
const projects = new Set();
|
|
123
|
+
let windowCount = 0, periodCount = 0, entryCount = 0;
|
|
124
|
+
for (const window of windows) {
|
|
125
|
+
let groupCount = 0, periods = 0, entries = 0;
|
|
126
|
+
for (const group of window.groups) {
|
|
127
|
+
const matchProject = !select.value || select.value === group.id;
|
|
128
|
+
let matches = 0;
|
|
129
|
+
for (const {period,more,rows} of group.periods) {
|
|
130
|
+
const visible = rows.filter(item => {
|
|
131
|
+
item.row.hidden = !matchProject || Boolean(category.value && category.value !== item.category)
|
|
132
|
+
|| Boolean(query && !item.text.includes(query));
|
|
133
|
+
return !item.row.hidden;
|
|
134
|
+
});
|
|
135
|
+
period.hidden = !visible.length;
|
|
136
|
+
if (visible.length) {
|
|
137
|
+
matches += 1;
|
|
138
|
+
entries += visible.filter(item => item.entry).length;
|
|
139
|
+
}
|
|
140
|
+
if (more) {
|
|
141
|
+
const remaining = visible.filter(item => more.contains(item.row)).length;
|
|
142
|
+
more.hidden = remaining === 0;
|
|
143
|
+
more.querySelector('[data-more-count]').textContent = remaining;
|
|
144
|
+
if (resetOpen) more.open = requestedAll || Boolean(remaining && (query || category.value));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
group.group.hidden = matches === 0;
|
|
148
|
+
if (matches) {
|
|
149
|
+
groupCount += 1;
|
|
150
|
+
periods += matches;
|
|
151
|
+
projects.add(group.id);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
window.section.hidden = groupCount === 0;
|
|
155
|
+
window.count.textContent = `${filtered ? '匹配 ' : ''}${groupCount} 个项目 · ${periods} 段 · ${entries} 条变更`;
|
|
156
|
+
if (groupCount) windowCount += 1;
|
|
157
|
+
periodCount += periods;
|
|
158
|
+
entryCount += entries;
|
|
159
|
+
}
|
|
160
|
+
count.textContent = `${filtered ? '匹配 ' : ''}${windowCount} 个窗口 · ${projects.size} 个项目 · ${periodCount} 段 · ${entryCount} 条变更`;
|
|
161
|
+
empty.hidden = windowCount !== 0;
|
|
162
|
+
syncExpand();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
one('.ledger').addEventListener('toggle', event => {
|
|
166
|
+
if (!event.target.matches('.more-entries')) return;
|
|
167
|
+
if (requestedAll && !event.target.open && !event.target.closest('[hidden]')) {
|
|
168
|
+
requestedAll = false;
|
|
169
|
+
setQueryParam('view','');
|
|
170
|
+
}
|
|
171
|
+
syncExpand();
|
|
172
|
+
},true);
|
|
173
|
+
expand.addEventListener('click', () => {
|
|
174
|
+
const next = expand.getAttribute('aria-pressed') !== 'true';
|
|
175
|
+
requestedAll = next;
|
|
176
|
+
setQueryParam('view',next ? 'all' : '');
|
|
177
|
+
for (const detail of syncExpand()) detail.open = next;
|
|
178
|
+
syncExpand();
|
|
179
|
+
});
|
|
180
|
+
for (const [key,field] of fields) field.addEventListener(field === input ? 'input' : 'change', () => {
|
|
181
|
+
setQueryParam(key,field.value);
|
|
182
|
+
render(true);
|
|
183
|
+
});
|
|
184
|
+
one('#reset-timeline').addEventListener('click', () => {
|
|
185
|
+
for (const [key,field] of fields) { field.value = ''; setQueryParam(key,''); }
|
|
186
|
+
requestedAll = false;
|
|
187
|
+
setQueryParam('view','');
|
|
188
|
+
render(true);
|
|
189
|
+
input.focus();
|
|
190
|
+
});
|
|
191
|
+
window.addEventListener('pageshow', event => {
|
|
192
|
+
if (event.persisted) render(restore());
|
|
193
|
+
});
|
|
194
|
+
restore();
|
|
195
|
+
render(true);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function addHighlighted(parent, value, needle) {
|
|
199
|
+
// The source index is text. Insert text nodes even when a phrase looks like markup.
|
|
200
|
+
const position = needle ? value.toLocaleLowerCase('zh-CN').indexOf(needle) : -1;
|
|
201
|
+
if (position < 0) { parent.textContent = value; return; }
|
|
202
|
+
parent.append(value.slice(0,position));
|
|
203
|
+
const highlight = document.createElement('mark');
|
|
204
|
+
highlight.textContent = value.slice(position,position + needle.length);
|
|
205
|
+
parent.append(highlight,value.slice(position + needle.length));
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function initSearch() {
|
|
209
|
+
const dialog = one('#search-dialog'), input = one('#global-query'), results = one('#search-results');
|
|
210
|
+
const opener = one('[data-open-search]');
|
|
211
|
+
let restoreFocus = opener, selected = -1;
|
|
212
|
+
function showResults() {
|
|
213
|
+
selected = -1;
|
|
214
|
+
const query = normalize(input.value);
|
|
215
|
+
const tokens = query.split(/\s+/u).filter(Boolean);
|
|
216
|
+
const found = searchIndex.filter(item => {
|
|
217
|
+
if (!tokens.length) return item.kind === '项目';
|
|
218
|
+
const haystack = normalize([item.name,item.id,item.title,item.text,item.group,item.date].filter(Boolean).join(' '));
|
|
219
|
+
return tokens.every(token => haystack.includes(token));
|
|
220
|
+
});
|
|
221
|
+
results.replaceChildren();
|
|
222
|
+
one('#search-summary').textContent = query
|
|
223
|
+
? (found.length ? '找到 ' + found.length + ' 个结果' : '没有匹配的结果,试试其他项目名或变更关键词。')
|
|
224
|
+
: '直接前往项目';
|
|
225
|
+
for (const item of found) {
|
|
226
|
+
const link = document.createElement('a');
|
|
227
|
+
link.className = 'search-result';
|
|
228
|
+
link.href = routeHref(root + item.url);
|
|
229
|
+
link.target = '_self';
|
|
230
|
+
const label = document.createElement('small');
|
|
231
|
+
label.textContent = item.kind + ' · ' + item.id + (item.date ? ' · ' + item.date : '');
|
|
232
|
+
const title = document.createElement('strong');
|
|
233
|
+
addHighlighted(title,item.title,tokens[0]);
|
|
234
|
+
const desc = document.createElement('span');
|
|
235
|
+
const excerpt = item.text.split(' · ').find(text => tokens.length && tokens.some(token => normalize(text).includes(token))) ?? item.text.split(' · ')[0];
|
|
236
|
+
addHighlighted(desc,excerpt,tokens[0]);
|
|
237
|
+
link.append(label,title,desc);
|
|
238
|
+
results.append(link);
|
|
239
|
+
}
|
|
240
|
+
results.scrollTop = 0;
|
|
241
|
+
}
|
|
242
|
+
function open(trigger) {
|
|
243
|
+
if (dialog.open) return;
|
|
244
|
+
restoreFocus = trigger instanceof HTMLElement ? trigger : opener;
|
|
245
|
+
input.value = '';
|
|
246
|
+
showResults();
|
|
247
|
+
dialog.showModal();
|
|
248
|
+
input.focus();
|
|
249
|
+
}
|
|
250
|
+
opener.addEventListener('click', () => open(opener));
|
|
251
|
+
one('[data-close-search]').addEventListener('click', () => dialog.close());
|
|
252
|
+
dialog.addEventListener('close', () => restoreFocus?.focus({ preventScroll:true }));
|
|
253
|
+
dialog.addEventListener('click', event => {
|
|
254
|
+
if (event.target !== dialog) return;
|
|
255
|
+
const box = dialog.getBoundingClientRect();
|
|
256
|
+
if (event.clientX < box.left || event.clientX > box.right || event.clientY < box.top || event.clientY > box.bottom) dialog.close();
|
|
257
|
+
});
|
|
258
|
+
document.addEventListener('keydown', event => {
|
|
259
|
+
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') {
|
|
260
|
+
event.preventDefault();
|
|
261
|
+
if (dialog.open) dialog.close(); else open(document.activeElement === document.body ? opener : document.activeElement);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
input.addEventListener('input',showResults);
|
|
265
|
+
dialog.addEventListener('keydown', event => {
|
|
266
|
+
if (event.key === 'Escape') {
|
|
267
|
+
event.preventDefault();
|
|
268
|
+
dialog.close();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
const links = [...results.querySelectorAll('a')];
|
|
272
|
+
if (!links.length) return;
|
|
273
|
+
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
|
|
274
|
+
event.preventDefault();
|
|
275
|
+
const start = links.indexOf(document.activeElement);
|
|
276
|
+
if (start >= 0) selected = start;
|
|
277
|
+
selected = event.key === 'ArrowDown' ? (selected + 1) % links.length : (selected <= 0 ? links.length - 1 : selected - 1);
|
|
278
|
+
links.forEach((link,index) => link.classList.toggle('is-selected',index === selected));
|
|
279
|
+
links[selected].focus({preventScroll:true});
|
|
280
|
+
links[selected].scrollIntoView({block:'nearest'});
|
|
281
|
+
} else if (event.key === 'Enter' && event.target === input) {
|
|
282
|
+
event.preventDefault(); links[0].click();
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
results.addEventListener('click', event => { if (event.target.closest('a')) dialog.close(); });
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
initTheme();
|
|
289
|
+
initCatalog();
|
|
290
|
+
initTimeline();
|
|
291
|
+
initSearch();
|
|
292
|
+
})();
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
--paper: #f8f7f3;
|
|
4
|
+
--surface: #fffefa;
|
|
5
|
+
--soft: #f1f0ea;
|
|
6
|
+
--ink: #101f38;
|
|
7
|
+
--text: #34445a;
|
|
8
|
+
--muted: #5e6b7c;
|
|
9
|
+
--line: #dcded9;
|
|
10
|
+
--gold: #9b6b29;
|
|
11
|
+
--gold-soft: #f5ead5;
|
|
12
|
+
--button: #172942;
|
|
13
|
+
--button-ink: #fff;
|
|
14
|
+
--focus: #946124;
|
|
15
|
+
--shadow: 0 8px 24px #1527400b;
|
|
16
|
+
--sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
17
|
+
--serif: Baskervville, Georgia, "Songti SC", "Noto Serif CJK SC", SimSun, serif;
|
|
18
|
+
--mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;
|
|
19
|
+
}
|
|
20
|
+
:root[data-theme="dark"] {
|
|
21
|
+
color-scheme: dark;
|
|
22
|
+
--paper: #0e1725; --surface: #152234; --soft: #1c2c40; --ink: #e6edf5; --text: #ccd5df;
|
|
23
|
+
--muted: #abb9c8; --line: #354356; --gold: #edbd72; --gold-soft: #372e22;
|
|
24
|
+
--button: #eed9ae; --button-ink: #192333; --focus: #f5c57d; --shadow: none;
|
|
25
|
+
}
|
|
26
|
+
* { box-sizing: border-box; }
|
|
27
|
+
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
|
|
28
|
+
a { color: inherit; text-decoration: none; }
|
|
29
|
+
button, input, select { font: inherit; }
|
|
30
|
+
button, select { cursor: pointer; }
|
|
31
|
+
button { color: inherit; }
|
|
32
|
+
button, input, select { -webkit-tap-highlight-color: transparent; }
|
|
33
|
+
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
|
|
34
|
+
[hidden], .enhanced-only { display: none !important; }
|
|
35
|
+
.enhanced .enhanced-only { display: inline-flex !important; }
|
|
36
|
+
.enhanced .filter-bar.enhanced-only { display: flex !important; }
|
|
37
|
+
.enhanced .demo-actions.enhanced-only { display: grid !important; }
|
|
38
|
+
::selection { background: #d8b37c66; }
|
|
39
|
+
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
|
|
40
|
+
h1, h2, h3 { color: var(--ink); }
|
|
41
|
+
.wrap { width: min(1248px, calc(100% - 96px)); margin-inline: auto; }
|
|
42
|
+
.sr, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
43
|
+
.skip-link:focus { position: fixed; left: 16px; top: 8px; z-index: 90; padding: 8px 16px; border-radius: 6px; background: var(--surface); }
|
|
44
|
+
.main-content { min-height: calc(100vh - 189px); padding-block: 32px 62px; }
|
|
45
|
+
:where(h2,article,section,[id]) { scroll-margin-top: 92px; }
|
|
46
|
+
.masthead { position: sticky; z-index: 10; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
|
|
47
|
+
.mast-inner, .brand, .main-nav, .mast-tools, .search-open, .icon-button, .text-link, .button-row, .primary-button, .secondary-button, .section-heading, .hero-date, .chart-label, .chart-key, .chart-key span, .card-top, .card-foot, .recent-meta, .project-chip, .recent-heading, .footer-inner, .field, .filter-pills, .timeline-controls, .select-field, .period-heading, .row-label, .detail-intro, .crumbs { display: flex; align-items: center; }
|
|
48
|
+
.mast-inner { height: 70px; gap: clamp(20px, 4vw, 62px); }
|
|
49
|
+
.brand { color: var(--ink); gap: 12px; white-space: nowrap; font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -.055em; }
|
|
50
|
+
.brand-stamp { position: relative; display: inline-block; width: 32px; height: 32px; border-radius: 9px; background: #162840; }
|
|
51
|
+
.brand-stamp i, .brand-stamp b { position: absolute; display: block; width: 14px; height: 14px; transform: rotate(45deg) skew(-11deg,-11deg); border: 1.5px solid #e2ba78; left: 9px; }
|
|
52
|
+
.brand-stamp i { top: 7px; background: #162840; z-index: 1; } .brand-stamp b { top: 11px; border-color: #a8b7cb; }
|
|
53
|
+
.main-nav { align-self: stretch; gap: 27px; }
|
|
54
|
+
.main-nav a { display: flex; align-items: center; min-height: 44px; position: relative; color: var(--muted); font-size: 14px; white-space: nowrap; }
|
|
55
|
+
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
|
|
56
|
+
.main-nav a[aria-current] { font-weight: 650; }
|
|
57
|
+
.main-nav a[aria-current]::after { content: ""; position: absolute; height: 3px; background: var(--gold); bottom: 0; inset-inline: 0; border-radius: 3px 3px 0 0; }
|
|
58
|
+
.mast-tools { margin-left: auto; gap: 10px; }
|
|
59
|
+
.search-open, .icon-button, .field, .select-field { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
|
|
60
|
+
.search-open { min-height: 36px; padding: 0 9px 0 12px; color: var(--muted); gap: 9px; font-size: 13px; }
|
|
61
|
+
kbd { font: 11px/1.4 var(--mono); border: 1px solid var(--line); border-radius: 4px; background: var(--soft); color: var(--muted); padding: 1px 4px; }
|
|
62
|
+
.search-open kbd { margin-left: 11px; }
|
|
63
|
+
.icon-button { align-items: center; justify-content: center; width: 37px; height: 37px; }
|
|
64
|
+
.search-open:hover, .icon-button:hover, .secondary-button:hover { border-color: var(--gold); color: var(--gold); }
|
|
65
|
+
.symbol { width: 15px; height: 15px; flex: 0 0 auto; position: relative; display: inline-block; color: inherit; }
|
|
66
|
+
.sym-search::before { content:""; position: absolute; left:1px; top:1px; border:1.6px solid currentColor; width:8px; height:8px; border-radius:50%; }
|
|
67
|
+
.sym-search::after { content:""; position: absolute; width:6px; height:1.6px; background:currentColor; left:10px; top:11px; transform:rotate(46deg); transform-origin:left; }
|
|
68
|
+
.sym-moon { border:1.5px solid currentColor; border-radius:50%; width:14px; height:14px; }
|
|
69
|
+
.sym-moon::after { content:""; position:absolute; width:11px; height:11px; border-radius:50%; background:var(--surface); left:4px; top:-4px; border-bottom:1.5px solid currentColor; transform:rotate(35deg); }
|
|
70
|
+
.sym-sun { width:13px;height:13px; border:1.5px solid currentColor; border-radius:50%; box-shadow:0 -7px 0 -5px currentColor,0 7px 0 -5px currentColor,7px 0 0 -5px currentColor,-7px 0 0 -5px currentColor; }
|
|
71
|
+
.theme-button .sym-sun, [data-theme="dark"] .theme-button .sym-moon { display:none; }
|
|
72
|
+
[data-theme="dark"] .theme-button .sym-sun { display:block; }
|
|
73
|
+
.sym-clock { border: 1.2px solid currentColor; border-radius: 50%; width: 12px; height: 12px; }
|
|
74
|
+
.sym-clock::after { content:""; position:absolute; left:4px; top:2px; width:3px; height:4px; border-left:1px solid; border-bottom:1px solid; }
|
|
75
|
+
.sym-activity { width:18px; height:15px; border-bottom:1.5px solid; }
|
|
76
|
+
.sym-activity::after { content:""; display:block; width:3px; height:6px; position:absolute; bottom:2px; left:1px; background:currentColor; box-shadow:6px -4px currentColor,12px -1px currentColor; }
|
|
77
|
+
.sym-book { border:1.5px solid; border-radius:2px; }
|
|
78
|
+
.sym-book::after { content:""; position:absolute; inset:0 45% 0 auto; border-left:1px solid; }
|
|
79
|
+
.overview-hero { position:relative; display:grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(32px,5vw,90px); align-items:center; overflow:hidden; padding: 32px clamp(28px,3.3vw,51px); border-radius:16px; border:1px solid #273a52; background:radial-gradient(ellipse at 93% 0%, #31465c 0%, transparent 57%),linear-gradient(110deg,#101e33,#1c3045); color:#f8f5ee; }
|
|
80
|
+
.overview-hero::before { content:""; position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(#d5c4a117 .8px,transparent .8px); background-size:14px 14px; mask-image:linear-gradient(90deg,transparent 2%,black 100%); }
|
|
81
|
+
.overview-hero>* { position:relative; }
|
|
82
|
+
.hero-date { color:#e4c48c; gap:8px; font-size:12px; letter-spacing:.04em; }
|
|
83
|
+
.hero-date i { width:22px; height:2px; background:#d7aa66; }
|
|
84
|
+
.hero-date time, .chart-window, .chart-axis, .lane-name, .range-caption, .repo-id, .recent-meta time, .card-foot time, .date-group>h2, .period-heading>span:last-child { font-family:var(--mono); }
|
|
85
|
+
.hero-copy h1 { color:#fcf8ef; font:700 clamp(45px,5.15vw,70px)/1.15 var(--serif); letter-spacing:.03em; margin:13px 0 10px; }
|
|
86
|
+
.hero-copy>p { color:#d3dce5; font-size:15px; }
|
|
87
|
+
.hero-stats { display:flex; gap:0; margin-top:26px; }
|
|
88
|
+
.hero-stats>div { display:flex; flex-direction:column-reverse; gap:1px; border-right:1px solid #93a7bd45; padding-inline:clamp(15px,2vw,31px); }
|
|
89
|
+
.hero-stats>div:first-child { padding-left:0; } .hero-stats>div:last-child { border:none; padding-right:0; }
|
|
90
|
+
.hero-stats dd { color:#f7e8ce; font:400 32px/1.12 var(--serif); font-variant-numeric:lining-nums tabular-nums; }
|
|
91
|
+
.hero-stats dt { color:#ccd5df; font-size:12px; }
|
|
92
|
+
.activity-figure { min-width:0; border:1px solid #9bafbd48; background:#0c1c2c5e; padding:16px 20px 12px; border-radius:11px; color:#d5dfe9; }
|
|
93
|
+
.activity-figure figcaption { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
|
|
94
|
+
.chart-label { font-weight:650; font-size:14px; gap:8px; color:#f6ecd9; } .chart-label .symbol { color:#e6ba78; }
|
|
95
|
+
.chart-window,.chart-axis { font-size:10px; color:#c1cdd8; letter-spacing:.025em; }
|
|
96
|
+
.chart-lane { display:grid; grid-template-columns:67px 1fr; align-items:center; min-height:21px; }
|
|
97
|
+
.lane-name { font-size:11px; color:#d6e1e9; width:max-content; } .lane-name:hover { color:white; text-decoration:underline; }
|
|
98
|
+
.lane-track { position:relative; min-height:21px; background-image:repeating-linear-gradient(90deg,#b1c1d01f 0 1px,transparent 1px calc(100% / 13)); }
|
|
99
|
+
.lane-track::before { content:""; position:absolute; top:50%; inset-inline:0; border-bottom:1px dashed #bac9d128; }
|
|
100
|
+
.range-bar { position:absolute; top:calc(50% - 1px); left:var(--left); width:var(--width); height:2px; background:var(--chart); opacity:.62; }
|
|
101
|
+
.plot-point { position:absolute; z-index:1; top:50%; left:var(--x); transform:translate(-50%,-50%); width:17px; height:19px; display:grid; place-items:center; border-radius:4px; }
|
|
102
|
+
.plot-point i { display:block; width:7px; height:7px; background:var(--chart); border-radius:50%; box-shadow:0 0 0 2px #233649; }
|
|
103
|
+
.plot-point.multiple i { outline:1px solid var(--chart); outline-offset:2px; } .plot-point.baseline-point i { background:#152638; border:1.5px solid var(--chart); }
|
|
104
|
+
.plot-point:hover i, .plot-point:focus-visible i { transform:scale(1.35); }
|
|
105
|
+
.chart-axis { margin:2px 0 0 67px; display:flex; justify-content:space-between; }
|
|
106
|
+
.chart-key { border-top:1px solid #9bafbd30; margin-top:8px; padding-top:7px; gap:14px; font-size:10px; color:#c3d1df; }
|
|
107
|
+
.chart-key span { gap:5px; } .key-line { width:13px; height:2px; background:#cbaa78; } .key-dot,.key-ring { width:6px;height:6px;border-radius:50%;background:#d8b77f; } .key-ring { background:none;border:1px solid #d8b77f; }
|
|
108
|
+
.key-multi { width:5px; height:5px; margin:0 2px; border-radius:50%; background:#d8b77f; outline:1px solid #d8b77f; outline-offset:1px; }
|
|
109
|
+
.overview-columns { display:grid; grid-template-columns:minmax(0,1.72fr) minmax(285px,1fr); gap:clamp(22px,2.6vw,38px); margin-top:32px; align-items:start; }
|
|
110
|
+
.section-heading { justify-content:space-between; gap:12px; margin-bottom:16px; }
|
|
111
|
+
.section-heading h2,.recent-heading h2,.detail-recent h2 { font-size:24px; letter-spacing:-.04em; }
|
|
112
|
+
.text-link { background:none; border:0; padding:0; width:fit-content; gap:8px; font-weight:600; color:var(--gold); font-size:13px; }
|
|
113
|
+
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
|
|
114
|
+
.arrow { font-family:Arial,sans-serif; font-size:18px; line-height:1; }
|
|
115
|
+
.project-grid { display:grid; gap:15px; }
|
|
116
|
+
.home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
|
|
117
|
+
.catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
|
|
118
|
+
.project-card { position:relative; min-width:0; display:flex; flex-direction:column; padding:21px 22px 14px; background:var(--surface); border:1px solid var(--line); border-radius:11px; box-shadow:0 1px 2px #17253b03; transition:border-color .16s,transform .16s,box-shadow .16s; }
|
|
119
|
+
.project-card:hover { border-color:var(--tone); transform:translateY(-2px); box-shadow:var(--shadow); }
|
|
120
|
+
.card-top { justify-content:space-between; gap:10px; }
|
|
121
|
+
.group-tag { color:var(--muted); border:1px solid var(--line); border-radius:5px; font-size:11px; line-height:1.6; padding:1px 7px; }
|
|
122
|
+
.project-card h3 { font-family:var(--serif); font-size:27px; line-height:1.15; letter-spacing:-.035em; margin:12px 0 1px; }
|
|
123
|
+
.repo-id { color:var(--muted); font-size:11px; }
|
|
124
|
+
.project-card p { flex:1; color:var(--text); font-size:13px; line-height:1.65; margin:8px 0 14px; overflow-wrap:anywhere; }
|
|
125
|
+
.card-foot { border-top:1px solid var(--line); padding-top:10px; justify-content:space-between; color:var(--muted); font-size:11px; }
|
|
126
|
+
.card-foot>span:first-child { display:flex; align-items:center; gap:6px; }
|
|
127
|
+
.card-foot>.arrow { color:var(--ink); }
|
|
128
|
+
.tone-amber { --tone:#916326; --tint:#f4e7cd; --chart:#efc379; }
|
|
129
|
+
.tone-teal { --tone:#246d67; --tint:#dcefe9; --chart:#79d6c2; }
|
|
130
|
+
.tone-coral { --tone:#a45740; --tint:#f8e3d9; --chart:#ee9e85; }
|
|
131
|
+
.tone-plum { --tone:#795288; --tint:#eee3f1; --chart:#cdb1e5; }
|
|
132
|
+
.tone-blue { --tone:#48659d; --tint:#e3eaf8; --chart:#96baf4; }
|
|
133
|
+
.tone-moss { --tone:#576f4f; --tint:#e2ebda; --chart:#a2c490; }
|
|
134
|
+
[data-theme="dark"] :is(.tone-amber,.tone-teal,.tone-coral,.tone-plum,.tone-blue,.tone-moss) { --tone:var(--chart); --tint:color-mix(in srgb,var(--chart) 15%,#132034); }
|
|
135
|
+
.project-mark { width:40px; height:40px; border-radius:10px; background:var(--tint); color:var(--tone); display:inline-grid; place-items:center; flex:none; }
|
|
136
|
+
.project-mark.small { width:36px; height:36px; }
|
|
137
|
+
.motif { position:relative; display:block; width:24px; height:24px; }
|
|
138
|
+
.motif i,.motif b,.motif::before,.motif::after { position:absolute; display:block; }
|
|
139
|
+
.motif-layers i,.motif-layers b,.motif-layers::before { content:""; width:13px;height:13px;left:5px; transform:rotate(45deg) skew(-12deg,-12deg); border:1.65px solid; background:var(--tint); }
|
|
140
|
+
.motif-layers i { top:2px; z-index:2; } .motif-layers b { top:6px; z-index:1; } .motif-layers::before { top:10px; }
|
|
141
|
+
.motif-signal { border:1.65px solid; border-radius:50%; width:22px;height:22px; }
|
|
142
|
+
.motif-signal::before,.motif-signal::after { content:""; border:1.6px solid; border-radius:50%; inset:3px; } .motif-signal::after { inset:7px; background:currentColor; }
|
|
143
|
+
.motif-route::before,.motif-route::after { content:""; width:6px;height:6px; border:1.7px solid; border-radius:2px; transform:rotate(45deg); background:var(--tint); }
|
|
144
|
+
.motif-route::before { left:2px;bottom:3px; } .motif-route::after { right:2px;top:3px; }
|
|
145
|
+
.motif-route i { width:16px; height:2px; background:currentColor; transform:rotate(-36deg); left:4px;top:11px; }
|
|
146
|
+
.motif-folio::before,.motif-folio i,.motif-folio b { content:""; width:12px;height:15px; border:1.5px solid; border-radius:2px; background:var(--tint); }
|
|
147
|
+
.motif-folio::before { left:1px;top:2px; transform:rotate(-15deg); } .motif-folio i { left:5px;top:4px; } .motif-folio b { left:9px;top:6px; transform:rotate(12deg); }
|
|
148
|
+
.motif-code::before,.motif-code::after { content:""; width:8px;height:8px; border-block-start:1.8px solid; border-inline-start:1.8px solid; top:8px; }
|
|
149
|
+
.motif-code::before { left:2px; transform:rotate(-45deg); } .motif-code::after { right:2px; transform:rotate(135deg); }
|
|
150
|
+
.motif-book::before,.motif-book::after { content:""; top:4px;width:10px;height:15px;border:1.5px solid;border-radius:2px; }
|
|
151
|
+
.motif-book::before { left:1px;transform:skewY(12deg); } .motif-book::after { right:1px;transform:skewY(-12deg); }
|
|
152
|
+
.recent-panel { border:1px solid var(--line); border-radius:11px; background:var(--surface); padding:20px 23px 15px; }
|
|
153
|
+
.recent-heading { gap:9px; } .recent-heading h2 { font-size:20px; } .section-accent { height:18px;width:3px;background:var(--gold);border-radius:2px; }
|
|
154
|
+
.recent-list { list-style:none; padding:0; margin:10px 0 13px; }
|
|
155
|
+
.recent-list li { position:relative; padding:0 0 0 19px; }
|
|
156
|
+
.recent-list li::before { content:""; position:absolute; left:2px; top:18px; bottom:-17px; border-left:1px solid var(--line); }
|
|
157
|
+
.recent-list li:last-child::before { display:none; }
|
|
158
|
+
.recent-list li::after { content:""; position:absolute; left:-1px; top:17px; height:7px; width:7px; border-radius:50%; background:var(--tone); }
|
|
159
|
+
.recent-list a { display:block; padding:9px 0; } .recent-list a:hover strong,.timeline-row:hover h3 { color:var(--gold); }
|
|
160
|
+
.recent-meta { gap:9px; font-size:11px; color:var(--muted); }
|
|
161
|
+
.project-chip { display:inline-flex; width:max-content; gap:5px; line-height:1.45; font:600 11px/1.5 var(--sans); color:var(--tone); }
|
|
162
|
+
.project-chip i { width:5px; height:5px; background:var(--tone); border-radius:2px; }
|
|
163
|
+
.project-chip small { font:10px var(--mono); }
|
|
164
|
+
.recent-list strong { display:block; color:var(--ink); font-weight:600; font-size:14px; line-height:1.6; margin:2px 0 1px; }
|
|
165
|
+
.recent-sub { color:var(--muted); font-size:11px; }
|
|
166
|
+
.recent-all { border-top:1px solid var(--line); padding-top:13px; width:100%; justify-content:space-between; }
|
|
167
|
+
.site-footer { border-top:1px solid var(--line); }
|
|
168
|
+
.footer-inner { min-height:73px; flex-wrap:wrap; gap:15px; color:var(--muted); font-size:12px; }
|
|
169
|
+
.footer-brand { font-family:var(--serif); font-size:17px; font-weight:bold; color:var(--ink); letter-spacing:-.04em; }
|
|
170
|
+
.footer-inner>a:last-child { margin-left:auto; display:flex; align-items:center; gap:6px; }
|
|
171
|
+
.crumbs { gap:9px; color:var(--muted); font-size:12px; flex-wrap:wrap; margin:1px 0 21px; }
|
|
172
|
+
.crumbs a:hover { color:var(--gold); } .crumbs [aria-current] { color:var(--ink); }
|
|
173
|
+
.page-head { padding-bottom:24px; max-width:840px; }
|
|
174
|
+
.page-head h1,.detail-head h1,.sample-sheet h1 { color:var(--ink); font:700 clamp(36px,4.4vw,55px)/1.22 var(--serif); letter-spacing:-.035em; }
|
|
175
|
+
.page-head p,.detail-head>p,.sample-sheet>p { margin-top:10px; color:var(--muted); }
|
|
176
|
+
.filter-bar { align-items:center; flex-wrap:wrap; justify-content:space-between; gap:16px; border-block:1px solid var(--line); padding:15px 0; }
|
|
177
|
+
.filter-pills { flex-wrap:wrap; gap:5px; }
|
|
178
|
+
.filter-pills button,.close-search { background:transparent; color:var(--muted); border:1px solid transparent; font-size:13px; padding:6px 12px; border-radius:6px; }
|
|
179
|
+
.filter-pills button[aria-pressed="true"] { color:var(--button-ink); background:var(--button); }
|
|
180
|
+
.filter-pills button:hover:not([aria-pressed="true"]) { background:var(--soft); }
|
|
181
|
+
.field { padding:0 9px; gap:8px; color:var(--muted); }
|
|
182
|
+
.field input,.search-dialog-field input { border:none; outline:none; color:var(--ink); width:100%; min-width:0; background:transparent; }
|
|
183
|
+
.field:focus-within { outline:2px solid var(--focus); outline-offset:2px; }
|
|
184
|
+
.field input { font-size:13px; height:35px; }
|
|
185
|
+
.list-count,.range-caption,.detail-group,.period-heading,.demo-footnote { font-size:12px; color:var(--muted); }
|
|
186
|
+
.list-count { margin-block:14px; }
|
|
187
|
+
.empty-panel,.sample-sheet,.demo-panel,.log-period { border:1px solid var(--line); border-radius:12px; background:var(--surface); }
|
|
188
|
+
.empty-panel { padding:42px 20px; text-align:center; }
|
|
189
|
+
.empty-panel h2,.empty-panel h3 { font-size:21px; }.empty-panel p { margin:8px 0 15px; color:var(--muted); }
|
|
190
|
+
.empty-panel .text-link { margin:auto; }
|
|
191
|
+
.primary-button,.secondary-button { min-height:38px; width:fit-content; justify-content:center; gap:8px; border-radius:6px; padding:7px 13px; font-size:13px; font-weight:600; }
|
|
192
|
+
.primary-button { color:var(--button-ink); background:var(--button); border:1px solid var(--button); }
|
|
193
|
+
.primary-button:hover { filter:brightness(1.16); } .secondary-button { color:var(--ink); background:var(--surface); border:1px solid var(--line); }
|
|
194
|
+
.empty-panel .secondary-button { margin:auto; }
|
|
195
|
+
.timeline-controls { justify-content:space-between; gap:12px; padding:12px 0; border-block:1px solid var(--line); margin-bottom:7px; }
|
|
196
|
+
.timeline-controls .list-count { margin:0; }
|
|
197
|
+
.select-field { gap:8px; padding:4px 8px; font-size:13px; }
|
|
198
|
+
.select-field>span { font-size:12px; color:var(--muted); }
|
|
199
|
+
.select-field select { color:var(--ink); background:var(--surface); border:0; min-height:30px; }
|
|
200
|
+
.date-group { display:grid; grid-template-columns:minmax(128px,18%) 1fr; border-bottom:1px solid var(--line); padding-block:18px; gap:14px; }
|
|
201
|
+
.date-group>h2 { font-size:14px; font-weight:550; padding-top:11px; }
|
|
202
|
+
.timeline-row { display:flex; gap:14px; align-items:center; padding:13px 10px; border-block-end:1px solid var(--line); }
|
|
203
|
+
.timeline-row:last-child { border:0; }
|
|
204
|
+
.timeline-row:hover { background:var(--soft); border-radius:5px; }
|
|
205
|
+
.row-copy { flex:1; min-width:0; } .row-label { gap:8px; flex-wrap:wrap; }
|
|
206
|
+
.row-copy h3 { font-size:16px; margin:2px 0; overflow-wrap:anywhere; }
|
|
207
|
+
.row-count { color:var(--muted); white-space:nowrap; font-size:12px; } .range-caption { font-size:11px; }
|
|
208
|
+
.timeline-row>.arrow { color:var(--gold); }
|
|
209
|
+
.detail-head { background:var(--surface); border:1px solid var(--line); padding:30px; border-radius:12px; }
|
|
210
|
+
.detail-intro { gap:17px; }.detail-intro .project-mark { width:62px;height:62px;border-radius:13px; }.detail-intro .motif { transform:scale(1.4); }
|
|
211
|
+
.detail-head h1 { font-size:43px; }
|
|
212
|
+
.detail-head>p { color:var(--text); }
|
|
213
|
+
.button-row { gap:10px; flex-wrap:wrap; } .button-row:not(:empty) { margin-top:18px; }
|
|
214
|
+
.external-arrow { font-size:16px;line-height:1; }
|
|
215
|
+
.detail-stats { display:flex; gap:clamp(25px,7vw,120px); padding:19px 5px; border-bottom:1px solid var(--line); }
|
|
216
|
+
.detail-stats dt,.stat-strip dt { color:var(--muted); font-size:12px; }
|
|
217
|
+
.detail-stats dd { margin-top:4px; color:var(--ink); font:19px var(--mono); }
|
|
218
|
+
.detail-recent { margin-top:29px; } .detail-recent .timeline-row { background:var(--surface); padding-inline:18px; } .detail-recent .timeline-row:hover { background:var(--soft); }
|
|
219
|
+
.empty-book { display:inline-grid; place-items:center; background:var(--soft); width:40px; height:40px; border-radius:10px; margin-bottom:10px; }
|
|
220
|
+
.log-layout { display:grid; grid-template-columns:225px minmax(0,1fr); gap:28px; align-items:start; }
|
|
221
|
+
.log-index { position:sticky; top:90px; border-left:2px solid var(--line); padding-left:13px; }
|
|
222
|
+
.log-index h2 { font-size:15px; margin-bottom:12px; }
|
|
223
|
+
.log-index a { display:block; font-size:12px; margin-bottom:11px; line-height:1.5; } .log-index a time { font-family:var(--mono); color:var(--gold); } .log-index a span { display:block; }
|
|
224
|
+
.log-index a:hover { color:var(--gold); }
|
|
225
|
+
.log-period { padding:22px 25px; margin-bottom:15px; scroll-margin-top:88px; }
|
|
226
|
+
.log-period:target { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }
|
|
227
|
+
.period-heading { justify-content:space-between; font-size:11px; }
|
|
228
|
+
.log-period h2 { font:600 clamp(18px,2.5vw,26px)/1.5 var(--mono); margin:9px 0; }
|
|
229
|
+
.period-title { color:var(--text); } .period-note { margin-top:10px; padding:8px 12px; border-left:2px solid var(--gold); background:var(--gold-soft); font-size:13px; }
|
|
230
|
+
.stat-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,4.5rem),1fr)); gap:9px 4px; background:var(--soft); border-radius:7px; margin:16px 0; padding:9px 6px; }
|
|
231
|
+
.stat-strip div { text-align:center; } .stat-strip dd { font:600 17px var(--mono); color:var(--ink); margin-top:3px; }
|
|
232
|
+
.stat-strip dt { overflow-wrap:anywhere; }
|
|
233
|
+
.stat-summary { margin:18px 0; padding:12px; border:1px solid var(--line); border-radius:7px; background:var(--surface); }
|
|
234
|
+
.stat-summary h2 { font-size:16px; margin:0; }
|
|
235
|
+
.stat-summary p { color:var(--muted); font-size:12px; margin-top:3px; }
|
|
236
|
+
.stat-summary .stat-strip, .window-statistics .stat-strip { margin:8px 0 0; }
|
|
237
|
+
.category-block { margin-top:12px; } .category-block h3 { font-size:14px; } .category-block ul,.sample-sheet ol { padding-left:1.5em; }.category-block li { font-size:14px; }
|
|
238
|
+
#demo-status { color:var(--gold); }.demo-footnote { margin-top:15px; }.demo-panel input { accent-color:var(--gold); }
|
|
239
|
+
dialog { color:var(--text); width:min(590px,calc(100vw - 28px)); max-height:min(650px,82vh); padding:0; border-radius:12px; border:1px solid var(--line); background:var(--surface); box-shadow:0 24px 90px #09132459; margin: min(15vh,115px) auto auto; }
|
|
240
|
+
dialog::backdrop { background:#111c2b80; backdrop-filter:blur(3px); }
|
|
241
|
+
.search-dialog-field { display:flex; align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line); }
|
|
242
|
+
.search-dialog-field input { font-size:16px; height:32px; }
|
|
243
|
+
.close-search { border-color:var(--line); padding:2px 6px; font:12px var(--mono); }
|
|
244
|
+
.result-summary,.search-help { padding:10px 18px; font-size:12px;color:var(--muted); }
|
|
245
|
+
#search-results { padding:0 8px 8px; overflow-y:auto; max-height:min(48vh,390px); }
|
|
246
|
+
.search-result { display:block; padding:9px 11px; border-radius:6px; }
|
|
247
|
+
.search-result:hover,.search-result.is-selected,.search-result:focus { background:var(--soft); outline-offset:-2px; }
|
|
248
|
+
.search-result small,.search-result span { display:block; color:var(--muted); font-size:12px; }
|
|
249
|
+
.search-result strong { display:block; color:var(--ink); font-size:15px; }
|
|
250
|
+
.search-help { display:flex; gap:16px;border-top:1px solid var(--line); }
|
|
251
|
+
mark { background:var(--gold-soft);color:var(--ink);border-radius:2px; }
|
|
252
|
+
@media (max-width:1040px) {
|
|
253
|
+
.wrap { width:calc(100% - 56px); }.overview-hero { gap:26px;padding:27px; }.hero-copy>p { max-width:29em; }
|
|
254
|
+
.overview-columns { grid-template-columns:minmax(0,1.55fr) minmax(258px,1fr); gap:20px; }.project-card { padding:17px 16px 12px; }.recent-panel { padding:17px; }
|
|
255
|
+
}
|
|
256
|
+
@media (max-width:780px) {
|
|
257
|
+
.wrap { width:calc(100% - 34px); }.mast-inner { gap:20px; height:60px; }.main-nav { gap:15px; }
|
|
258
|
+
.search-open kbd { display:none; }.overview-hero { grid-template-columns:1fr 1fr;gap:18px;padding:22px; }.activity-figure { padding:12px; }.chart-lane { grid-template-columns:57px 1fr; }.chart-axis { margin-left:57px; }.chart-key { gap:7px; }
|
|
259
|
+
.overview-columns { grid-template-columns:1fr; }.recent-panel { margin-top:4px; }.catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
|
|
260
|
+
.log-layout { grid-template-columns:170px minmax(0,1fr);gap:16px; }.stat-strip dt { font-size:10px; }
|
|
261
|
+
}
|
|
262
|
+
@media (max-width:600px) {
|
|
263
|
+
.wrap { width:calc(100% - 32px); }.mast-inner { height:auto;display:grid;grid-template-columns:1fr auto;gap:0; }.brand { min-height:51px;font-size:24px;width:fit-content; }.brand-stamp { width:30px;height:30px; }.mast-tools { grid-column:2;grid-row:1; }.main-nav { grid-column:1 / -1;grid-row:2;gap:24px; }.main-nav a { min-height:37px;font-size:13px; }.main-nav a[aria-current]::after { height:2px; }
|
|
264
|
+
.mast-tools { gap:7px; }.search-open { min-height:32px; }.theme-button { width:33px; height:33px; }.main-content { padding-block:17px 36px; }
|
|
265
|
+
.overview-hero { grid-template-columns:1fr;gap:17px;padding:22px 20px 16px;border-radius:12px; }.hero-copy h1 { font-size:45px;margin:8px 0; }.hero-copy>p { font-size:13px; }.hero-date { font-size:11px; }.hero-stats { margin-top:16px; }.hero-stats dd {font-size:26px;}.hero-stats dt {font-size:11px;}
|
|
266
|
+
.activity-figure { padding:10px 12px 8px; }.activity-figure figcaption { margin-bottom:4px; }.chart-lane,.lane-track { min-height:17px; }.chart-label { font-size:12px; }.chart-key { margin-top:4px;padding-top:4px; }.overview-columns { margin-top:20px; }.section-heading { margin-bottom:12px; }.section-heading h2 { font-size:21px; }
|
|
267
|
+
.home-grid { gap:10px; }.project-card { padding:13px 12px 10px; }.card-top { gap:5px; }.group-tag {padding:0 4px;font-size:10px;}.project-mark { width:33px;height:33px;border-radius:8px; }.motif { transform:scale(.86); }.project-card h3 { font-size:23px; margin-top:10px; }.project-card p { font-size:12px; }.card-foot { font-size:10px; }.catalog-grid { gap:10px; }
|
|
268
|
+
.crumbs { margin-bottom:15px; }.page-head { padding-bottom:17px; }.page-head h1 { font-size:35px; }.page-head p { font-size:13px; }.field {width:100%;}.filter-bar { gap:10px;padding:12px 0; }.filter-pills button { padding:4px 8px; }
|
|
269
|
+
.date-group { grid-template-columns:1fr;gap:3px;padding:10px 0; }.date-group>h2 { padding-top:0;font-size:12px; }.timeline-row { gap:9px;padding:10px 0; }.timeline-row .project-mark.small { width:29px;height:29px; }.row-count { font-size:11px; }.row-copy h3 { font-size:14px; }
|
|
270
|
+
.log-layout,.demo-layout { grid-template-columns:1fr; }.log-index { position:static;display:flex;gap:9px;flex-wrap:wrap;align-items:center; }.log-index h2 { margin:0; }.log-index a { margin:0;padding:4px 6px;background:var(--soft);border-radius:4px; }.log-index a span { display:none; }.log-period { padding:16px;scroll-margin-top:100px; }
|
|
271
|
+
.detail-head { padding:18px; }.detail-head h1 {font-size:34px;}.detail-stats {gap:0;justify-content:space-between;}.detail-stats dd {font-size:14px;}.detail-recent .timeline-row {padding-inline:9px;}
|
|
272
|
+
.footer-inner { gap:8px;font-size:11px; }.footer-brand { font-size:15px; }.sample-sheet h1 { font-size:32px; }
|
|
273
|
+
}
|
|
274
|
+
@media (max-width:360px) {
|
|
275
|
+
.home-grid,.catalog-grid { grid-template-columns:1fr; }.hero-stats>div { padding-inline:11px; }.hero-stats>div:first-child {padding-left:0;}.hero-stats>div:last-child {padding-right:0;}
|
|
276
|
+
}
|
|
277
|
+
@media (max-width:600px) {
|
|
278
|
+
.log-index { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
|
|
279
|
+
.log-index h2 { grid-column:1 / -1; }
|
|
280
|
+
.log-index a { min-width:0; }
|
|
281
|
+
.log-index a span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
282
|
+
}
|
|
283
|
+
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; } }
|
|
284
|
+
|
|
285
|
+
.ledger-intro { margin:18px 0 19px; }
|
|
286
|
+
.ledger-intro h1 { margin:0; font-size:clamp(30px,3vw,44px); line-height:1.16; letter-spacing:-.04em; }
|
|
287
|
+
.ledger-intro p { margin:7px 0 0; color:var(--muted); font-size:14px; }
|
|
288
|
+
.ledger-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; padding:9px 0 13px; border-bottom:1px solid var(--line); }
|
|
289
|
+
.ledger-count { margin:0; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--text); }
|
|
290
|
+
.enhanced .ledger-filters.enhanced-only { display:flex !important; align-items:center; flex-wrap:wrap; gap:7px; }
|
|
291
|
+
.ledger-filters select,.ledger-toggle,.ledger-search { height:32px; font-size:12px; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:5px; }
|
|
292
|
+
.ledger-filters select,.ledger-toggle { padding:0 9px; }
|
|
293
|
+
.ledger-toggle:disabled { opacity:.5; cursor:default; }
|
|
294
|
+
.ledger-search { display:flex; align-items:center; gap:7px; padding:0 8px; }
|
|
295
|
+
.ledger-search input { min-width:0; width:123px; border:0; background:transparent; color:var(--ink); outline:none; font:inherit; }
|
|
296
|
+
.ledger-search:focus-within { outline:2px solid var(--focus); outline-offset:1px; }
|
|
297
|
+
.ledger-window { margin:16px 0 23px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
|
|
298
|
+
.window-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2px 12px; padding:8px 13px; background:var(--soft); border-bottom:1px solid var(--line); border-radius:5px 5px 0 0; }
|
|
299
|
+
.window-head h2 { font:600 clamp(13px,1.2vw,16px)/1.45 var(--mono); margin:0; color:var(--ink); font-variant-numeric:tabular-nums; }
|
|
300
|
+
.date-divider { color:var(--gold); margin:0 1px; }
|
|
301
|
+
.window-count { font-size:12px; color:var(--muted); white-space:nowrap; }
|
|
302
|
+
.window-statistics { padding:4px 13px 6px; border-bottom:1px solid var(--line); }
|
|
303
|
+
.ledger-group { padding:7px 13px 6px; }
|
|
304
|
+
.ledger-group + .ledger-group, .ledger-period + .ledger-period { border-top:1px solid var(--line); }
|
|
305
|
+
.ledger-group h3 { margin:0 0 2px; }
|
|
306
|
+
.ledger-project { display:inline-flex; align-items:center; gap:6px; max-width:100%; font:600 13px/22px var(--mono); overflow-wrap:anywhere; color:var(--ink); }
|
|
307
|
+
.ledger-project i { flex:none; width:6px; height:6px; background:var(--tone); border-radius:50%; }
|
|
308
|
+
.ledger-period + .ledger-period { margin-top:6px; padding-top:5px; }
|
|
309
|
+
.ledger-period h4 { margin:0; color:var(--muted); font:400 12px/1.65 var(--mono); }
|
|
310
|
+
.ledger-period h4 a:hover { text-decoration:underline; text-underline-offset:3px; }
|
|
311
|
+
.ledger-lines { list-style:none; padding:0; margin:0; }
|
|
312
|
+
.ledger-entry { display:grid; grid-template-columns:minmax(3.2rem,max-content) minmax(0,1fr); gap:6px; padding:3px 1px; font-size:14px; line-height:22px; }
|
|
313
|
+
.ledger-entry + .ledger-entry { border-top:1px solid var(--line); }
|
|
314
|
+
.type-label { color:var(--muted); font-size:12px; }
|
|
315
|
+
.change-cell { overflow-wrap:anywhere; color:var(--ink); }
|
|
316
|
+
.ledger-project:hover,.change-cell:hover { color:var(--gold); text-decoration:underline; text-underline-offset:3px; }
|
|
317
|
+
.impact-tag { display:inline-block; margin-right:5px; padding:0 4px; border:1px solid var(--line); border-radius:3px; font:500 11px/16px var(--sans); color:var(--gold); vertical-align:1px; }
|
|
318
|
+
.more-entries summary,.window-statistics summary { width:fit-content; padding:4px 1px; color:var(--gold); font-size:12px; font-weight:600; cursor:pointer; }
|
|
319
|
+
.more-entries:not([open]) .show-less,.more-entries[open] .show-more { display:none; }
|
|
320
|
+
.log-entry { scroll-margin-top:100px; }
|
|
321
|
+
.log-entry:target { background:var(--gold-soft); outline:2px solid var(--gold-soft); color:var(--ink); }
|
|
322
|
+
.legacy-text,.period-note { white-space:pre-line; overflow-wrap:anywhere; }
|
|
323
|
+
@media (max-width:650px) {
|
|
324
|
+
.ledger-intro { margin:12px 0 10px; }
|
|
325
|
+
.ledger-tools { align-items:flex-start; padding:5px 0 10px; }
|
|
326
|
+
.ledger-count { width:100%; }
|
|
327
|
+
.enhanced .ledger-filters.enhanced-only { width:100%; gap:5px; }
|
|
328
|
+
.ledger-search input { width:96px; }
|
|
329
|
+
.ledger-filters select,.ledger-toggle { max-width:135px; padding-inline:5px; }
|
|
330
|
+
.window-head { padding:6px 7px; }
|
|
331
|
+
.window-count { font-size:11px; }
|
|
332
|
+
.ledger-window { margin:10px 0 16px; }
|
|
333
|
+
.ledger-group,.window-statistics { padding-inline:8px; }
|
|
334
|
+
.ledger-entry { grid-template-columns:minmax(2.7rem,max-content) minmax(0,1fr); font-size:13px; line-height:19px; padding-block:4px; }
|
|
335
|
+
.type-label { font-size:11px; }
|
|
336
|
+
.log-entry { scroll-margin-top:110px; }
|
|
337
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const html = document.documentElement;
|
|
3
|
+
let choice;
|
|
4
|
+
try { choice = localStorage.getItem('skills-hub.home-website.theme'); } catch {}
|
|
5
|
+
if (choice !== 'dark' && choice !== 'light') choice = matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
6
|
+
html.dataset.theme = choice;
|
|
7
|
+
})();
|