@skirbi/pinta 0.0.37 → 0.0.38

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,9 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.38 2026-09-12 03:21:26Z
4
+
5
+ * Add attribution CSS
6
+
3
7
  0.0.37 2026-09-09 18:24:01Z
4
8
 
5
9
  * A heading right after a semtic-terminal block, or a semtic-terminal
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.37";
5
+ const VERSION = "0.0.38";
@@ -1607,15 +1607,61 @@
1607
1607
  overflow: hidden;
1608
1608
  }
1609
1609
 
1610
- semtic-article [semtic-article-hero-img] {
1611
- width: 100%;
1612
- height: auto;
1610
+ semtic-header > header {
1611
+ margin-bottom: 1.5rem;
1612
+ }
1613
+ }
1614
+
1615
+ /**
1616
+ * @styles pinta.semtic-image Semtic image
1617
+ * @description
1618
+ *
1619
+ * Default recipe for `<semtic-image>` and its `<semtic-attribution>` caption.
1620
+ *
1621
+ * `<semtic-image>` renders a `<figure>` with the image and, when attribution
1622
+ * is given, a `<figcaption>` credit line underneath.
1623
+ */
1624
+ [skirbi-theme] {
1625
+ semtic-image {
1613
1626
  display: block;
1614
- object-fit: cover;
1627
+
1628
+ figure {
1629
+ margin: 0;
1630
+ overflow: hidden;
1631
+ }
1632
+
1633
+ img {
1634
+ display: block;
1635
+ width: 100%;
1636
+ height: auto;
1637
+ object-fit: cover;
1638
+ }
1639
+
1640
+ figcaption {
1641
+ padding: 0.375rem 0;
1642
+ font-size: 0.8125rem;
1643
+ color: var(--skirbi-text-muted-final);
1644
+ }
1615
1645
  }
1616
1646
 
1617
- semtic-header > header {
1618
- margin-bottom: 1.5rem;
1647
+ semtic-attribution {
1648
+ display: block;
1649
+
1650
+ p {
1651
+ margin: 0;
1652
+ }
1653
+
1654
+ a {
1655
+ color: inherit;
1656
+ text-decoration: underline;
1657
+ text-decoration-color: var(--skirbi-surface-border-final);
1658
+ text-underline-offset: 0.15em;
1659
+
1660
+ &:hover {
1661
+ color: var(--skirbi-primary-main);
1662
+ text-decoration-color: currentColor;
1663
+ }
1664
+ }
1619
1665
  }
1620
1666
  }
1621
1667
 
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
- "version": "0.0.37"
35
+ "version": "0.0.38"
36
36
  }
Binary file