@skirbi/pinta 0.0.41 → 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,21 @@
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
+
14
+ 0.0.42 2026-09-17 00:55:12Z
15
+
16
+ * Button color recipes ([lead], [support], [extra], [antagonist],
17
+ [herald]) now also apply to `button` elements, not just `a`.
18
+
3
19
  0.0.41 2026-09-16 05:32:35Z
4
20
 
5
21
  * semtic-nav-page: fixed the flex recipe to target semtic-nav-page-item
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.41";
5
+ const VERSION = "0.0.43";
@@ -3554,7 +3554,12 @@
3554
3554
  a[support],
3555
3555
  a[extra],
3556
3556
  a[antagonist],
3557
- a[herald] {
3557
+ a[herald],
3558
+ button[lead],
3559
+ button[support],
3560
+ button[extra],
3561
+ button[antagonist],
3562
+ button[herald] {
3558
3563
  display: inline-flex;
3559
3564
  align-items: center;
3560
3565
  justify-content: center;
@@ -3633,7 +3638,8 @@
3633
3638
  pointer-events: none;
3634
3639
  }
3635
3640
 
3636
- a[lead] {
3641
+ a[lead],
3642
+ button[lead] {
3637
3643
  background: var(--skirbi-button-lead-bg, var(--skirbi-primary-main));
3638
3644
  /*
3639
3645
  * This leaves some weird ass artifact, fix it and enable gradient
@@ -3655,7 +3661,8 @@
3655
3661
  }
3656
3662
  }
3657
3663
 
3658
- a[support] {
3664
+ a[support],
3665
+ button[support] {
3659
3666
  background: var(--skirbi-button-support-bg, transparent);
3660
3667
  color: var(--skirbi-button-support-color, var(--skirbi-primary-main));
3661
3668
  border-color: var(--skirbi-button-support-border,
@@ -3669,7 +3676,8 @@
3669
3676
  }
3670
3677
  }
3671
3678
 
3672
- a[extra] {
3679
+ a[extra],
3680
+ button[extra] {
3673
3681
  background: var(--skirbi-button-extra-bg, transparent);
3674
3682
  color: var(--skirbi-button-extra-color, var(--skirbi-primary-main));
3675
3683
  border-color: var(--skirbi-button-extra-border,
@@ -3685,7 +3693,8 @@
3685
3693
  }
3686
3694
  }
3687
3695
 
3688
- a[antagonist] {
3696
+ a[antagonist],
3697
+ button[antagonist] {
3689
3698
  background: var(--skirbi-button-antagonist-bg, transparent);
3690
3699
  color: var(--skirbi-button-antagonist-color,
3691
3700
  var(--skirbi-error-base, #b91c1c));
@@ -3701,7 +3710,8 @@
3701
3710
  }
3702
3711
  }
3703
3712
 
3704
- a[antagonist][lead] {
3713
+ a[antagonist][lead],
3714
+ button[antagonist][lead] {
3705
3715
  background: var(--skirbi-button-antagonist-strong-bg,
3706
3716
  var(--skirbi-error-base, #b91c1c));
3707
3717
  color: var(--skirbi-on-dark, white);
@@ -3714,7 +3724,8 @@
3714
3724
  }
3715
3725
  }
3716
3726
 
3717
- a[herald] {
3727
+ a[herald],
3728
+ button[herald] {
3718
3729
  background: var(--skirbi-button-herald-bg, transparent);
3719
3730
  color: var(--skirbi-button-herald-color,
3720
3731
  var(--skirbi-warn-base, #d97706));
@@ -3728,7 +3739,8 @@
3728
3739
  var(--skirbi-warn-base, #d97706));
3729
3740
  }
3730
3741
  }
3731
- a[herald][lead] {
3742
+ a[herald][lead],
3743
+ button[herald][lead] {
3732
3744
  background: var(--skirbi-button-herald-strong-bg,
3733
3745
  var(--skirbi-warn-base, #d97706));
3734
3746
  color: var(--skirbi-on-dark, white);
@@ -4267,6 +4279,21 @@
4267
4279
  color: var(--skirbi-button-lead-color, var(--skirbi-primary-contrast));
4268
4280
  }
4269
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
+ }
4270
4297
  }
4271
4298
  }
4272
4299
 
@@ -4980,11 +5007,6 @@
4980
5007
  padding-block-start: 1.5rem;
4981
5008
  border-block-start: 1px solid var(--skirbi-surface-border-final);
4982
5009
 
4983
- /* Grid, not flex: a lone item (the first/last page in a section)
4984
- * must still only occupy its own half -- flex would let a single
4985
- * flex: 1 1 0 child stretch across the whole row once the other
4986
- * side is missing. Fixed 1fr/1fr columns hold the halves whether
4987
- * one or both are present. */
4988
5010
  &[side-by-side] {
4989
5011
  display: grid;
4990
5012
  grid-template-columns: 1fr 1fr;
@@ -4992,6 +5014,20 @@
4992
5014
  * padding/negative-margin trick above); this must clear both
4993
5015
  * sides' worth of that or the two hover backgrounds touch. */
4994
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
+ }
4995
5031
  }
4996
5032
  }
4997
5033
 
@@ -5007,6 +5043,16 @@
5007
5043
  nav[side-by-side] > semtic-nav-page-item[next] {
5008
5044
  grid-column: 2;
5009
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
+ }
5010
5056
  }
5011
5057
 
5012
5058
  semtic-nav-page-item > a {
@@ -5029,6 +5075,14 @@
5029
5075
 
5030
5076
  nav[side-by-side] > semtic-nav-page-item[next] > a {
5031
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;
5032
5086
  }
5033
5087
 
5034
5088
  [semtic-nav-page-text] {
@@ -5040,6 +5094,14 @@
5040
5094
 
5041
5095
  nav[side-by-side] > semtic-nav-page-item[next] [semtic-nav-page-text] {
5042
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;
5043
5105
  }
5044
5106
 
5045
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.41"
35
+ "version": "0.0.43"
36
36
  }