@skirbi/pinta 0.0.29 → 0.0.30

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,11 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.30 2026-08-09 13:49:32Z
4
+
5
+ * Make avatars round on mobile
6
+ * Make checkboxes a bit smaller, needs more work tho
7
+ * Fix UA hidden bug
8
+
3
9
  0.0.29 2026-08-01 22:39:04Z
4
10
 
5
11
  * Port code from tatuahe tests/experiments into pinta
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.29";
5
+ const VERSION = "0.0.30";
@@ -483,6 +483,7 @@
483
483
  */
484
484
 
485
485
  [skirbi-theme] {
486
+
486
487
  /**
487
488
  * @styles pinta.color-families Color families
488
489
  * @description
@@ -623,6 +624,7 @@
623
624
  * | Token | Purpose |
624
625
  * | --- | --- |
625
626
  * | `--skirbi-font-sans` | Default sans-serif font stack. |
627
+ * | `--skirbi-font-headers` | The same as font-sans |
626
628
  * | `--skirbi-font-mono` | Default monospace font stack. |
627
629
  * | `--skirbi-font-scale` | Base font scale multiplier. |
628
630
  * | `--skirbi-line-height` | Base line-height. |
@@ -636,7 +638,7 @@
636
638
  */
637
639
 
638
640
  /* Typography knobs */
639
- --skirbi-font-sans: ui-sans-serif, system-ui, -apple-system,
641
+ --skirbi-font-defaults: ui-sans-serif, system-ui, -apple-system,
640
642
  "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
641
643
  "Segoe UI Emoji";
642
644
  --skirbi-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco,
@@ -650,6 +652,9 @@
650
652
  --skirbi-prose-gap: 1.25rem;
651
653
  --skirbi-heading-line-height: 1.2;
652
654
  --skirbi-heading-tracking: -0.01em;
655
+ --skirbi-font-sans: var(--skirbi-font-defaults);
656
+ --skirbi-font-headers: var(--skirbi-font-header-defaults);
657
+
653
658
 
654
659
  @media (max-width: 48rem) {
655
660
  --skirbi-font-scale: 1;
@@ -956,16 +961,8 @@
956
961
  color: var(--skirbi-page-fg, var(--skirbi-on-light, #0f172a));
957
962
 
958
963
  /* Typography application */
959
- font-family: var(
960
- --skirbi-font-sans,
961
- ui-sans-serif,
962
- system-ui,
963
- -apple-system,
964
- "Segoe UI",
965
- Roboto,
966
- Helvetica,
967
- Arial
968
- );
964
+ font-family: var(--skirbi-font-defaults);
965
+
969
966
  font-size: calc(16px * var(--skirbi-font-scale, 1));
970
967
  line-height: var(--skirbi-line-height, 1.55);
971
968
 
@@ -999,6 +996,11 @@
999
996
  font-size: 0.95em;
1000
997
  }
1001
998
 
999
+
1000
+ :where(h1, h2, h3, h4, h5, h6) {
1001
+ font-family: var(--skirbi-font-headers);
1002
+ }
1003
+
1002
1004
  :where(pre) {
1003
1005
  padding: 1rem;
1004
1006
  border: 1px solid var(--skirbi-surface-border-final);
@@ -1047,6 +1049,7 @@
1047
1049
  --skirbi-success-base: #0f766e;
1048
1050
  --skirbi-warn-base: #d97706;
1049
1051
  --skirbi-error-base: #b91c1c;
1052
+
1050
1053
  }
1051
1054
  }
1052
1055
 
@@ -1761,7 +1764,21 @@
1761
1764
  object-fit: cover;
1762
1765
  }
1763
1766
 
1767
+ @media (max-width: 36rem) {
1768
+ & semtic-nav [semtic-nav-avatar] {
1769
+ aspect-ratio: 1/1;
1770
+ }
1771
+ }
1772
+
1773
+ semtic-nav [semtic-nav-avatar][hero-image='banner'] {
1774
+ width: auto;
1775
+ height: clamp(2rem, 5vw, 4rem);
1776
+ max-height: 12rem;
1777
+ border-radius: 0;
1778
+ }
1779
+
1764
1780
  semtic-nav [semtic-nav-title] {
1781
+ font-family: var(--skirbi-font-headers);
1765
1782
  font-weight: 700;
1766
1783
  font-size: 1rem;
1767
1784
  letter-spacing: -0.01em;
@@ -2564,10 +2581,10 @@
2564
2581
  appearance: none;
2565
2582
  -webkit-appearance: none;
2566
2583
 
2567
- inline-size: var(--skirbi-choice-size, 0.95rem);
2568
- block-size: var(--skirbi-choice-size, 0.95rem);
2569
- min-inline-size: var(--skirbi-choice-size, 0.95rem);
2570
- min-block-size: var(--skirbi-choice-size, 0.95rem);
2584
+ inline-size: var(--skirbi-choice-size, 0.75rem);
2585
+ block-size: var(--skirbi-choice-size, 0.75rem);
2586
+ min-inline-size: var(--skirbi-choice-size, 0.75rem);
2587
+ min-block-size: var(--skirbi-choice-size, 0.75rem);
2571
2588
 
2572
2589
  margin: 0;
2573
2590
  padding: 0;
@@ -3785,13 +3802,13 @@
3785
3802
  }
3786
3803
  }
