@skirbi/pinta 0.0.31 → 0.0.32

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/Changes CHANGED
@@ -1,5 +1,30 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.32 2026-08-25 17:39:42Z
4
+
5
+ * semtic-grid[diptych] and [triptych] now stack to a single column below
6
+ 48rem, matching each other (triptych already did this; diptych didn't).
7
+ A nested semtic-sidenav used as either grid's aside no longer disappears
8
+ below 64rem (its own off-canvas drawer breakpoint) or overflows into the
9
+ content column when its own width doesn't match the grid track.
10
+
11
+ * Unified the mobile/tablet breakpoints used across semtic-grid and the
12
+ catalogue grid to 48rem/64rem. See the new "Breakpoints" doc block at
13
+ the top of pinta.css.
14
+
15
+ * semtic-nav has a built-in mobile hamburger toggle: below 48rem it shows
16
+ a toggle button and the link list collapses into a 3-column dropdown,
17
+ sized to its own content and centered rather than stretched full-width.
18
+ hamburger="left" (default) or hamburger="right" picks which side of the
19
+ bar the toggle sits on.
20
+
21
+ * semtic-sidenav items always show the "›" marker now, not just nested
22
+ children. A sidenav link always leads somewhere, unlike a topbar link
23
+ which only gets the marker in its own mobile dropdown. The character is
24
+ now the `--skirbi-nav-marker` token, shared by both.
25
+
26
+ *
27
+
3
28
  0.0.31 2026-08-15 04:29:13Z
4
29
 
5
30
  * Align checkbox/radio colors with the text-input color scheme and make
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.31";
5
+ const VERSION = "0.0.32";
@@ -53,6 +53,30 @@
53
53
  * | `skirbi-transform` | Derived colors and final tokens. |
54
54
  * | `skirbi-components` | Light recipes for Semtic elements. |
55
55
  * | `skirbi-app` | Application overrides. Always comes last. |
56
+ *
57
+ * ## Breakpoints
58
+ *
59
+ * Three tiers, two shared thresholds -- not four (no separate "wide"
60
+ * tier: a wide window is still normally a narrow browser column, not a
61
+ * canvas to fill; `semtic-grid[triptych]`'s own max content width
62
+ * already handles the "don't stretch too wide" case directly instead).
63
+ * Reuse these two values for any new layout-affecting media query
64
+ * rather than picking a nearby one -- that drift is exactly how
65
+ * `semtic-grid[diptych]` (48rem) and `semtic-nav` (previously 47.999rem)
66
+ * ended up responding to viewport width one pixel apart on the same
67
+ * page.
68
+ *
69
+ * | Tier | Range | `max-width` to use |
70
+ * | --- | --- | --- |
71
+ * | mobile | up to 48rem (768px) | `48rem` |
72
+ * | tablet | 48rem-64rem (768-1024px) | `64rem` (as `min-width` for the tablet-and-up half) |
73
+ * | desktop | above 64rem | -- |
74
+ *
75
+ * A component may still have its own finer-grained breakpoint for a
76
+ * detail that isn't a layout tier (`semtic-nav-avatar`'s `36rem`
77
+ * aspect-ratio fix, e.g.) -- that's a narrower, self-contained tweak
78
+ * inside the mobile tier, not a competing definition of where mobile
79
+ * ends.
56
80
  */
57
81
 
58
82
  @layer skirbi-base, skirbi-theme, skirbi-transform, skirbi-components,
@@ -1775,7 +1799,18 @@
1775
1799
  *
1776
1800
  * Default navigation recipe for `<semtic-nav>`.
1777
1801
  *
1778
- * Includes brand, links, social navigation, and small-screen wrapping rules.
1802
+ * Includes brand, links, social navigation, and a mobile hamburger toggle
1803
+ * (below the mobile breakpoint) that opens the link list as a 3-column
1804
+ * dropdown. `hamburger="left"` (default) or `hamburger="right"` picks
1805
+ * which side of the bar the toggle sits on.
1806
+ *
1807
+ * | Token | Purpose |
1808
+ * | --- | --- |
1809
+ * | `--skirbi-nav-mobile-bg` | Background of the open mobile dropdown. |
1810
+ * | `--skirbi-nav-mobile-border` | Border between the dropdown and the bar above it. |
1811
+ * | `--skirbi-nav-mobile-item-bg` | Resting background of each item tile in the open dropdown. |
1812
+ * | `--skirbi-nav-mobile-item-border` | Border of each item tile in the open dropdown. |
1813
+ * | `--skirbi-nav-mobile-item-active-bg` | Background of an item tile while pressed. |
1779
1814
  */
