@skirbi/pinta 0.0.34 → 0.0.36
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 +19 -0
- package/lib/index.mjs +1 -1
- package/lib/themes/pinta.css +30 -15
- package/package.json +1 -1
package/Changes
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
Revision history for @skirbi/pinta
|
|
2
2
|
|
|
3
|
+
0.0.36 2026-09-09 15:34:20Z
|
|
4
|
+
|
|
5
|
+
* A hero-image="banner" semtic-nav-avatar no longer gets squashed into a
|
|
6
|
+
tiny square on mobile (the shared avatar aspect-ratio: 1/1 rule caught
|
|
7
|
+
it too) or clipped past its grid column. It keeps its own aspect
|
|
8
|
+
ratio via object-fit: contain, and its semtic-nav-brand is allowed to
|
|
9
|
+
shrink to make room for it.
|
|
10
|
+
|
|
11
|
+
* semtic-nav's mobile hamburger toggle now defaults to the right side of
|
|
12
|
+
the bar, with the brand on the left. hamburger="left" opts back into
|
|
13
|
+
the old default; hamburger="right" is now a no-op kept for compat.
|
|
14
|
+
|
|
15
|
+
0.0.35 2026-09-09 13:39:26Z
|
|
16
|
+
|
|
17
|
+
* The shared semtic-nav-item/-group link recipe no longer hardcodes
|
|
18
|
+
sidebar-style white-space/width. semtic-sidenav keeps full-width wrapping
|
|
19
|
+
links; semtic-nav (the topbar) now gets nowrap, content-sized links
|
|
20
|
+
instead, since both share the same item/group elements.
|
|
21
|
+
|
|
3
22
|
0.0.34 2026-09-09 05:03:02Z
|
|
4
23
|
|
|
5
24
|
* :user-invalid fields are styled, so a field failing the browser's own
|
package/lib/index.mjs
CHANGED
package/lib/themes/pinta.css
CHANGED
|
@@ -1865,7 +1865,7 @@
|
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
1867
|
@media (max-width: 36rem) {
|
|
1868
|
-
& semtic-nav [semtic-nav-avatar] {
|
|
1868
|
+
& semtic-nav [semtic-nav-avatar]:not([hero-image='banner']) {
|
|
1869
1869
|
aspect-ratio: 1/1;
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
@@ -1873,10 +1873,17 @@
|
|
|
1873
1873
|
semtic-nav [semtic-nav-avatar][hero-image='banner'] {
|
|
1874
1874
|
width: auto;
|
|
1875
1875
|
height: clamp(2rem, 5vw, 4rem);
|
|
1876
|
+
max-width: 100%;
|
|
1876
1877
|
max-height: 12rem;
|
|
1878
|
+
object-fit: contain;
|
|
1877
1879
|
border-radius: 0;
|
|
1878
1880
|
}
|
|
1879
1881
|
|
|
1882
|
+
semtic-nav:has([semtic-nav-avatar][hero-image='banner']) [semtic-nav-brand] {
|
|
1883
|
+
flex-shrink: 1;
|
|
1884
|
+
min-width: 0;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1880
1887
|
semtic-nav [semtic-nav-title] {
|
|
1881
1888
|
font-family: var(--skirbi-font-headers);
|
|
1882
1889
|
font-weight: 700;
|
|
@@ -1981,22 +1988,22 @@
|
|
|
1981
1988
|
@media (max-width: 48rem) {
|
|
1982
1989
|
semtic-nav > nav {
|
|
1983
1990
|
display: grid;
|
|
1984
|
-
grid-template-columns: auto
|
|
1991
|
+
grid-template-columns: 1fr auto;
|
|
1985
1992
|
align-items: center;
|
|
1986
1993
|
}
|
|
1987
1994
|
|
|
1988
|
-
semtic-nav[hamburger="
|
|
1989
|
-
grid-template-columns: 1fr
|
|
1995
|
+
semtic-nav[hamburger="left"] > nav {
|
|
1996
|
+
grid-template-columns: auto 1fr;
|
|
1990
1997
|
}
|
|
1991
1998
|
|
|
1992
1999
|
semtic-nav > nav > [semtic-nav-toggle] {
|
|
1993
2000
|
display: inline-flex;
|
|
1994
|
-
grid-column:
|
|
2001
|
+
grid-column: 2;
|
|
1995
2002
|
grid-row: 1;
|
|
1996
2003
|
}
|
|
1997
2004
|
|
|
1998
|
-
semtic-nav[hamburger="
|
|
1999
|
-
grid-column:
|
|
2005
|
+
semtic-nav[hamburger="left"] > nav > [semtic-nav-toggle] {
|
|
2006
|
+
grid-column: 1;
|
|
2000
2007
|
}
|
|
2001
2008
|
|
|
2002
2009
|
semtic-nav:has(> nav > [semtic-nav-links]:empty) > nav > [semtic-nav-toggle] {
|
|
@@ -2004,12 +2011,12 @@
|
|
|
2004
2011
|
}
|
|
2005
2012
|
|
|
2006
2013
|
semtic-nav > nav > [semtic-nav-brand] {
|
|
2007
|
-
grid-column:
|
|
2014
|
+
grid-column: 1;
|
|
2008
2015
|
grid-row: 1;
|
|
2009
2016
|
}
|
|
2010
2017
|
|
|
2011
|
-
semtic-nav[hamburger="
|
|
2012
|
-
grid-column:
|
|
2018
|
+
semtic-nav[hamburger="left"] > nav > [semtic-nav-brand] {
|
|
2019
|
+
grid-column: 2;
|
|
2013
2020
|
}
|
|
2014
2021
|
|
|
2015
2022
|
semtic-nav > nav > [semtic-nav-links] {
|
|
@@ -2080,11 +2087,6 @@
|
|
|
2080
2087
|
|
|
2081
2088
|
align-items: flex-start;
|
|
2082
2089
|
|
|
2083
|
-
/* These two mess a bit with horizontal navigation bars */
|
|
2084
|
-
white-space: normal;
|
|
2085
|
-
width: 100%;
|
|
2086
|
-
/* end messing */
|
|
2087
|
-
|
|
2088
2090
|
overflow-wrap: break-word;
|
|
2089
2091
|
overflow: visible;
|
|
2090
2092
|
|
|
@@ -2110,6 +2112,19 @@
|
|
|
2110
2112
|
var(--skirbi-transition-ease, ease);
|
|
2111
2113
|
}
|
|
2112
2114
|
|
|
2115
|
+
/* Sidenav items always stack full-width and wrap; the topbar's
|
|
2116
|
+
* horizontal bar needs the opposite -- items sized to their content,
|
|
2117
|
+
* sitting side by side. */
|
|
2118
|
+
semtic-sidenav [semtic-nav-link] {
|
|
2119
|
+
white-space: normal;
|
|
2120
|
+
width: 100%;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
semtic-nav [semtic-nav-link] {
|
|
2124
|
+
white-space: nowrap;
|
|
2125
|
+
width: auto;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2113
2128
|
/* A group header with no href and no action names the items under it
|
|
2114
2129
|
* rather than doing anything, so it should not offer the affordances of
|
|
2115
2130
|
* one that does: no pointer, no hover response. */
|
package/package.json
CHANGED