@skirbi/pinta 0.0.42 → 0.0.43

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,16 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.43 2026-09-18 04:33:58Z
4
+
5
+ * semtic-nav-page[side-by-side] now stacks back to a single column
6
+ below the shared 48rem mobile breakpoint, like the default layout.
7
+
8
+ * semtic-nav-page[side-by-side] also stacks a lone item (the first or
9
+ last page in a section, which only ever has one of previous/next),
10
+ instead of leaving it alone in half the row.
11
+
12
+ * Fix semtic-tabbed for mobile
13
+
3
14
  0.0.42 2026-09-17 00:55:12Z
4
15
 
5
16
  * Button color recipes ([lead], [support], [extra], [antagonist],
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.42";
5
+ const VERSION = "0.0.43";
@@ -4279,6 +4279,21 @@
4279
4279
  color: var(--skirbi-button-lead-color, var(--skirbi-primary-contrast));
4280
4280
  }
4281
4281
  }
4282
+
4283
+ @media (max-width: 48rem) {
4284
+ nav[role='tablist'] {
4285
+ display: flex;
4286
+ flex-wrap: wrap;
4287
+ width: 100%;
4288
+ }
4289
+
4290
+ nav[role='tablist'] button {
4291
+ flex: 1 1 auto;
4292
+ padding: 0.4rem 0.6rem;
4293
+ font-size: 0.875rem;
4294
+ text-align: center;
4295
+ }
4296
+ }
4282
4297
  }
4283
4298
  }
4284
4299
 
@@ -4992,11 +5007,6 @@
4992
5007
  padding-block-start: 1.5rem;
4993
5008
  border-block-start: 1px solid var(--skirbi-surface-border-final);
4994
5009
 
4995
- /* Grid, not flex: a lone item (the first/last page in a section)
4996
- * must still only occupy its own half -- flex would let a single
4997
- * flex: 1 1 0 child stretch across the whole row once the other
4998
- * side is missing. Fixed 1fr/1fr columns hold the halves whether
4999
- * one or both are present. */
5000
5010
  &[side-by-side] {
5001
5011
  display: grid;
5002
5012
  grid-template-columns: 1fr 1fr;
@@ -5004,6 +5014,20 @@
5004
5014
  * padding/negative-margin trick above); this must clear both
5005
5015
  * sides' worth of that or the two hover backgrounds touch. */
5006
5016
  gap: 2rem;
5017
+
5018
+ /* Two narrow columns read badly on a phone; fall back to the
5019
+ * stacked layout below the shared mobile breakpoint. */
5020
+ @media (max-width: 48rem) {
5021
+ display: flex;
5022
+ flex-direction: column;
5023
+ gap: 1rem;
5024
+ }
5025
+
5026
+ &:has(> semtic-nav-page-item:only-child) {
5027
+ display: flex;
5028
+ flex-direction: column;
5029
+ gap: 1rem;
5030
+ }
5007
5031
  }
5008
5032
  }
5009
5033
 
@@ -5019,6 +5043,16 @@
5019
5043
  nav[side-by-side] > semtic-nav-page-item[next] {
5020
5044
  grid-column: 2;
5021
5045
  text-align: end;
5046
+
5047
+ @media (max-width: 48rem) {
5048
+ grid-column: auto;
5049
+ text-align: start;
5050
+ }
5051
+
5052
+ &:only-child {
5053
+ grid-column: auto;
5054
+ text-align: start;
5055
+ }
5022
5056
  }
5023
5057
 
5024
5058
  semtic-nav-page-item > a {
@@ -5041,6 +5075,14 @@
5041
5075
 
5042
5076
  nav[side-by-side] > semtic-nav-page-item[next] > a {
5043
5077
  flex-direction: row-reverse;
5078
+
5079
+ @media (max-width: 48rem) {
5080
+ flex-direction: row;
5081
+ }
5082
+ }
5083
+
5084
+ nav[side-by-side] > semtic-nav-page-item[next]:only-child > a {
5085
+ flex-direction: row;
5044
5086
  }
5045
5087
 
5046
5088
  [semtic-nav-page-text] {
@@ -5052,6 +5094,14 @@
5052
5094
 
5053
5095
  nav[side-by-side] > semtic-nav-page-item[next] [semtic-nav-page-text] {
5054
5096
  align-items: flex-end;
5097
+
5098
+ @media (max-width: 48rem) {
5099
+ align-items: flex-start;
5100
+ }
5101
+ }
5102
+
5103
+ nav[side-by-side] > semtic-nav-page-item[next]:only-child [semtic-nav-page-text] {
5104
+ align-items: flex-start;
5055
5105
  }
5056
5106
 
5057
5107
  [semtic-nav-page-eyebrow] {
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
- "version": "0.0.42"
35
+ "version": "0.0.43"
36
36
  }