3787
3804
 
3788
- /**
3789
- * @styles pinta.heading-quote Heading quote
3790
- * @description
3791
- *
3792
- * Tightens a paragraph blockquote immediately following a heading and presents
3793
- * it as compact italic supporting text.
3794
- */
3805
+ /**
3806
+ * @styles pinta.heading-quote Heading quote
3807
+ * @description
3808
+ *
3809
+ * Tightens a paragraph blockquote immediately following a heading and presents
3810
+ * it as compact italic supporting text.
3811
+ */
3795
3812
 
3796
3813
  [skirbi-theme] {
3797
3814
  :is(h1, h2, h3, h4, h5, h6):has(+ blockquote p) {
@@ -3809,13 +3826,13 @@
3809
3826
  }
3810
3827
  }
3811
3828
 
3812
- /**
3813
- * @styles pinta.semtic-grid-layout Catalogue grid
3814
- * @description
3815
- *
3816
- * Four-column catalogue grid used when `<semtic-grid>` has a `layout`
3817
- * attribute. Card-span assignment remains the responsibility of the caller.
3818
- */
3829
+ /**
3830
+ * @styles pinta.semtic-grid-layout Catalogue grid
3831
+ * @description
3832
+ *
3833
+ * Four-column catalogue grid used when `<semtic-grid>` has a `layout`
3834
+ * attribute. Card-span assignment remains the responsibility of the caller.
3835
+ */
3819
3836
 
3820
3837
  [skirbi-theme] {
3821
3838
  semtic-grid[layout] {
@@ -3857,4 +3874,16 @@
3857
3874
  }
3858
3875
  }
3859
3876
 
3877
+ /*
3878
+ * Guard against component recipes above that set `display` without
3879
+ * excluding `[hidden]`. Author CSS always beats the UA stylesheet's
3880
+ * `[hidden] { display: none }`, so any unqualified `display` rule
3881
+ * silently defeats the native hidden behavior. This attribute selector
3882
+ * outranks plain element selectors, so it wins regardless of source
3883
+ * order above.
3884
+ */
3885
+ [skirbi-theme] [hidden] {
3886
+ display: none;
3887
+ }
3888
+
3860
3889
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  ".": "./lib/index.mjs",
12
12
  "./pinta.css": "./lib/themes/pinta.css"
13
13
  },
14
- "homepage": "https://gitlab.com/skirbi/pinta",
14
+ "homepage": "https://skirbi.xyz",
15
15
  "keywords": [],
16
16
  "license": "MIT",
17
17
  "name": "@skirbi/pinta",
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
- "version": "0.0.29"
35
+ "version": "0.0.30"
36
36
  }