@skirbi/pinta 0.0.40 → 0.0.42
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 +15 -0
- package/lib/index.mjs +1 -1
- package/lib/themes/pinta.css +66 -17
- package/package.json +1 -1
package/Changes
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
Revision history for @skirbi/pinta
|
|
2
2
|
|
|
3
|
+
0.0.42 2026-09-17 00:55:12Z
|
|
4
|
+
|
|
5
|
+
* Button color recipes ([lead], [support], [extra], [antagonist],
|
|
6
|
+
[herald]) now also apply to `button` elements, not just `a`.
|
|
7
|
+
|
|
8
|
+
0.0.41 2026-09-16 05:32:35Z
|
|
9
|
+
|
|
10
|
+
* semtic-nav-page: fixed the flex recipe to target semtic-nav-page-item
|
|
11
|
+
directly, following the component's own removal of a wrapper div that
|
|
12
|
+
used to sit between them. Default is now a stacked column; the new
|
|
13
|
+
side-by-side attribute switches to the previous two-column,
|
|
14
|
+
edge-to-edge layout. Title truncation now has a real bounded column to
|
|
15
|
+
truncate against. Stacked gap widened to 1rem, side-by-side gap to
|
|
16
|
+
2rem, so hover backgrounds no longer touch in either layout.
|
|
17
|
+
|
|
3
18
|
0.0.40 2026-09-16 04:30:30Z
|
|
4
19
|
|
|
5
20
|
* Add default styling for semtic-nav-page/semtic-nav-page-item: previous
|
package/lib/index.mjs
CHANGED
package/lib/themes/pinta.css
CHANGED
|
@@ -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);
|
|
@@ -4962,33 +4974,57 @@
|
|
|
4962
4974
|
* @description
|
|
4963
4975
|
*
|
|
4964
4976
|
* Default recipe for `<semtic-nav-page>` and its `<semtic-nav-page-item>`
|
|
4965
|
-
* sides
|
|
4966
|
-
*
|
|
4967
|
-
*
|
|
4977
|
+
* sides, within whatever column the nav itself sits in (the article's
|
|
4978
|
+
* content column, typically), not the page's outer aside rails.
|
|
4979
|
+
*
|
|
4980
|
+
* Stacked by default: previous above next, each a full-width row. The
|
|
4981
|
+
* `side-by-side` attribute lays them out as two columns instead, previous
|
|
4982
|
+
* on the nav's start edge and next on its end edge.
|
|
4968
4983
|
*/
|
|
4969
4984
|
[skirbi-theme] {
|
|
4970
4985
|
semtic-nav-page > nav {
|
|
4971
4986
|
display: flex;
|
|
4972
|
-
|
|
4987
|
+
flex-direction: column;
|
|
4988
|
+
/* >= 2x the item link's own negative margin (0.5rem), so two
|
|
4989
|
+
* stacked items' hover backgrounds never touch or overlap. */
|
|
4973
4990
|
gap: 1rem;
|
|
4974
4991
|
margin-block-start: 2rem;
|
|
4975
4992
|
padding-block-start: 1.5rem;
|
|
4976
4993
|
border-block-start: 1px solid var(--skirbi-surface-border-final);
|
|
4994
|
+
|
|
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
|
+
&[side-by-side] {
|
|
5001
|
+
display: grid;
|
|
5002
|
+
grid-template-columns: 1fr 1fr;
|
|
5003
|
+
/* Item links expand 0.5rem past their own bounds on hover (the
|
|
5004
|
+
* padding/negative-margin trick above); this must clear both
|
|
5005
|
+
* sides' worth of that or the two hover backgrounds touch. */
|
|
5006
|
+
gap: 2rem;
|
|
5007
|
+
}
|
|
4977
5008
|
}
|
|
4978
5009
|
|
|
4979
5010
|
semtic-nav-page-item {
|
|
4980
5011
|
display: block;
|
|
4981
5012
|
min-width: 0;
|
|
4982
|
-
|
|
5013
|
+
}
|
|
4983
5014
|
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
5015
|
+
nav[side-by-side] > semtic-nav-page-item[previous] {
|
|
5016
|
+
grid-column: 1;
|
|
5017
|
+
}
|
|
5018
|
+
|
|
5019
|
+
nav[side-by-side] > semtic-nav-page-item[next] {
|
|
5020
|
+
grid-column: 2;
|
|
5021
|
+
text-align: end;
|
|
4987
5022
|
}
|
|
4988
5023
|
|
|
4989
5024
|
semtic-nav-page-item > a {
|
|
4990
5025
|
display: flex;
|
|
4991
5026
|
align-items: center;
|
|
5027
|
+
min-width: 0;
|
|
4992
5028
|
gap: 0.75rem;
|
|
4993
5029
|
padding: 0.5rem;
|
|
4994
5030
|
margin: -0.5rem;
|
|
@@ -5003,10 +5039,21 @@
|
|
|
5003
5039
|
}
|
|
5004
5040
|
}
|
|
5005
5041
|
|
|
5006
|
-
semtic-nav-page-item[next] > a {
|
|
5042
|
+
nav[side-by-side] > semtic-nav-page-item[next] > a {
|
|
5007
5043
|
flex-direction: row-reverse;
|
|
5008
5044
|
}
|
|
5009
5045
|
|
|
5046
|
+
[semtic-nav-page-text] {
|
|
5047
|
+
display: flex;
|
|
5048
|
+
flex-direction: column;
|
|
5049
|
+
min-width: 0;
|
|
5050
|
+
flex: 1 1 auto;
|
|
5051
|
+
}
|
|
5052
|
+
|
|
5053
|
+
nav[side-by-side] > semtic-nav-page-item[next] [semtic-nav-page-text] {
|
|
5054
|
+
align-items: flex-end;
|
|
5055
|
+
}
|
|
5056
|
+
|
|
5010
5057
|
[semtic-nav-page-eyebrow] {
|
|
5011
5058
|
display: block;
|
|
5012
5059
|
font-size: 0.75rem;
|
|
@@ -5017,6 +5064,8 @@
|
|
|
5017
5064
|
|
|
5018
5065
|
[semtic-nav-page-title] {
|
|
5019
5066
|
display: block;
|
|
5067
|
+
min-width: 0;
|
|
5068
|
+
max-width: 100%;
|
|
5020
5069
|
font-weight: 600;
|
|
5021
5070
|
overflow: hidden;
|
|
5022
5071
|
text-overflow: ellipsis;
|
package/package.json
CHANGED