@press2ai/theme-specialist-glossy 0.6.0 → 0.6.2
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/package.json +1 -1
- package/src/styles/glossy.css +14 -12
- package/src/templates/catalog.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@press2ai/theme-specialist-glossy",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Classless, AI-first theme inspired by Stripe. Framework-agnostic templates (Hono, Astro, raw HTML). Semantic HTML, Schema.org microdata, JSON-LD — built for LLM crawlers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/styles/glossy.css
CHANGED
|
@@ -173,22 +173,24 @@ form[role="search"] button {
|
|
|
173
173
|
form[role="search"] button:hover { background: var(--ink); }
|
|
174
174
|
|
|
175
175
|
/* Stats */
|
|
176
|
-
section[aria-label]
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
176
|
+
section[aria-label="Statystyki"] { margin-bottom: var(--g6); }
|
|
177
|
+
.stat-summary {
|
|
178
|
+
text-align: center; font-size: var(--t-md); font-weight: 500; line-height: 1.55;
|
|
179
|
+
color: var(--ink); margin: 0 auto var(--g4); max-width: var(--measure);
|
|
180
|
+
}
|
|
181
|
+
section[aria-label="Statystyki"] > dl {
|
|
182
|
+
display: flex; justify-content: center; gap: var(--g5);
|
|
183
|
+
margin: 0 auto; padding: 0;
|
|
184
|
+
border: none; background: none; box-shadow: none;
|
|
183
185
|
}
|
|
184
186
|
section > dl div { text-align: center; }
|
|
185
187
|
.stat-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 auto var(--g1); background: var(--violet-s); border-radius: 50%; color: var(--violet); }
|
|
186
188
|
.stat-icon svg { width: 18px; height: 18px; }
|
|
187
|
-
section > dl dt { font-size: var(--t-
|
|
188
|
-
section > dl dd { margin:
|
|
189
|
+
section > dl dt { font-size: var(--t-lg); font-weight: 800; line-height: 1.2; color: var(--violet); }
|
|
190
|
+
section > dl dd { margin: 2px 0 0; font-size: var(--t-xs); line-height: 1.4; color: var(--ink-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
|
|
189
191
|
|
|
190
|
-
/* Category pills
|
|
191
|
-
nav[aria-label] { display: flex; flex-wrap: wrap; gap: var(--g1); margin-bottom: var(--
|
|
192
|
+
/* Category pills */
|
|
193
|
+
nav[aria-label] { display: flex; flex-wrap: wrap; gap: var(--g1); margin-bottom: var(--g4); }
|
|
192
194
|
nav[aria-label] a {
|
|
193
195
|
display: inline-flex; align-items: center; height: 32px; padding: 0 var(--g2);
|
|
194
196
|
border-radius: var(--pill); font-size: var(--t-xs); font-weight: 500;
|
|
@@ -345,7 +347,7 @@ form:not([role="search"]) button[type="submit"]:hover { background: var(--ink);
|
|
|
345
347
|
hgroup { padding: var(--g5) var(--pad) var(--g4); }
|
|
346
348
|
section:has(> article[itemscope]) { grid-template-columns: 1fr; }
|
|
347
349
|
section > ol { grid-template-columns: 1fr; }
|
|
348
|
-
section > dl {
|
|
350
|
+
section > dl { gap: var(--g3); }
|
|
349
351
|
main > article { padding: var(--g3); }
|
|
350
352
|
main > article dl { grid-template-columns: 1fr; gap: calc(var(--g1) / 2) 0; }
|
|
351
353
|
main > article dt { margin-top: var(--g2); }
|
package/src/templates/catalog.ts
CHANGED
|
@@ -40,8 +40,8 @@ export function statBar(items: { value: string; label: string; icon?: string }[]
|
|
|
40
40
|
const icon = i.icon && STAT_ICONS[i.icon] ? `<span class="stat-icon">${STAT_ICONS[i.icon]}</span>` : '';
|
|
41
41
|
return `<div>${icon}<dt>${esc(i.value)}</dt><dd>${esc(i.label)}</dd></div>`;
|
|
42
42
|
}).join('\n');
|
|
43
|
-
const summaryP = summary ? `<p>${esc(summary)}</p>` : '';
|
|
44
|
-
return `<section aria-label="Statystyki">${summaryP}<dl>\n${divs}\n</dl></section>`;
|
|
43
|
+
const summaryP = summary ? `<p class="stat-summary">${esc(summary)}</p>` : '';
|
|
44
|
+
return `<section aria-label="Statystyki">${summaryP}<dl aria-hidden="true">\n${divs}\n</dl></section>`;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export function categoryNav(items: { href: string; label: string }[], ariaLabel = 'Kategorie'): string {
|