@press2ai/theme-specialist-glossy 0.6.0 → 0.6.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@press2ai/theme-specialist-glossy",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
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",
@@ -173,19 +173,21 @@ form[role="search"] button {
173
173
  form[role="search"] button:hover { background: var(--ink); }
174
174
 
175
175
  /* Stats */
176
- section[aria-label] > p { text-align: center; font-size: var(--t-sm); color: var(--ink-2); margin: 0 auto var(--g3); max-width: var(--measure); }
177
176
  section:has(> dl) { margin-bottom: 0; }
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
+ }
178
181
  section > dl {
179
- display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--g3);
180
- padding: var(--g4); margin: 0 auto var(--g6); max-width: var(--w-8);
181
- background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
182
- box-shadow: var(--shadow-md);
182
+ display: flex; justify-content: center; gap: var(--g5);
183
+ margin: 0 auto var(--g6); 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-xl); font-weight: 800; line-height: 1.2; color: var(--violet); }
188
- section > dl dd { margin: 4px 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
+ 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
192
  /* Category pills — inside trainers section */
191
193
  nav[aria-label] { display: flex; flex-wrap: wrap; gap: var(--g1); margin-bottom: var(--g3); grid-column: 1 / -1; }
@@ -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 { grid-template-columns: 1fr; max-width: 100%; padding: var(--g3); }
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); }
@@ -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 {