@refrakt-md/skeleton 0.24.1 → 0.24.3
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/package.json +2 -2
- package/styles/layouts/split.css +22 -1
- package/styles/runes/hero.css +3 -20
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/skeleton",
|
|
3
3
|
"description": "The structural cascade layer + layer-order contract every refrakt theme builds on — ships `@layer skeleton` and the `@layer skeleton, skin;` order declaration, plus the token-name contract",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"styles"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@refrakt-md/types": "0.24.
|
|
32
|
+
"@refrakt-md/types": "0.24.3"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc"
|
package/styles/layouts/split.css
CHANGED
|
@@ -75,7 +75,28 @@
|
|
|
75
75
|
height: 100%;
|
|
76
76
|
object-fit: cover;
|
|
77
77
|
}
|
|
78
|
-
/*
|
|
78
|
+
/* A bleed host (`data-guest-fit="bleed"`, e.g. hero / feature) is a section, not
|
|
79
|
+
* a clip-host — it never crops its rune guest. The guest keeps its own chrome,
|
|
80
|
+
* including a drop-shadow that falls in the corner gaps its own rounding leaves;
|
|
81
|
+
* the slot's `overflow: hidden` would clip that shadow into a hard darker corner.
|
|
82
|
+
* The container-query context stays (a `mockup` still sizes against the slot) —
|
|
83
|
+
* only the clip is lifted. Leaf images aren't `[data-rune]`, so an image guest
|
|
84
|
+
* stays clipped for the framed rounded-image look. */
|
|
85
|
+
[data-section="media"][data-guest-fit="bleed"]:has(> [data-rune]) {
|
|
86
|
+
overflow: visible;
|
|
87
|
+
}
|
|
88
|
+
/* A *displaced* guest also drops the container-query context so its negative-
|
|
89
|
+
* margin breakout can escape the slot. Covers both `frame-displace` routing
|
|
90
|
+
* paths — host-on-media (`data-displace` on the zone) and a child rune carrying
|
|
91
|
+
* its own displace (`:has(> [data-displace])`). The guest keeps `width: 100%`
|
|
92
|
+
* (it still fills the host width); only the spill is unclipped. */
|
|
93
|
+
[data-section="media"][data-guest-fit="bleed"]:is([data-displace], :has(> [data-displace])) {
|
|
94
|
+
overflow: visible;
|
|
95
|
+
container-type: normal;
|
|
96
|
+
}
|
|
97
|
+
/* Guests that manage their own bleed / interactive chrome opt out of the clip —
|
|
98
|
+
* guest-intrinsic, so it holds in clip hosts too (a juxtapose in a card still
|
|
99
|
+
* sizes its slider to its own panels). */
|
|
79
100
|
[data-section="media"]:is(
|
|
80
101
|
:has(> [data-rune="preview"]),
|
|
81
102
|
:has(> [data-rune="juxtapose"]),
|
package/styles/runes/hero.css
CHANGED
|
@@ -8,26 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
.rf-hero { position: relative; }
|
|
10
10
|
|
|
11
|
-
/*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `[data-rune="preview"]` / `[data-rune="juxtapose"]` / showcase-displace
|
|
15
|
-
* opt-outs in layouts/split.css — same intent, host-aware scope.
|
|
16
|
-
*
|
|
17
|
-
* Covers both routing paths of `frame-displace`:
|
|
18
|
-
* 1. host-on-media — `frame-displace` on the hero lands `data-displace` on
|
|
19
|
-
* the media-zone wrapper itself (the host's frame target is its media).
|
|
20
|
-
* 2. self on a child — a media-zone child rune carrying its own
|
|
21
|
-
* `frame-displace` ends up with `data-displace` on its root, so we still
|
|
22
|
-
* need `:has(> [data-displace])` for that case. */
|
|
23
|
-
.rf-hero > [data-section="media"]:is([data-displace], :has(> [data-displace])) {
|
|
24
|
-
overflow: visible;
|
|
25
|
-
container-type: normal;
|
|
26
|
-
}
|
|
27
|
-
/* Note: unlike the showcase/preview/juxtapose opt-outs in layouts/split.css,
|
|
28
|
-
* we deliberately keep the default `width: 100%` / `max-height: 100%` on the
|
|
29
|
-
* guest — a codegroup or sandbox in a hero should still fill the hero's
|
|
30
|
-
* width; the unclip is only about letting it overflow vertically. */
|
|
11
|
+
/* The hero media zone's displaced-guest spill is now the shared bleed-host rule
|
|
12
|
+
* (`[data-guest-fit="bleed"]` in layouts/split.css) — a hero declares
|
|
13
|
+
* `guestFit: 'bleed'`, so the host-specific override is no longer needed here. */
|
|
31
14
|
|
|
32
15
|
.rf-hero__preamble {
|
|
33
16
|
flex-direction: column;
|