1780
1815
 
1781
1816
  /* semtic-nav */
@@ -1890,14 +1925,200 @@
1890
1925
  display: contents;
1891
1926
  }
1892
1927
 
1893
- @media (max-width: 47.999rem) {
1928
+ /* [semtic-nav-links] is a real box (not display: contents), unlike
1929
+ * semtic-nav-item -- it's the one thing the mobile recipe below needs
1930
+ * to collapse/expand as a unit, regardless of what's authored inside
1931
+ * it (a bare list of items, a <ul>, semtic-nav-section, ...). */
1932
+ semtic-nav [semtic-nav-links] {
1933
+ display: flex;
1934
+ align-items: center;
1935
+ gap: 0.25rem;
1936
+ }
1937
+
1938
+ semtic-nav [semtic-nav-toggle] {
1939
+ display: none;
1940
+ align-items: center;
1941
+ justify-content: center;
1942
+ inline-size: 2.25rem;
1943
+ block-size: 2.25rem;
1944
+ padding: 0;
1945
+ border: 1px solid var(--skirbi-surface-border-final);
1946
+ border-radius: 0.375rem;
1947
+ background: var(--skirbi-surface-base, #fff);
1948
+ color: inherit;
1949
+ cursor: pointer;
1950
+ }
1951
+
1952
+ semtic-nav [semtic-nav-toggle-bar] {
1953
+ position: relative;
1954
+ display: block;
1955
+ inline-size: 1.1rem;
1956
+ block-size: 2px;
1957
+ background: currentColor;
1958
+
1959
+ &::before,
1960
+ &::after {
1961
+ content: '';
1962
+ position: absolute;
1963
+ left: 0;
1964
+ inline-size: 100%;
1965
+ block-size: 2px;
1966
+ background: currentColor;
1967
+ }
1968
+
1969
+ &::before {
1970
+ top: -6px;
1971
+ }
1972
+
1973
+ &::after {
1974
+ top: 6px;
1975
+ }
1976
+ }
1977
+
1978
+ /* 48rem, matching the diptych/triptych stacking breakpoint below --
1979
+ * this used to be 47.999rem, a fraction under, which meant a page
1980
+ * combining this nav with a diptych/triptych (every real page in
1981
+ * eekboek-www, for one) had its layout stack and its nav collapse at
1982
+ * two DIFFERENT widths, with a sliver of viewport width where one
1983
+ * had already responded and the other hadn't yet. */
1984
+ @media (max-width: 48rem) {
1985
+ /* A 2-column/2-row grid, not flex-wrap -- flex-wrap only breaks a
1986
+ * line once the current line actually runs out of room, so
1987
+ * whether [semtic-nav-links] (however wide its own content makes
1988
+ * it) landed on the bar's own line or wrapped below it depended on
1989
+ * viewport width: wide enough for toggle+brand+links together
1990
+ * (roughly 511-767px, with eekboek-www's own item list) and it
1991
+ * sat right next to the brand instead of below it. Explicit grid
1992
+ * placement makes "toggle+brand on row 1, links on row 2" true at
1993
+ * every width in this query, never a function of how much content
1994
+ * happens to fit. */
1894
1995
  semtic-nav > nav {
1895
- flex-wrap: wrap;
1896
- gap: 0.75rem;
1996
+ display: grid;
1997
+ grid-template-columns: auto 1fr;
1998
+ align-items: center;
1999
+ }
2000
+
2001
+ /* hamburger="right" swaps the two columns' roles rather than just
2002
+ * reordering within a fixed track list -- with the toggle's own
2003
+ * column staying `auto`-sized and the other `1fr`, either side
2004
+ * gets the same "hug the button, give the brand the rest" sizing
2005
+ * regardless of which one it is. */
2006
+ semtic-nav[hamburger="right"] > nav {
2007
+ grid-template-columns: 1fr auto;
2008
+ }
2009
+
2010
+ semtic-nav > nav > [semtic-nav-toggle] {
2011
+ display: inline-flex;
2012
+ grid-column: 1;
2013
+ grid-row: 1;
2014
+ }
2015
+
2016
+ semtic-nav[hamburger="right"] > nav > [semtic-nav-toggle] {
2017
+ grid-column: 2;
2018
+ }
2019
+
2020
+ /* Nothing to open -- a brand-only nav (no items authored at all)
2021
+ * would otherwise still show a toggle that reveals an empty panel.
2022
+ * Relies on semtic-nav.mjs's own connectedCallbackSugar dropping
2023
+ * whitespace-only text nodes rather than moving them into
2024
+ * [semtic-nav-links] -- otherwise a stray newline left over from
2025
+ * the authored HTML's own formatting (e.g. between the brand and
2026
+ * an `<%= include ... %>` that rendered nothing while logged out)
2027
+ * would keep this from ever matching `:empty`. (`:has(*)` inside
2028
+ * this same :has() would have sufficed too and dodged that
2029
+ * dependency, but :has() can't nest inside :has() -- invalid
2030
+ * selector, silently never matches.) */
2031
+ semtic-nav:has(> nav > [semtic-nav-links]:empty) > nav > [semtic-nav-toggle] {
2032
+ display: none;
2033
+ }
2034
+
2035
+ semtic-nav > nav > [semtic-nav-brand] {
2036
+ grid-column: 2;
2037
+ grid-row: 1;
2038
+ }
2039
+
2040
+ semtic-nav[hamburger="right"] > nav > [semtic-nav-brand] {
2041
+ grid-column: 1;
2042
+ }
2043
+
2044
+ semtic-nav > nav > [semtic-nav-links] {
2045
+ display: none;
2046
+ }
2047
+
2048
+ /* A 3-per-row grid, not a single stacked column -- with a longer
2049
+ * item list (see eekboek-www's Sales/Purchases/Bank/... top nav)
2050
+ * one-per-line ran the open dropdown well past the fold before the
2051
+ * last couple of items were even reachable. The grid lands on
2052
+ * [semtic-nav-links] itself, so it doesn't matter whether the
2053
+ * items are its direct children (the bare-items case this
2054
+ * component's own tests use) or grouped under an authored <ul>
2055
+ * (a common pattern; see eekboek-www's main_nav.html.ep) -- an
2056
+ * authored <ul> is flattened out of the box model entirely
2057
+ * (`display: contents`) so its <li>s become grid items of
2058
+ * [semtic-nav-links] directly, same as the bare-items case. */
2059
+ semtic-nav[semtic-nav-open] > nav > [semtic-nav-links] {
2060
+ display: grid;
2061
+ grid-column: 1 / -1;
2062
+ grid-row: 2;
2063
+ /* Tiles size to their own label, not stretched to fill an equal
2064
+ * share of the row -- `justify-self: center` (not `justify-
2065
+ * content`, which centers tracks WITHIN a box, not the box
2066
+ * itself) then centers the now content-sized box within its
2067
+ * full-width grid area, same idea as `margin: auto` on a block
2068
+ * box but the grid-native way to do it for a grid ITEM. */
2069
+ justify-self: center;
2070
+ width: fit-content;
2071
+ grid-template-columns: repeat(3, max-content);
2072
+ gap: 0.25rem;
2073
+ /* A real panel, not a see-through overlay on whatever's
2074
+ * scrolled underneath -- the dropdown sits on top of page
2075
+ * content (it's still inside <nav>, not a separate layer), so
2076
+ * without an opaque background the open menu's own text and
2077
+ * the page's own would visually run together. */
2078
+ background: var(--skirbi-nav-mobile-bg, var(--skirbi-surface-bg-final));
2079
+ border: 1px solid var(--skirbi-nav-mobile-border, var(--skirbi-surface-border-final));
2080
+ border-radius: 0.5rem;
2081
+ padding: 0.75rem;
2082
+ margin-block-start: 0.75rem;
2083
+ }
2084
+
2085
+ semtic-nav[semtic-nav-open] > nav > [semtic-nav-links] > ul {
2086
+ display: contents;
2087
+ }
2088
+
2089
+ /* The inline "𐄁" separator between items reads fine in a single
2090
+ * row; stacked one-per-line in the open dropdown it just leaves a
2091
+ * stray mark floating before each label. */
2092
+ semtic-nav[semtic-nav-open] semtic-nav-item + semtic-nav-item::before {
2093
+ content: none;
2094
+ }
2095
+
2096
+ /* [semtic-nav-link] already gets the shared item recipe's hover/
2097
+ * current-page tint (see :is(semtic-nav-item, semtic-nav-item-group)
2098
+ * [semtic-nav-link] above), but that's a :hover effect -- with no
2099
+ * mouse to hover with, a tapped item on a touch device never shows
2100
+ * it, so a mobile-open item needs its own resting affordance to
2101
+ * read as a tile at all instead of plain stacked text. */
2102
+ semtic-nav[semtic-nav-open] > nav > [semtic-nav-links] [semtic-nav-link] {
2103
+ background: var(--skirbi-nav-mobile-item-bg, var(--skirbi-surface-base, #fff));
2104
+ border: 1px solid var(--skirbi-nav-mobile-item-border, var(--skirbi-surface-border-final));
1897
2105
  }
1898
2106
 
1899
- semtic-nav [semtic-nav-brand] {
1900
- flex: 1 0 100%;
2107
+ semtic-nav[semtic-nav-open] > nav > [semtic-nav-links] [semtic-nav-link]:active {
2108
+ background: var(--skirbi-nav-mobile-item-active-bg, color-mix(
2109
+ in srgb, var(--skirbi-primary-main) 12%, transparent
2110
+ ));
2111
+ }
2112
+
2113
+ /* Topbar links otherwise have no marker at all (that's only ever
2114
+ * been a sidenav-submenu thing, see the nested-children rule
2115
+ * further down) -- the mobile dropdown tile needs its own "leads
2116
+ * somewhere" affordance since it doesn't get one from anywhere
2117
+ * else. */
2118
+ semtic-nav[semtic-nav-open] > nav > [semtic-nav-links] [semtic-nav-link]:not([semtic-nav-heading])::before {
2119
+ content: var(--skirbi-nav-marker, '›');
2120
+ opacity: 0.5;
2121
+ font-size: 1em;
1901
2122
  }
1902
2123
  }
1903
2124
  }
@@ -1990,12 +2211,23 @@
1990
2211
  font-weight: 600;
1991
2212
  }
1992
2213
 
2214
+ /* Sidenav items always get the marker (not just nested children) --
2215
+ * unlike the topbar (see semtic-nav's own mobile-only rule), a
2216
+ * sidenav's whole reason for existing is "this leads to a page", so
2217
+ * the affordance is always relevant there, not just below the topbar's
2218
+ * mobile breakpoint. */
2219
+ semtic-sidenav [semtic-nav-link]:not([semtic-nav-heading])::before {
2220
+ content: var(--skirbi-nav-marker, '›');
2221
+ opacity: 0.5;
2222
+ font-size: 1em;
2223
+ }
2224
+
1993
2225
  /* The newline before ::before used to be a descendant combinator, so this
1994
2226
  * marked every element inside the link instead of the link itself -- and
1995
2227
  * a link holds only text, so nothing was ever marked. */
1996
2228
  :is(semtic-nav-item, semtic-nav-item-group)
1997
2229
  [semtic-nav-children] semtic-nav-item [semtic-nav-link]::before {
1998
- content: '›';
2230
+ content: var(--skirbi-nav-marker, '›');
1999
2231
  opacity: 0.5;
2000
2232
  font-size: 1em;
2001
2233
  }
@@ -2494,6 +2726,7 @@
2494
2726
  * label-position="right".
2495
2727
  */
2496
2728
  semtic-input,
2729
+ semtic-input-number,
2497
2730
  semtic-select,
2498
2731
  semtic-textarea,
2499
2732
  semtic-checkbox,
@@ -2523,8 +2756,12 @@
2523
2756
  -webkit-appearance: none;
2524
2757
  }
2525
2758
 
2526
- /* label-position: label against control, inside the definition. */
2759
+ /* label-position: label against control, inside the definition.
2760
+ * semtic-input-number was missing from every one of these lists --
2761
+ * added after this file, never wired in -- so label-position had
2762
+ * silently done nothing for it until now. */
2527
2763
  semtic-input[label-position="top"] [semtic-input-definition],
2764
+ semtic-input-number[label-position="top"] [semtic-input-definition],
2528
2765
  semtic-select[label-position="top"] [semtic-input-definition],
2529
2766
  semtic-textarea[label-position="top"] [semtic-input-definition],
2530
2767
  semtic-checkbox[label-position="top"] [semtic-input-definition],
@@ -2534,6 +2771,7 @@
2534
2771
  }
2535
2772
 
2536
2773
  semtic-input[label-position="bottom"] [semtic-input-definition],
2774
+ semtic-input-number[label-position="bottom"] [semtic-input-definition],
2537
2775
  semtic-select[label-position="bottom"] [semtic-input-definition],
2538
2776
  semtic-textarea[label-position="bottom"] [semtic-input-definition],
2539
2777
  semtic-checkbox[label-position="bottom"] [semtic-input-definition],
@@ -2543,6 +2781,7 @@
2543
2781
  }
