@tideworthy/tidysites-platform 0.11.1 → 0.11.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.2
4
+
5
+ - Portrait and square photo slots crop from the top of the image, so a headshot in a shorter frame keeps the face and loses the shoulders, never the other way round.
6
+
3
7
  ## 0.11.1
4
8
 
5
9
  - `mediaUrl()` in `sections/lib`: a plain URL for an image field from the stored value (its storage key), for avatars and logos; the defaults and the business logo use it. Before this, a stored image with no `src` rendered as an empty circle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tideworthy/tidysites-platform",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "The Tidysites platform integration for EmDash sites: bootstrap, sessions, maintenance, health, and publish hooks under /_tidy/*.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,7 +47,7 @@
47
47
  .ts .ts-list li::before{content:"✓";color:var(--ts-primary);font-weight:700;flex:none}
48
48
  .ts-photo{--ts-primary:var(--primary,var(--brand-primary,#1e5a46));--ts-surface:var(--surface,#fff);--ts-ink-3:var(--ink-3,#7b877f);--ts-radius:var(--brand-radius,10px);position:relative;overflow:hidden;border-radius:var(--ts-radius);background:color-mix(in srgb,var(--ts-primary) 12%,var(--ts-surface));display:grid;place-items:center;color:var(--ts-ink-3);font-size:13px;text-align:center;padding:12px}
49
49
  .ts-photo img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
50
- .ts-photo-wide{aspect-ratio:16/10}.ts-photo-tall{aspect-ratio:4/5}.ts-photo-square{aspect-ratio:1}.ts-photo-video{aspect-ratio:16/9}
50
+ .ts-photo-wide{aspect-ratio:16/10}.ts-photo-tall{aspect-ratio:4/5}.ts-photo-tall img,.ts-photo-square img{object-position:center 18%}.ts-photo-square{aspect-ratio:1}.ts-photo-video{aspect-ratio:16/9}
51
51
  .ts-photo-has{padding:0}
52
52
  .ts .ts-stars{color:var(--ts-accent);letter-spacing:1px;font-size:15px}
53
53
  .ts .ts-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:color-mix(in srgb,var(--ts-primary) 15%,var(--ts-surface));flex:none;display:block}
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Kept in step with package.json by the release checklist in MAINTAINING.md. */
2
- export const VERSION = "0.11.1";
2
+ export const VERSION = "0.11.2";
3
3
  export const PLUGIN_ID = "tidy-platform";