@press2ai/theme-specialist-glossy 0.4.2 → 0.4.4
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.4.
|
|
3
|
+
"version": "0.4.4",
|
|
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
|
@@ -121,6 +121,7 @@ form[role="search"] button {
|
|
|
121
121
|
form[role="search"] button:hover { background: var(--ink); }
|
|
122
122
|
|
|
123
123
|
/* Stats */
|
|
124
|
+
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); }
|
|
124
125
|
section:has(> dl) { margin-bottom: 0; }
|
|
125
126
|
section > dl {
|
|
126
127
|
display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--g3);
|
|
@@ -248,13 +249,13 @@ input[type="text"] {
|
|
|
248
249
|
transition: border-color var(--ease);
|
|
249
250
|
}
|
|
250
251
|
input[type="text"]:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,252,.08); }
|
|
251
|
-
button[type="submit"] {
|
|
252
|
+
form:not([role="search"]) button[type="submit"] {
|
|
252
253
|
margin-top: var(--g3); height: var(--g5); padding: 0 var(--g4);
|
|
253
254
|
border: none; border-radius: var(--pill); background: var(--violet); color: var(--white);
|
|
254
255
|
font-size: var(--t-sm); font-weight: 600; font-family: var(--font); cursor: pointer;
|
|
255
256
|
transition: background var(--ease);
|
|
256
257
|
}
|
|
257
|
-
button[type="submit"]:hover { background: var(--ink); }
|
|
258
|
+
form:not([role="search"]) button[type="submit"]:hover { background: var(--ink); }
|
|
258
259
|
|
|
259
260
|
/* Responsive */
|
|
260
261
|
@media (max-width: 640px) {
|
package/src/templates/catalog.ts
CHANGED
|
@@ -24,9 +24,10 @@ ${search}
|
|
|
24
24
|
</hgroup>`;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export function statBar(items: { value: string; label: string }[]): string {
|
|
27
|
+
export function statBar(items: { value: string; label: string }[], summary?: string): string {
|
|
28
28
|
const divs = items.map(i => `<div><dt>${esc(i.value)}</dt><dd>${esc(i.label)}</dd></div>`).join('\n');
|
|
29
|
-
|
|
29
|
+
const summaryP = summary ? `<p>${esc(summary)}</p>` : '';
|
|
30
|
+
return `<section aria-label="Statystyki">${summaryP}<dl>\n${divs}\n</dl></section>`;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export function categoryNav(items: { href: string; label: string }[], ariaLabel = 'Kategorie'): string {
|