2544
2782
 
2545
2783
  semtic-input[label-position="left"] [semtic-input-definition],
2784
+ semtic-input-number[label-position="left"] [semtic-input-definition],
2546
2785
  semtic-select[label-position="left"] [semtic-input-definition],
2547
2786
  semtic-textarea[label-position="left"] [semtic-input-definition],
2548
2787
  semtic-checkbox[label-position="left"] [semtic-input-definition],
@@ -2552,6 +2791,7 @@
2552
2791
  }
2553
2792
 
2554
2793
  semtic-input[label-position="right"] [semtic-input-definition],
2794
+ semtic-input-number[label-position="right"] [semtic-input-definition],
2555
2795
  semtic-select[label-position="right"] [semtic-input-definition],
2556
2796
  semtic-textarea[label-position="right"] [semtic-input-definition],
2557
2797
  semtic-checkbox[label-position="right"] [semtic-input-definition],
@@ -2580,6 +2820,7 @@
2580
2820
  }
2581
2821
 
2582
2822
  semtic-input:has([semtic-error]:not(:empty)) [semtic-label],
2823
+ semtic-input-number:has([semtic-error]:not(:empty)) [semtic-label],
2583
2824
  semtic-select:has([semtic-error]:not(:empty)) [semtic-label],
2584
2825
  semtic-textarea:has([semtic-error]:not(:empty)) [semtic-label] {
2585
2826
  color: var(--skirbi-error-base, #b91c1c);
@@ -2594,6 +2835,7 @@
2594
2835
  }
2595
2836
 
2596
2837
  semtic-input:has([semtic-error]:not(:empty)),
2838
+ semtic-input-number:has([semtic-error]:not(:empty)),
2597
2839
  semtic-select:has([semtic-error]:not(:empty)),
2598
2840
  semtic-textarea:has([semtic-error]:not(:empty)) {
2599
2841
  background: color-mix(
@@ -2642,18 +2884,26 @@
2642
2884
  * to a select grew with the page's line-height while the select stayed
2643
2885
  * put, and the two ended up different heights for no visible reason.
2644
2886
  * Naming a value close to normal makes them agree, because the one that
2645
- * ignores it was going to land here anyway.
2646
- *
2647
- * Unverified. This was added for a select that looked shorter than the
2648
- * input beside it, but the cause turned out to be a font-size of
2649
- * 0.875rem landing on that control and not its neighbour, which is
2650
- * fixed separately. The reasoning above is sound on its own terms and
2651
- * the value is close enough to normal to be harmless, but nothing here
2652
- * has been shown to change a rendered height. Treat it as removable if
2653
- * it ever gets in the way rather than as load-bearing. */
2887
+ * ignores it was going to land here anyway. */
2654
2888
  line-height: var(--skirbi-control-line-height, 1.25);
2655
2889
  }
2656
2890
 
2891
+ /* Belt-and-suspenders on top of the shared padding/border/line-height
2892
+ * recipe above: a <select> is still a native, UA-drawn control, and
2893
+ * even with identical box-sizing/padding/border/line-height, browsers
2894
+ * are free to add their own fraction of a pixel to its content box
2895
+ * for the option list's internal metrics -- so it can render a hair
2896
+ * taller or shorter than an <input> sitting right next to it despite
2897
+ * every CSS value agreeing on paper. Stating the block-size outright,
2898
+ * from the exact same padding/border numbers as the recipe above,
2899
+ * removes that degree of freedom instead of chasing it per browser. */
2900
+ input[wc-control],
2901
+ select[wc-control] {
2902
+ block-size: calc(
2903
+ 1em * var(--skirbi-control-line-height, 1.25) + 2 * 0.6rem + 2px
2904
+ );
2905
+ }
2906
+
2657
2907
  /* Except the textarea, which is real running text: 1.25 is tight for
2658
2908
  * something that wraps. */
2659
2909
  textarea[wc-control] {
@@ -2688,6 +2938,46 @@
2688
2938
  padding-inline-end: var(--skirbi-clear-size, 2.25rem);
2689
2939
  }
2690
2940
 
2941
+ /* A number input has real step buttons on either side of the control,
2942
+ * rather than an overlaid clear button. Give the input the remaining
2943
+ * space explicitly and restore its normal horizontal padding; otherwise
2944
+ * its 100% width plus clear-button allowance leaves no visible text in a
2945
+ * compact field. */
2946
+ semtic-input-number [semtic-input-container] {
2947
+ display: grid;
2948
+ grid-template-columns: auto minmax(0, 1fr) auto;
2949
+ }
2950
+
2951
+ semtic-input-number [semtic-input-container] input[wc-control] {
2952
+ min-inline-size: 0;
2953
+ padding-inline: 0.75rem;
2954
+ }
2955
+
2956
+ semtic-input-number :is([semtic-decrement], [semtic-increment]) {
2957
+ display: inline-flex;
2958
+ align-items: center;
2959
+ justify-content: center;
2960
+ min-inline-size: var(--skirbi-number-step-size, 2rem);
2961
+ block-size: 100%;
2962
+ padding: 0;
2963
+ border: 1px solid var(--skirbi-secondary-main);
2964
+ background: var(--skirbi-secondary-light);
2965
+ color: var(--skirbi-secondary-dark);
2966
+ font: inherit;
2967
+ line-height: 1;
2968
+ cursor: pointer;
2969
+ }
2970
+
2971
+ semtic-input-number [semtic-decrement] {
2972
+ border-inline-end: 0;
2973
+ border-radius: 0.375rem 0 0 0.375rem;
2974
+ }
2975
+
2976
+ semtic-input-number [semtic-increment] {
2977
+ border-inline-start: 0;
2978
+ border-radius: 0 0.375rem 0.375rem 0;
2979
+ }
2980
+
2691
2981
  /* type="search" comes with a clear button of its own in WebKit and
2692
2982
  * Chromium, which [semtic-clear] would otherwise sit next to: two
2693
2983
  * crosses, one themed and one not, only one of which fires the events
@@ -2771,6 +3061,67 @@
2771
3061
  margin: 0;
2772
3062
  }
2773
3063
 
3064
+ /* File — the native control is two visually unrelated pieces (an
3065
+ * OS-themed "Choose File" button plus a plain filename readout).
3066
+ * Rather than styling the button as its own separate pill sitting
3067
+ * next to the field (which just reads as "a button and a box",
3068
+ * still two things), it's inset flush INTO the field -- no border,
3069
+ * no gap, no radius of its own -- so it reads as one control with
3070
+ * a segment inside it, the same way a search field's embedded icon
3071
+ * button does. overflow: hidden on the input
3072
+ * clips the (square-cornered) button to the input's own outer
3073
+ * radius instead of it poking a square corner out past the curve.
3074
+ */
3075
+ input[wc-control][type="file"] {
3076
+ display: flex;
3077
+ align-items: center;
3078
+ gap: 0.75rem;
3079
+ /* Block padding zeroed, not just inline-start -- the shared
3080
+ * recipe's own padding-block otherwise insets the flex content
3081
+ * area from the input's top/bottom edge, so align-self: stretch
3082
+ * below only ever reached that inset content box, not the
3083
+ * control's real edges. Invisible while the button matched the
3084
+ * input's own background; a solid gap once it didn't. */
3085
+ padding-block: 0;
3086
+ padding-inline-start: 0;
3087
+ overflow: hidden;
3088
+ cursor: pointer;
3089
+ }
3090
+
3091
+ input[wc-control][type="file"]::file-selector-button {
3092
+ align-self: stretch;
3093
+ block-size: 100%;
3094
+ /* margin-inline-end, not the container's `gap` -- the caption
3095
+ * text after the button is the browser's own internal content,
3096
+ * not a real flex item, so `gap` never reaches it. */
3097
+ margin: 0;
3098
+ margin-inline-end: 0.75rem;
3099
+ padding: 0 1rem;
3100
+ border: 0;
3101
+ border-radius: 0;
3102
+ /* Same colors as [lead] (the primary-action button recipe) --
3103
+ * a slight but deliberate offset from the input's own
3104
+ * background, rather than blending into it, so this segment
3105
+ * still reads as the one actionable part of the control. */
3106
+ background: var(--skirbi-button-lead-bg, var(--skirbi-primary-main));
3107
+ color: var(--skirbi-button-lead-color, var(--skirbi-primary-contrast));
3108
+ font: inherit;
3109
+ font-size: 0.75rem;
3110
+ font-weight: 700;
3111
+ letter-spacing: 0.05em;
3112
+ text-transform: uppercase;
3113
+ cursor: pointer;
3114
+ transition: background var(--skirbi-transition-duration, 180ms)
3115
+ var(--skirbi-transition-ease, ease);
3116
+ }
3117
+
3118
+ input[wc-control][type="file"]::file-selector-button:hover {
3119
+ background: var(--skirbi-button-lead-hover-bg,
3120
+ var(--skirbi-secondary-main));
3121
+ color: var(--skirbi-button-lead-hover-color,
3122
+ var(--skirbi-secondary-contrast));
3123
+ }
3124
+
2774
3125
  /* Select — swap the native chrome for a custom caret so it matches
2775
3126
  * the rest of the input recipe instead of the OS-drawn widget.
2776
3127
  */
@@ -3781,6 +4132,56 @@
3781
4132
  }
3782
4133
  }
