@slotted/styles 0.1.0-beta.21 → 0.1.0-beta.23

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/styles",
3
- "version": "0.1.0-beta.21",
3
+ "version": "0.1.0-beta.23",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -397,6 +397,19 @@
397
397
  z-index: var(--slotted-z-index-popover, 1100);
398
398
  }
399
399
 
400
+ /* A theme that paints the chart's floating layers as a translucent material blurs the plot under them. */
401
+ [data-ui-chart] :is([data-part-menu], [data-part-help-content], [data-part-tooltip]) {
402
+ -webkit-backdrop-filter: var(--slotted-chart-overlay-backdrop-filter, none);
403
+ backdrop-filter: var(--slotted-chart-overlay-backdrop-filter, none);
404
+ }
405
+
406
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
407
+ [data-ui-chart] :is([data-part-menu], [data-part-help-content], [data-part-tooltip]) {
408
+ -webkit-backdrop-filter: none;
409
+ backdrop-filter: none;
410
+ }
411
+ }
412
+
400
413
  [data-ui-chart] [data-part-menu] {
401
414
  display: grid;
402
415
  min-inline-size: 11rem;
@@ -28,6 +28,7 @@
28
28
  "--slotted-chart-label-size",
29
29
  "--slotted-chart-line-width",
30
30
  "--slotted-chart-marker-size",
31
+ "--slotted-chart-overlay-backdrop-filter",
31
32
  "--slotted-chart-plot-block-size",
32
33
  "--slotted-chart-plot-block-size-lg",
33
34
  "--slotted-chart-plot-block-size-sm",
@@ -117,6 +117,11 @@
117
117
  * the motion scale arriving and one step down leaving, because a reader who
118
118
  * has decided to close is waiting.
119
119
  *
120
+ * The slide arrives on the standard curve, not the entrance one: the
121
+ * entrance curve starts at fourteen times its mean speed, and a bottom
122
+ * sheet on it covered 46 per cent of a 717 px travel in its first frame.
123
+ * The standard curve covers under 3 per cent there.
124
+ *
120
125
  * `--_move` is any measure that changes — an inline drawer opening, and a
121
126
  * separator released onto a snap point. One step below the slide.
122
127
  *
@@ -137,7 +142,7 @@
137
142
  * states below read as what they are.
138
143
  */
139
144
  --_slide: var(--slotted-drawer-slide-duration, var(--slotted-duration-long))
140
- var(--slotted-easing-enter);
145
+ var(--slotted-drawer-slide-easing, var(--slotted-easing-standard));
141
146
  --_move: var(--slotted-duration-medium) var(--slotted-easing-enter);
142
147
  /**
143
148
  * `allow-discrete` is the whole of it. Without it the rule that hides a
@@ -180,7 +185,7 @@
180
185
  /** Leaving is shorter than arriving: a reader who has decided is waiting. */
181
186
  [data-ui-drawer]:not([data-open]) {
182
187
  --_slide: var(--slotted-drawer-slide-exit-duration, var(--slotted-duration-medium))
183
- var(--slotted-easing-exit);
188
+ var(--slotted-drawer-slide-exit-easing, var(--slotted-easing-exit));
184
189
  --_move: var(--slotted-duration-medium) var(--slotted-easing-exit);
185
190
  }
186
191
 
@@ -1288,6 +1293,16 @@
1288
1293
  padding-block: var(--_padding-block);
1289
1294
  padding-inline: var(--_row-padding-inline-start) var(--_row-padding-inline-end);
1290
1295
  background: var(--slotted-drawer-footer-surface, var(--slotted-surface-sunken, Canvas));
1296
+ /* The body scrolls under the footer; the panel's own filter blurs only what lies behind the panel. */
1297
+ -webkit-backdrop-filter: var(--slotted-drawer-footer-backdrop-filter, none);
1298
+ backdrop-filter: var(--slotted-drawer-footer-backdrop-filter, none);
1299
+ }
1300
+
1301
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
1302
+ [data-ui-drawer] > [data-part-panel] > [data-part-footer] {
1303
+ -webkit-backdrop-filter: none;
1304
+ backdrop-filter: none;
1305
+ }
1291
1306
  }
1292
1307
 
1293
1308
  /**
@@ -22,6 +22,7 @@
22
22
  "--slotted-drawer-extent-md",
23
23
  "--slotted-drawer-extent-sm",
24
24
  "--slotted-drawer-extent-xl",
25
+ "--slotted-drawer-footer-backdrop-filter",
25
26
  "--slotted-drawer-footer-surface",
26
27
  "--slotted-drawer-radius",
27
28
  "--slotted-drawer-radius-expanded",
@@ -33,7 +34,9 @@
33
34
  "--slotted-drawer-sheet-height",
34
35
  "--slotted-drawer-sheet-inline-size",
35
36
  "--slotted-drawer-slide-duration",
37
+ "--slotted-drawer-slide-easing",
36
38
  "--slotted-drawer-slide-exit-duration",
39
+ "--slotted-drawer-slide-exit-easing",
37
40
  "--slotted-drawer-surface",
38
41
  "--slotted-drawer-title-color",
39
42
  "--slotted-drawer-title-font-family",
package/src/page/page.css CHANGED
@@ -133,9 +133,7 @@
133
133
  min-inline-size: 0;
134
134
  padding-block: var(--_footer-padding-block);
135
135
  position: sticky;
136
- transition:
137
- translate var(--_duration) var(--_easing),
138
- opacity var(--_duration) var(--_easing);
136
+ transition: translate var(--_duration) var(--_easing);
139
137
  z-index: var(--slotted-z-index-sticky, 100);
140
138
  }
141
139
  [data-ui-page][data-scroll='self'] > [data-part-footer] {
@@ -143,14 +141,14 @@
143
141
  }
144
142
  [data-ui-page] > [data-part-footer][data-status='entering'],
145
143
  [data-ui-page] > [data-part-footer][data-status='exiting'] {
146
- opacity: 0;
147
144
  translate: 0 100%;
148
145
  }
149
146
 
150
147
  /**
151
148
  * A theme draws the footer as a material with a ground that has alpha and
152
- * `--slotted-page-footer-backdrop-filter`, `none` unless set. The footer's
153
- * own fade keeps the filter drawn: only an ancestor's opacity removes it.
149
+ * `--slotted-page-footer-backdrop-filter`, `none` unless set. The footer
150
+ * moves by its translate alone: Chromium draws no backdrop filter on an
151
+ * element whose opacity is below one.
154
152
  */
155
153
  [data-ui-page] > [data-part-footer] {
156
154
  -webkit-backdrop-filter: var(--slotted-page-footer-backdrop-filter, none);