@skirbi/pinta 0.0.42 → 0.0.44

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,20 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.44 2026-09-18 15:25:09Z
4
+
5
+ * Update semtic-nav-page in mobile to make it more "actionable"
6
+
7
+ 0.0.43 2026-09-18 04:33:58Z
8
+
9
+ * semtic-nav-page[side-by-side] now stacks back to a single column
10
+ below the shared 48rem mobile breakpoint, like the default layout.
11
+
12
+ * semtic-nav-page[side-by-side] also stacks a lone item (the first or
13
+ last page in a section, which only ever has one of previous/next),
14
+ instead of leaving it alone in half the row.
15
+
16
+ * Fix semtic-tabbed for mobile
17
+
3
18
  0.0.42 2026-09-17 00:55:12Z
4
19
 
5
20
  * 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.44";
@@ -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 {
@@ -5037,10 +5071,26 @@
5037
5071
  &:hover, &:focus-visible {
5038
5072
  background: var(--skirbi-surface-bg-final);
5039
5073
  }
5074
+
5075
+ @media (max-width: 48rem) {
5076
+ border: 1px solid var(--skirbi-surface-border-final);
5077
+
5078
+ &:hover, &:active {
5079
+ background: var(--skirbi-tertiary-main);
5080
+ }
5081
+ }
5040
5082
  }
5041
5083
 
5042
5084
  nav[side-by-side] > semtic-nav-page-item[next] > a {
5043
5085
  flex-direction: row-reverse;
5086
+
5087
+ @media (max-width: 48rem) {
5088
+ flex-direction: row;
5089
+ }
5090
+ }
5091
+
5092
+ nav[side-by-side] > semtic-nav-page-item[next]:only-child > a {
5093
+ flex-direction: row;
5044
5094
  }
5045
5095
 
5046
5096
  [semtic-nav-page-text] {
@@ -5052,6 +5102,14 @@
5052
5102
 
5053
5103
  nav[side-by-side] > semtic-nav-page-item[next] [semtic-nav-page-text] {
5054
5104
  align-items: flex-end;
5105
+
5106
+ @media (max-width: 48rem) {
5107
+ align-items: flex-start;
5108
+ }
5109
+ }
5110
+
5111
+ nav[side-by-side] > semtic-nav-page-item[next]:only-child [semtic-nav-page-text] {
5112
+ align-items: flex-start;
5055
5113
  }
5056
5114
 
5057
5115
  [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.44"
36
36
  }