3783
4134
 
4135
+ /**
4136
+ * @styles pinta.semtic-tabbed Semtic tabbed
4137
+ * @description
4138
+ *
4139
+ * Default recipe for `<semtic-tabbed>`. Styles the generated tab strip
4140
+ * (a `<nav role="tablist">` of `<button role="tab">`s) and the active-tab
4141
+ * indicator. `<semtic-tab>` panel visibility itself is the native
4142
+ * `hidden` attribute, not styled here -- it works with no CSS at all.
4143
+ */
4144
+
4145
+ [skirbi-theme] {
4146
+ semtic-tabbed {
4147
+ display: block;
4148
+
4149
+ /* Same chrome as a form control's own box (form-controls' shared
4150
+ * input[wc-control]/select[wc-control]/textarea[wc-control] recipe)
4151
+ * so the tab strip reads as part of the same control language,
4152
+ * rather than an underline treatment invented just for this one
4153
+ * component. */
4154
+ nav[role='tablist'] {
4155
+ display: inline-flex;
4156
+ gap: 0.25rem;
4157
+ padding: 0.25rem;
4158
+ margin-block-end: 1rem;
4159
+ border: 1px solid var(--skirbi-surface-border-final);
4160
+ border-radius: 0.5rem;
4161
+ background: var(--skirbi-secondary-light);
4162
+ }
4163
+
4164
+ nav[role='tablist'] button {
4165
+ padding: 0.5rem 1rem;
4166
+ border: 1px solid transparent;
4167
+ border-radius: 0.375rem;
4168
+ background: none;
4169
+ color: var(--skirbi-secondary-dark);
4170
+ font: inherit;
4171
+ font-weight: 600;
4172
+ cursor: pointer;
4173
+ transition:
4174
+ background var(--skirbi-transition-duration, 180ms) var(--skirbi-transition-ease, ease),
4175
+ color var(--skirbi-transition-duration, 180ms) var(--skirbi-transition-ease, ease);
4176
+
4177
+ &[current] {
4178
+ background: var(--skirbi-button-lead-bg, var(--skirbi-primary-main));
4179
+ color: var(--skirbi-button-lead-color, var(--skirbi-primary-contrast));
4180
+ }
4181
+ }
4182
+ }
4183
+ }
4184
+
3784
4185
  /**
3785
4186
  * @styles pinta.semtic-article-card Semtic article card
3786
4187
  * @description
@@ -3973,6 +4374,13 @@
3973
4374
  grid-area: aside;
3974
4375
  min-inline-size: 0;
3975
4376
  }
4377
+
4378
+ @media (max-width: 48rem) {
4379
+ grid-template-areas:
4380
+ "content"
4381
+ "aside";
4382
+ grid-template-columns: minmax(0, 1fr);
4383
+ }
3976
4384
  }
3977
4385
  }
3978
4386
 
@@ -4033,7 +4441,7 @@
4033
4441
  min-inline-size: 0;
4034
4442
  }
4035
4443
 
4036
- @media (max-width: 768px) {
4444
+ @media (max-width: 48rem) {
4037
4445
  position: static;
4038
4446
  grid-template-areas:
4039
4447
  "content"
@@ -4047,6 +4455,41 @@
4047
4455
  }
4048
4456
  }
4049
4457
 
4458
+ /* A <semtic-sidenav> used as a diptych/triptych aside is laid out by
4459
+ * that grid, not by its own off-canvas drawer recipe -- that recipe
4460
+ * hides it behind position: fixed + a translated-off-screen <nav>
4461
+ * below 64rem with nothing here to ever add [semtic-sidenav-open], so
4462
+ * without this override it simply vanishes well before either grid's
4463
+ * own stacking breakpoint even engages. Scoped to these two grids'
4464
+ * aside slots specifically, not semtic-sidenav generally -- a
4465
+ * standalone sidenav (its usual off-canvas-on-mobile use) keeps its
4466
+ * own recipe.
4467
+ *
4468
+ * `> nav` also drops its own fixed --skirbi-sidenav-width (16rem) for
4469
+ * 100%, filling the grid track instead: that width is narrower than
4470
+ * 16rem here (12rem's worth of grid track, see
4471
+ * override-pinta.css's --skirbi-diptych-aside), and nothing clips the
4472
+ * difference below 64rem, so the nav visibly spilled into the content
4473
+ * column by the difference. Above 64rem the desktop sticky recipe's
4474
+ * own `overflow-y: auto` happened to mask it too, by the "overflow-x
4475
+ * becomes auto when overflow-y isn't visible" rule -- accidental, not
4476
+ * a fix, and gone the moment overflow-y changes for any other reason. */
4477
+ [skirbi-theme] {
4478
+ semtic-grid[diptych] > :nth-child(2):is(semtic-sidenav),
4479
+ semtic-grid[triptych] > :nth-child(2):is(semtic-sidenav),
4480
+ semtic-grid[triptych] > :nth-child(3):is(semtic-sidenav) {
4481
+ position: static;
4482
+ height: auto;
4483
+ pointer-events: auto;
4484
+
4485
+ > nav {
4486
+ position: static;
4487
+ transform: none;
4488
+ width: 100%;
4489
+ }
4490
+ }
4491
+ }
4492
+
4050
4493
  /**
4051
4494
  * @styles pinta.heading-quote Heading quote
4052
4495
  * @description
@@ -4102,13 +4545,13 @@
4102
4545
  padding: clamp(1rem, 2vw, 1.75rem);
4103
4546
  }
4104
4547
 
4105
- @media (max-width: 60rem) {
4548
+ @media (max-width: 64rem) {
4106
4549
  semtic-grid[layout] {
4107
4550
  grid-template-columns: repeat(2, minmax(0, 1fr));
4108
4551
  }
4109
4552
  }
4110
4553
 
4111
- @media (max-width: 36rem) {
4554
+ @media (max-width: 48rem) {
4112
4555
  semtic-grid[layout] {
4113
4556
  grid-template-columns: 1fr;
4114
4557
  }
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
- "version": "0.0.31"
35
+ "version": "0.0.32"
36
36
  }