ferst-core 0.2.0 → 0.2.1

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.
@@ -59,10 +59,18 @@ const display = Number.isNaN(d.valueOf())
59
59
  }
60
60
  .b-post-card__media {
61
61
  display: block;
62
+ position: relative;
62
63
  aspect-ratio: 16 / 9;
64
+ overflow: hidden;
63
65
  background: var(--bg-section);
64
66
  }
65
- .b-post-card__media img {
67
+ /* Absolutely-positioned + object-fit:cover so ANY source ratio is cropped to a
68
+ uniform 16:9 tile — never stretched, never overflowing into the text. The
69
+ compound selector (and inset/size) also out-specifies the global
70
+ `img { height:auto }` in Base, which otherwise lets tall images blow the box. */
71
+ .b-post-card .b-post-card__media img {
72
+ position: absolute;
73
+ inset: 0;
66
74
  width: 100%;
67
75
  height: 100%;
68
76
  object-fit: cover;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ferst-core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Ferst Core — the shared, brand-agnostic client-site system: Astro components, layouts, content schemas, the layered config resolver, and a neutral styling architecture that every client overrides.",
6
6
  "license": "BUSL-1.1",