@skirbi/pinta 0.0.31 → 0.0.33
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 +45 -0
- package/README.md +38 -0
- package/lib/index.mjs +1 -1
- package/lib/themes/pinta.css +519 -31
- package/package.json +1 -1
package/Changes
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
Revision history for @skirbi/pinta
|
|
2
2
|
|
|
3
|
+
0.0.33 2026-08-26 00:11:19Z
|
|
4
|
+
|
|
5
|
+
* Checkboxes and radios are a fixed fraction of a field, and the fraction is
|
|
6
|
+
2/3.5.
|
|
7
|
+
|
|
8
|
+
* --skirbi-field-height, one token for the size of a field. It is the height
|
|
9
|
+
of a text input and a select, and the choice controls take their fraction
|
|
10
|
+
from it, so taller fields no longer mean sizing the checkboxes and radios
|
|
11
|
+
separately. Unset it resolves to the padding, border and line-height of the
|
|
12
|
+
shared control recipe. The textarea is left out: it is running text sized by
|
|
13
|
+
its rows. --skirbi-choice-size still overrides the choice controls on their
|
|
14
|
+
own, and --skirbi-choice-size-final is the resolved value the tick and the
|
|
15
|
+
dot are scaled from.
|
|
16
|
+
|
|
17
|
+
* --skirbi-control-line-height is deprecated, renamed to
|
|
18
|
+
--skirbi-field-line-height. It still works and is still read as the
|
|
19
|
+
fallback, so nothing breaks, but it will go in a later release. "control"
|
|
20
|
+
came from the [wc-control] attribute these selectors match, which is not a
|
|
21
|
+
connection a normal person would make.
|
|
22
|
+
|
|
23
|
+
0.0.32 2026-08-25 17:39:42Z
|
|
24
|
+
|
|
25
|
+
* semtic-grid[diptych] and [triptych] now stack to a single column below
|
|
26
|
+
48rem, matching each other (triptych already did this; diptych didn't).
|
|
27
|
+
A nested semtic-sidenav used as either grid's aside no longer disappears
|
|
28
|
+
below 64rem (its own off-canvas drawer breakpoint) or overflows into the
|
|
29
|
+
content column when its own width doesn't match the grid track.
|
|
30
|
+
|
|
31
|
+
* Unified the mobile/tablet breakpoints used across semtic-grid and the
|
|
32
|
+
catalogue grid to 48rem/64rem. See the new "Breakpoints" doc block at
|
|
33
|
+
the top of pinta.css.
|
|
34
|
+
|
|
35
|
+
* semtic-nav has a built-in mobile hamburger toggle: below 48rem it shows
|
|
36
|
+
a toggle button and the link list collapses into a 3-column dropdown,
|
|
37
|
+
sized to its own content and centered rather than stretched full-width.
|
|
38
|
+
hamburger="left" (default) or hamburger="right" picks which side of the
|
|
39
|
+
bar the toggle sits on.
|
|
40
|
+
|
|
41
|
+
* semtic-sidenav items always show the "›" marker now, not just nested
|
|
42
|
+
children. A sidenav link always leads somewhere, unlike a topbar link
|
|
43
|
+
which only gets the marker in its own mobile dropdown. The character is
|
|
44
|
+
now the `--skirbi-nav-marker` token, shared by both.
|
|
45
|
+
|
|
46
|
+
*
|
|
47
|
+
|
|
3
48
|
0.0.31 2026-08-15 04:29:13Z
|
|
4
49
|
|
|
5
50
|
* Align checkbox/radio colors with the text-input color scheme and make
|
package/README.md
CHANGED
|
@@ -312,6 +312,44 @@ Typography is opt-in and token-driven.
|
|
|
312
312
|
```
|
|
313
313
|
|
|
314
314
|
|
|
315
|
+
# Form control tokens
|
|
316
|
+
|
|
317
|
+
One token sizes a field:
|
|
318
|
+
|
|
319
|
+
```css
|
|
320
|
+
--skirbi-field-height
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
It is the height of a text input and of a select, and the checkboxes and
|
|
324
|
+
radios take 2/3.5 of it, so they sit well inside the height of the field
|
|
325
|
+
beside them rather than reading as a big empty box. A field is tall mostly
|
|
326
|
+
through padding, which a choice control does not have, so a ratio near 1
|
|
327
|
+
would track padding the box is not carrying. Set it once and all four
|
|
328
|
+
follow.
|
|
329
|
+
|
|
330
|
+
```css
|
|
331
|
+
[skirbi-theme] {
|
|
332
|
+
--skirbi-field-height: 3.5rem;
|
|
333
|
+
}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
Unset, it works out to the padding, border and line-height of the shared
|
|
337
|
+
control recipe, which is what these controls have always measured. The
|
|
338
|
+
textarea is left out on purpose: it is running text sized by its rows.
|
|
339
|
+
|
|
340
|
+
Two knobs remain for the exceptions:
|
|
341
|
+
|
|
342
|
+
```css
|
|
343
|
+
--skirbi-choice-size
|
|
344
|
+
--skirbi-field-line-height
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
`--skirbi-choice-size` sizes the choice controls directly, for when 2/3.5 of
|
|
348
|
+
the field is not what you want. Either way the result lands in
|
|
349
|
+
`--skirbi-choice-size-final`, which is what the tick and the radio dot are
|
|
350
|
+
scaled from, so they follow the box whichever way it was set.
|
|
351
|
+
|
|
352
|
+
|
|
315
353
|
# Component recipes
|
|
316
354
|
|
|
317
355
|
Pinta ships light recipes for Semtic elements.
|
package/lib/index.mjs
CHANGED
package/lib/themes/pinta.css
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
1896
|
-
|
|
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;
|
|
1897
2083
|
}
|
|
1898
2084
|
|
|
1899
|
-
semtic-nav [semtic-nav-
|
|
1900
|
-
|
|
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));
|
|
2105
|
+
}
|
|
2106
|
+
|
|
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,16 +2884,50 @@
|
|
|
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.
|
|
2887
|
+
* ignores it was going to land here anyway. */
|
|
2888
|
+
/* --skirbi-control-line-height is the old name for this and still
|
|
2889
|
+
* works, deprecated: "control" came from the [wc-control] attribute the
|
|
2890
|
+
* selectors match, which is not something a theme file makes obvious. */
|
|
2891
|
+
line-height: var(
|
|
2892
|
+
--skirbi-field-line-height,
|
|
2893
|
+
var(--skirbi-control-line-height, 1.25)
|
|
2894
|
+
);
|
|
2895
|
+
|
|
2896
|
+
/* The height a field ends up with, resolved once. Read by the block-size
|
|
2897
|
+
* below and by the choice controls, which take a fraction of it: they
|
|
2898
|
+
* match this selector as well, so they inherit the same answer rather
|
|
2899
|
+
* than recomputing it. em resolves per element, and these all take
|
|
2900
|
+
* `font: inherit` above, so it is the same number either way. */
|
|
2901
|
+
--skirbi-field-height-final: var(
|
|
2902
|
+
--skirbi-field-height,
|
|
2903
|
+
calc(
|
|
2904
|
+
1em * var(--skirbi-field-line-height, var(--skirbi-control-line-height, 1.25))
|
|
2905
|
+
+ 2 * 0.6rem + 2px
|
|
2906
|
+
)
|
|
2907
|
+
);
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
/* Belt-and-suspenders on top of the shared padding/border/line-height
|
|
2911
|
+
* recipe above: a <select> is still a native, UA-drawn control, and
|
|
2912
|
+
* even with identical box-sizing/padding/border/line-height, browsers
|
|
2913
|
+
* are free to add their own fraction of a pixel to its content box
|
|
2914
|
+
* for the option list's internal metrics -- so it can render a hair
|
|
2915
|
+
* taller or shorter than an <input> sitting right next to it despite
|
|
2916
|
+
* every CSS value agreeing on paper. Stating the block-size outright,
|
|
2917
|
+
* from the exact same padding/border numbers as the recipe above,
|
|
2918
|
+
* removes that degree of freedom instead of chasing it per browser. */
|
|
2919
|
+
input[wc-control],
|
|
2920
|
+
select[wc-control] {
|
|
2921
|
+
/* --skirbi-field-height is the one number that sizes a field. It is the
|
|
2922
|
+
* height of a text input and a select, and the choice controls derive
|
|
2923
|
+
* theirs from it further down, so a theme that wants taller fields sets
|
|
2924
|
+
* this and the checkboxes and radios follow. Unset, it works out to the
|
|
2925
|
+
* padding, border and line-height stated above, which is what these
|
|
2926
|
+
* controls have always measured.
|
|
2646
2927
|
*
|
|
2647
|
-
*
|
|
2648
|
-
*
|
|
2649
|
-
|
|
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. */
|
|
2654
|
-
line-height: var(--skirbi-control-line-height, 1.25);
|
|
2928
|
+
* Not the textarea: that is running text sized by its rows, and pinning
|
|
2929
|
+
* it to a single-line height would defeat the point of one. */
|
|
2930
|
+
block-size: var(--skirbi-field-height-final);
|
|
2655
2931
|
}
|
|
2656
2932
|
|
|
2657
2933
|
/* Except the textarea, which is real running text: 1.25 is tight for
|
|
@@ -2688,6 +2964,46 @@
|
|
|
2688
2964
|
padding-inline-end: var(--skirbi-clear-size, 2.25rem);
|
|
2689
2965
|
}
|
|
2690
2966
|
|
|
2967
|
+
/* A number input has real step buttons on either side of the control,
|
|
2968
|
+
* rather than an overlaid clear button. Give the input the remaining
|
|
2969
|
+
* space explicitly and restore its normal horizontal padding; otherwise
|
|
2970
|
+
* its 100% width plus clear-button allowance leaves no visible text in a
|
|
2971
|
+
* compact field. */
|
|
2972
|
+
semtic-input-number [semtic-input-container] {
|
|
2973
|
+
display: grid;
|
|
2974
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
semtic-input-number [semtic-input-container] input[wc-control] {
|
|
2978
|
+
min-inline-size: 0;
|
|
2979
|
+
padding-inline: 0.75rem;
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
semtic-input-number :is([semtic-decrement], [semtic-increment]) {
|
|
2983
|
+
display: inline-flex;
|
|
2984
|
+
align-items: center;
|
|
2985
|
+
justify-content: center;
|
|
2986
|
+
min-inline-size: var(--skirbi-number-step-size, 2rem);
|
|
2987
|
+
block-size: 100%;
|
|
2988
|
+
padding: 0;
|
|
2989
|
+
border: 1px solid var(--skirbi-secondary-main);
|
|
2990
|
+
background: var(--skirbi-secondary-light);
|
|
2991
|
+
color: var(--skirbi-secondary-dark);
|
|
2992
|
+
font: inherit;
|
|
2993
|
+
line-height: 1;
|
|
2994
|
+
cursor: pointer;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
semtic-input-number [semtic-decrement] {
|
|
2998
|
+
border-inline-end: 0;
|
|
2999
|
+
border-radius: 0.375rem 0 0 0.375rem;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
semtic-input-number [semtic-increment] {
|
|
3003
|
+
border-inline-start: 0;
|
|
3004
|
+
border-radius: 0 0.375rem 0.375rem 0;
|
|
3005
|
+
}
|
|
3006
|
+
|
|
2691
3007
|
/* type="search" comes with a clear button of its own in WebKit and
|
|
2692
3008
|
* Chromium, which [semtic-clear] would otherwise sit next to: two
|
|
2693
3009
|
* crosses, one themed and one not, only one of which fires the events
|
|
@@ -2771,6 +3087,67 @@
|
|
|
2771
3087
|
margin: 0;
|
|
2772
3088
|
}
|
|
2773
3089
|
|
|
3090
|
+
/* File — the native control is two visually unrelated pieces (an
|
|
3091
|
+
* OS-themed "Choose File" button plus a plain filename readout).
|
|
3092
|
+
* Rather than styling the button as its own separate pill sitting
|
|
3093
|
+
* next to the field (which just reads as "a button and a box",
|
|
3094
|
+
* still two things), it's inset flush INTO the field -- no border,
|
|
3095
|
+
* no gap, no radius of its own -- so it reads as one control with
|
|
3096
|
+
* a segment inside it, the same way a search field's embedded icon
|
|
3097
|
+
* button does. overflow: hidden on the input
|
|
3098
|
+
* clips the (square-cornered) button to the input's own outer
|
|
3099
|
+
* radius instead of it poking a square corner out past the curve.
|
|
3100
|
+
*/
|
|
3101
|
+
input[wc-control][type="file"] {
|
|
3102
|
+
display: flex;
|
|
3103
|
+
align-items: center;
|
|
3104
|
+
gap: 0.75rem;
|
|
3105
|
+
/* Block padding zeroed, not just inline-start -- the shared
|
|
3106
|
+
* recipe's own padding-block otherwise insets the flex content
|
|
3107
|
+
* area from the input's top/bottom edge, so align-self: stretch
|
|
3108
|
+
* below only ever reached that inset content box, not the
|
|
3109
|
+
* control's real edges. Invisible while the button matched the
|
|
3110
|
+
* input's own background; a solid gap once it didn't. */
|
|
3111
|
+
padding-block: 0;
|
|
3112
|
+
padding-inline-start: 0;
|
|
3113
|
+
overflow: hidden;
|
|
3114
|
+
cursor: pointer;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
input[wc-control][type="file"]::file-selector-button {
|
|
3118
|
+
align-self: stretch;
|
|
3119
|
+
block-size: 100%;
|
|
3120
|
+
/* margin-inline-end, not the container's `gap` -- the caption
|
|
3121
|
+
* text after the button is the browser's own internal content,
|
|
3122
|
+
* not a real flex item, so `gap` never reaches it. */
|
|
3123
|
+
margin: 0;
|
|
3124
|
+
margin-inline-end: 0.75rem;
|
|
3125
|
+
padding: 0 1rem;
|
|
3126
|
+
border: 0;
|
|
3127
|
+
border-radius: 0;
|
|
3128
|
+
/* Same colors as [lead] (the primary-action button recipe) --
|
|
3129
|
+
* a slight but deliberate offset from the input's own
|
|
3130
|
+
* background, rather than blending into it, so this segment
|
|
3131
|
+
* still reads as the one actionable part of the control. */
|
|
3132
|
+
background: var(--skirbi-button-lead-bg, var(--skirbi-primary-main));
|
|
3133
|
+
color: var(--skirbi-button-lead-color, var(--skirbi-primary-contrast));
|
|
3134
|
+
font: inherit;
|
|
3135
|
+
font-size: 0.75rem;
|
|
3136
|
+
font-weight: 700;
|
|
3137
|
+
letter-spacing: 0.05em;
|
|
3138
|
+
text-transform: uppercase;
|
|
3139
|
+
cursor: pointer;
|
|
3140
|
+
transition: background var(--skirbi-transition-duration, 180ms)
|
|
3141
|
+
var(--skirbi-transition-ease, ease);
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
input[wc-control][type="file"]::file-selector-button:hover {
|
|
3145
|
+
background: var(--skirbi-button-lead-hover-bg,
|
|
3146
|
+
var(--skirbi-secondary-main));
|
|
3147
|
+
color: var(--skirbi-button-lead-hover-color,
|
|
3148
|
+
var(--skirbi-secondary-contrast));
|
|
3149
|
+
}
|
|
3150
|
+
|
|
2774
3151
|
/* Select — swap the native chrome for a custom caret so it matches
|
|
2775
3152
|
* the rest of the input recipe instead of the OS-drawn widget.
|
|
2776
3153
|
*/
|
|
@@ -2818,10 +3195,29 @@
|
|
|
2818
3195
|
appearance: none;
|
|
2819
3196
|
-webkit-appearance: none;
|
|
2820
3197
|
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
3198
|
+
/* A fraction of a field, so a checkbox sits well inside the height of
|
|
3199
|
+
* the input beside it instead of reading as a big empty box. 2/3.5 is
|
|
3200
|
+
* that fraction because a field is tall mostly through padding, which a
|
|
3201
|
+
* choice control does not have: a ratio near 1 tracks padding the box is
|
|
3202
|
+
* not carrying and overshoots as fields get airier. Against the default
|
|
3203
|
+
* field it lands a little under 24px, and against a 3.5rem one it is
|
|
3204
|
+
* 2rem.
|
|
3205
|
+
*
|
|
3206
|
+
* The ratio is taken from the same expression the field height comes
|
|
3207
|
+
* from, so setting --skirbi-field-height moves both together and the two
|
|
3208
|
+
* stay in proportion. --skirbi-choice-size overrides the result outright.
|
|
3209
|
+
*
|
|
3210
|
+
* Resolved once here and read back everywhere below, including from the
|
|
3211
|
+
* ::before that draws the tick and the dot, which inherits it. */
|
|
3212
|
+
--skirbi-choice-size-final: var(
|
|
3213
|
+
--skirbi-choice-size,
|
|
3214
|
+
calc(var(--skirbi-field-height-final) * 2 / 3.5)
|
|
3215
|
+
);
|
|
3216
|
+
|
|
3217
|
+
inline-size: var(--skirbi-choice-size-final);
|
|
3218
|
+
block-size: var(--skirbi-choice-size-final);
|
|
3219
|
+
min-inline-size: var(--skirbi-choice-size-final);
|
|
3220
|
+
min-block-size: var(--skirbi-choice-size-final);
|
|
2825
3221
|
|
|
2826
3222
|
margin: 0;
|
|
2827
3223
|
padding: 0;
|
|
@@ -2875,7 +3271,7 @@
|
|
|
2875
3271
|
) input[wc-control][type="checkbox"] {
|
|
2876
3272
|
border-radius: var(
|
|
2877
3273
|
--skirbi-choice-radius,
|
|
2878
|
-
calc(var(--skirbi-choice-size
|
|
3274
|
+
calc(var(--skirbi-choice-size-final) * 0.267)
|
|
2879
3275
|
);
|
|
2880
3276
|
}
|
|
2881
3277
|
|
|
@@ -2894,12 +3290,12 @@
|
|
|
2894
3290
|
semtic-checkbox
|
|
2895
3291
|
) input[wc-control][type="checkbox"]::before {
|
|
2896
3292
|
content: "";
|
|
2897
|
-
inline-size: calc(var(--skirbi-choice-size
|
|
2898
|
-
block-size: calc(var(--skirbi-choice-size
|
|
3293
|
+
inline-size: calc(var(--skirbi-choice-size-final) * 0.373);
|
|
3294
|
+
block-size: calc(var(--skirbi-choice-size-final) * 0.693);
|
|
2899
3295
|
|
|
2900
3296
|
border: solid currentColor;
|
|
2901
|
-
border-width: 0 calc(var(--skirbi-choice-size
|
|
2902
|
-
calc(var(--skirbi-choice-size
|
|
3297
|
+
border-width: 0 calc(var(--skirbi-choice-size-final) * 0.147)
|
|
3298
|
+
calc(var(--skirbi-choice-size-final) * 0.147) 0;
|
|
2903
3299
|
|
|
2904
3300
|
transform: rotate(45deg) scale(0);
|
|
2905
3301
|
transform-origin: center;
|
|
@@ -2921,8 +3317,8 @@
|
|
|
2921
3317
|
semtic-radio
|
|
2922
3318
|
) input[wc-control][type="radio"]::before {
|
|
2923
3319
|
content: "";
|
|
2924
|
-
inline-size: calc(var(--skirbi-choice-size
|
|
2925
|
-
block-size: calc(var(--skirbi-choice-size
|
|
3320
|
+
inline-size: calc(var(--skirbi-choice-size-final) * 0.56);
|
|
3321
|
+
block-size: calc(var(--skirbi-choice-size-final) * 0.56);
|
|
2926
3322
|
border-radius: 50%;
|
|
2927
3323
|
background: currentColor;
|
|
2928
3324
|
|
|
@@ -3781,6 +4177,56 @@
|
|
|
3781
4177
|
}
|
|
3782
4178
|
}
|
|
3783
4179
|
|
|
4180
|
+
/**
|
|
4181
|
+
* @styles pinta.semtic-tabbed Semtic tabbed
|
|
4182
|
+
* @description
|
|
4183
|
+
*
|
|
4184
|
+
* Default recipe for `<semtic-tabbed>`. Styles the generated tab strip
|
|
4185
|
+
* (a `<nav role="tablist">` of `<button role="tab">`s) and the active-tab
|
|
4186
|
+
* indicator. `<semtic-tab>` panel visibility itself is the native
|
|
4187
|
+
* `hidden` attribute, not styled here -- it works with no CSS at all.
|
|
4188
|
+
*/
|
|
4189
|
+
|
|
4190
|
+
[skirbi-theme] {
|
|
4191
|
+
semtic-tabbed {
|
|
4192
|
+
display: block;
|
|
4193
|
+
|
|
4194
|
+
/* Same chrome as a form control's own box (form-controls' shared
|
|
4195
|
+
* input[wc-control]/select[wc-control]/textarea[wc-control] recipe)
|
|
4196
|
+
* so the tab strip reads as part of the same control language,
|
|
4197
|
+
* rather than an underline treatment invented just for this one
|
|
4198
|
+
* component. */
|
|
4199
|
+
nav[role='tablist'] {
|
|
4200
|
+
display: inline-flex;
|
|
4201
|
+
gap: 0.25rem;
|
|
4202
|
+
padding: 0.25rem;
|
|
4203
|
+
margin-block-end: 1rem;
|
|
4204
|
+
border: 1px solid var(--skirbi-surface-border-final);
|
|
4205
|
+
border-radius: 0.5rem;
|
|
4206
|
+
background: var(--skirbi-secondary-light);
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
nav[role='tablist'] button {
|
|
4210
|
+
padding: 0.5rem 1rem;
|
|
4211
|
+
border: 1px solid transparent;
|
|
4212
|
+
border-radius: 0.375rem;
|
|
4213
|
+
background: none;
|
|
4214
|
+
color: var(--skirbi-secondary-dark);
|
|
4215
|
+
font: inherit;
|
|
4216
|
+
font-weight: 600;
|
|
4217
|
+
cursor: pointer;
|
|
4218
|
+
transition:
|
|
4219
|
+
background var(--skirbi-transition-duration, 180ms) var(--skirbi-transition-ease, ease),
|
|
4220
|
+
color var(--skirbi-transition-duration, 180ms) var(--skirbi-transition-ease, ease);
|
|
4221
|
+
|
|
4222
|
+
&[current] {
|
|
4223
|
+
background: var(--skirbi-button-lead-bg, var(--skirbi-primary-main));
|
|
4224
|
+
color: var(--skirbi-button-lead-color, var(--skirbi-primary-contrast));
|
|
4225
|
+
}
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
|
|
3784
4230
|
/**
|
|
3785
4231
|
* @styles pinta.semtic-article-card Semtic article card
|
|
3786
4232
|
* @description
|
|
@@ -3973,6 +4419,13 @@
|
|
|
3973
4419
|
grid-area: aside;
|
|
3974
4420
|
min-inline-size: 0;
|
|
3975
4421
|
}
|
|
4422
|
+
|
|
4423
|
+
@media (max-width: 48rem) {
|
|
4424
|
+
grid-template-areas:
|
|
4425
|
+
"content"
|
|
4426
|
+
"aside";
|
|
4427
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4428
|
+
}
|
|
3976
4429
|
}
|
|
3977
4430
|
}
|
|
3978
4431
|
|
|
@@ -4033,7 +4486,7 @@
|
|
|
4033
4486
|
min-inline-size: 0;
|
|
4034
4487
|
}
|
|
4035
4488
|
|
|
4036
|
-
@media (max-width:
|
|
4489
|
+
@media (max-width: 48rem) {
|
|
4037
4490
|
position: static;
|
|
4038
4491
|
grid-template-areas:
|
|
4039
4492
|
"content"
|
|
@@ -4047,6 +4500,41 @@
|
|
|
4047
4500
|
}
|
|
4048
4501
|
}
|
|
4049
4502
|
|
|
4503
|
+
/* A <semtic-sidenav> used as a diptych/triptych aside is laid out by
|
|
4504
|
+
* that grid, not by its own off-canvas drawer recipe -- that recipe
|
|
4505
|
+
* hides it behind position: fixed + a translated-off-screen <nav>
|
|
4506
|
+
* below 64rem with nothing here to ever add [semtic-sidenav-open], so
|
|
4507
|
+
* without this override it simply vanishes well before either grid's
|
|
4508
|
+
* own stacking breakpoint even engages. Scoped to these two grids'
|
|
4509
|
+
* aside slots specifically, not semtic-sidenav generally -- a
|
|
4510
|
+
* standalone sidenav (its usual off-canvas-on-mobile use) keeps its
|
|
4511
|
+
* own recipe.
|
|
4512
|
+
*
|
|
4513
|
+
* `> nav` also drops its own fixed --skirbi-sidenav-width (16rem) for
|
|
4514
|
+
* 100%, filling the grid track instead: that width is narrower than
|
|
4515
|
+
* 16rem here (12rem's worth of grid track, see
|
|
4516
|
+
* override-pinta.css's --skirbi-diptych-aside), and nothing clips the
|
|
4517
|
+
* difference below 64rem, so the nav visibly spilled into the content
|
|
4518
|
+
* column by the difference. Above 64rem the desktop sticky recipe's
|
|
4519
|
+
* own `overflow-y: auto` happened to mask it too, by the "overflow-x
|
|
4520
|
+
* becomes auto when overflow-y isn't visible" rule -- accidental, not
|
|
4521
|
+
* a fix, and gone the moment overflow-y changes for any other reason. */
|
|
4522
|
+
[skirbi-theme] {
|
|
4523
|
+
semtic-grid[diptych] > :nth-child(2):is(semtic-sidenav),
|
|
4524
|
+
semtic-grid[triptych] > :nth-child(2):is(semtic-sidenav),
|
|
4525
|
+
semtic-grid[triptych] > :nth-child(3):is(semtic-sidenav) {
|
|
4526
|
+
position: static;
|
|
4527
|
+
height: auto;
|
|
4528
|
+
pointer-events: auto;
|
|
4529
|
+
|
|
4530
|
+
> nav {
|
|
4531
|
+
position: static;
|
|
4532
|
+
transform: none;
|
|
4533
|
+
width: 100%;
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4536
|
+
}
|
|
4537
|
+
|
|
4050
4538
|
/**
|
|
4051
4539
|
* @styles pinta.heading-quote Heading quote
|
|
4052
4540
|
* @description
|
|
@@ -4102,13 +4590,13 @@
|
|
|
4102
4590
|
padding: clamp(1rem, 2vw, 1.75rem);
|
|
4103
4591
|
}
|
|
4104
4592
|
|
|
4105
|
-
@media (max-width:
|
|
4593
|
+
@media (max-width: 64rem) {
|
|
4106
4594
|
semtic-grid[layout] {
|
|
4107
4595
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4108
4596
|
}
|
|
4109
4597
|
}
|
|
4110
4598
|
|
|
4111
|
-
@media (max-width:
|
|
4599
|
+
@media (max-width: 48rem) {
|
|
4112
4600
|
semtic-grid[layout] {
|
|
4113
4601
|
grid-template-columns: 1fr;
|
|
4114
4602
|
}
|
package/package.json
CHANGED