plass-ui 1.7.0 → 1.8.0
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 +218 -0
- package/README.md +2 -2
- package/dist/components/accordion/PlAccordion.d.ts +9 -4
- package/dist/components/accordion/PlAccordion.js +1 -1
- package/dist/components/alert/PlAlert.js +1 -1
- package/dist/components/anchor/PlAnchor.js +1 -1
- package/dist/components/animate-appear/PlAnimateAppear.js +1 -1
- package/dist/components/animate-counter/PlAnimateCounter.d.ts +5 -2
- package/dist/components/animate-counter/PlAnimateCounter.js +1 -1
- package/dist/components/animate-float/PlAnimateFloat.js +1 -1
- package/dist/components/animate-headline/PlAnimateHeadline.js +1 -1
- package/dist/components/animate-lighting/PlAnimateLighting.js +1 -1
- package/dist/components/animate-marquee/PlAnimateMarquee.js +1 -1
- package/dist/components/animate-scramble/PlAnimateScramble.js +1 -1
- package/dist/components/animate-shake/PlAnimateShake.js +1 -1
- package/dist/components/animate-split/PlAnimateSplit.js +1 -1
- package/dist/components/animate-typing/PlAnimateTyping.js +1 -1
- package/dist/components/app-logo/PlAppLogo.d.ts +51 -15
- package/dist/components/area-chart/PlAreaChart.js +1 -1
- package/dist/components/avatar/PlAvatar.js +1 -1
- package/dist/components/bar-chart/PlBarChart.js +1 -1
- package/dist/components/bottom-navigation/PlBottomNavigation.d.ts +15 -5
- package/dist/components/bottom-navigation/PlBottomNavigation.js +1 -1
- package/dist/components/breadcrumb/PlBreadcrumb.d.ts +16 -3
- package/dist/components/breadcrumb/PlBreadcrumb.js +1 -1
- package/dist/components/button/PlButton.js +1 -1
- package/dist/components/calendar/PlCalendar.js +1 -1
- package/dist/components/card/PlCard.d.ts +2 -1
- package/dist/components/card/PlCard.js +1 -1
- package/dist/components/carousel/PlCarousel.js +1 -1
- package/dist/components/checkbox/PlCheckbox.js +1 -1
- package/dist/components/chip/PlChip.js +1 -1
- package/dist/components/code-block/PlCodeBlock.js +1 -1
- package/dist/components/collapsible/PlCollapsible.js +1 -1
- package/dist/components/color-picker/PlColorPicker.js +1 -1
- package/dist/components/combobox/PlCombobox.d.ts +1 -1
- package/dist/components/combobox/PlCombobox.js +1 -1
- package/dist/components/command-palette/PlCommandPalette.js +1 -1
- package/dist/components/confirm/PlConfirmProvider.js +1 -1
- package/dist/components/data-table/PlDataTable.js +1 -1
- package/dist/components/date-picker/PlDatePicker.js +1 -1
- package/dist/components/date-range-picker/PlDateRangePicker.js +1 -1
- package/dist/components/date-time-picker/PlDateTimePicker.js +1 -1
- package/dist/components/drawer/PlDrawer.d.ts +27 -2
- package/dist/components/drawer/PlDrawer.js +1 -1
- package/dist/components/empty/PlEmpty.d.ts +4 -1
- package/dist/components/empty/PlEmpty.js +1 -1
- package/dist/components/file-picker/PlFilePicker.d.ts +29 -0
- package/dist/components/file-picker/PlFilePicker.js +1 -1
- package/dist/components/file-picker/index.d.ts +1 -1
- package/dist/components/floating-bottom-navigation/PlFloatingBottomNavigation.d.ts +10 -0
- package/dist/components/floating-bottom-navigation/PlFloatingBottomNavigation.js +1 -1
- package/dist/components/footer/PlFooter.js +1 -1
- package/dist/components/gallery/PlGallery.js +1 -1
- package/dist/components/gauge-chart/PlGaugeChart.d.ts +11 -2
- package/dist/components/gauge-chart/PlGaugeChart.js +1 -1
- package/dist/components/header/PlHeader.js +1 -1
- package/dist/components/heatmap-chart/PlHeatmapChart.d.ts +1 -1
- package/dist/components/heatmap-chart/PlHeatmapChart.js +1 -1
- package/dist/components/image/PlImage.js +1 -1
- package/dist/components/image/PlImagePreview.d.ts +3 -2
- package/dist/components/list/PlList.d.ts +16 -5
- package/dist/components/list/PlList.js +1 -1
- package/dist/components/menu/PlMenu.d.ts +19 -7
- package/dist/components/menu/PlMenu.js +1 -1
- package/dist/components/menubar/PlMenubar.js +1 -1
- package/dist/components/meter/PlMeter.js +1 -1
- package/dist/components/mockup/PlMockup.d.ts +4 -3
- package/dist/components/mockup/PlMockup.js +1 -1
- package/dist/components/modal/PlModal.js +1 -1
- package/dist/components/navigation-menu/PlNavigationMenu.d.ts +52 -8
- package/dist/components/navigation-menu/PlNavigationMenu.js +1 -1
- package/dist/components/number-field/PlNumberField.d.ts +1 -1
- package/dist/components/number-field/PlNumberField.js +1 -1
- package/dist/components/otp-field/PlOtpField.js +1 -1
- package/dist/components/overlay/PlOverlay.js +1 -1
- package/dist/components/page-layout/PlPageLayout.js +1 -1
- package/dist/components/panes/PlPanes.d.ts +4 -1
- package/dist/components/panes/PlPanes.js +1 -1
- package/dist/components/pie-chart/PlPieChart.d.ts +1 -1
- package/dist/components/pie-chart/PlPieChart.js +1 -1
- package/dist/components/pill/PlPill.js +1 -1
- package/dist/components/popover/PlPopover.js +1 -1
- package/dist/components/progress-box/PlProgressBox.js +1 -1
- package/dist/components/progress-circular/PlProgressCircular.d.ts +11 -1
- package/dist/components/progress-circular/PlProgressCircular.js +1 -1
- package/dist/components/progress-linear/PlProgressLinear.js +1 -1
- package/dist/components/radio-group/PlRadioGroup.js +1 -1
- package/dist/components/scatter-chart/PlScatterChart.js +1 -1
- package/dist/components/scroll-zone/PlScrollZone.js +1 -1
- package/dist/components/segmented-button/PlSegmentedButton.js +1 -1
- package/dist/components/select/PlSelect.js +1 -1
- package/dist/components/sidebar/PlSidebar.d.ts +12 -0
- package/dist/components/sidebar/PlSidebar.js +1 -1
- package/dist/components/slider/PlSlider.d.ts +2 -1
- package/dist/components/slider/PlSlider.js +1 -1
- package/dist/components/sparkline/PlSparkline.d.ts +15 -3
- package/dist/components/sparkline/PlSparkline.js +1 -1
- package/dist/components/stepper/PlStepper.d.ts +11 -0
- package/dist/components/stepper/PlStepper.js +1 -1
- package/dist/components/switch/PlSwitch.js +1 -1
- package/dist/components/tabs/PlTabs.js +1 -1
- package/dist/components/text-field/PlTextField.js +1 -1
- package/dist/components/text-link/PlTextLink.js +1 -1
- package/dist/components/time-picker/PlTimePicker.js +1 -1
- package/dist/components/timeline-chart/PlTimelineChart.js +1 -1
- package/dist/components/toast/PlToast.js +1 -1
- package/dist/components/toggle/PlToggle.js +1 -1
- package/dist/components/tour/PlTour.js +1 -1
- package/dist/components/transfer/PlTransfer.js +1 -1
- package/dist/components/tree/PlTree.d.ts +12 -0
- package/dist/components/tree/PlTree.js +1 -1
- package/dist/components/tree-select/PlTreeSelect.js +1 -1
- package/dist/components/typography/PlTypography.d.ts +20 -7
- package/dist/components/typography/PlTypography.js +1 -1
- package/dist/components/visually-hidden/PlVisuallyHidden.d.ts +12 -3
- package/dist/components/visually-hidden/PlVisuallyHidden.js +1 -1
- package/dist/components/window-pane/PlWindowPane.d.ts +3 -0
- package/dist/components/window-pane/PlWindowPane.js +1 -1
- package/dist/css/accordion.css +4 -0
- package/dist/css/alert.css +5 -0
- package/dist/css/anchor.css +6 -0
- package/dist/css/animate-appear.css +3 -0
- package/dist/css/animate-blink.css +3 -0
- package/dist/css/animate-counter.css +4 -0
- package/dist/css/animate-fade.css +3 -0
- package/dist/css/animate-float.css +3 -0
- package/dist/css/animate-grow.css +3 -0
- package/dist/css/animate-headline.css +3 -0
- package/dist/css/animate-lighting.css +4 -0
- package/dist/css/animate-marquee.css +4 -0
- package/dist/css/animate-reveal.css +3 -0
- package/dist/css/animate-rotate.css +3 -0
- package/dist/css/animate-scramble.css +5 -0
- package/dist/css/animate-shake.css +3 -0
- package/dist/css/animate-slide.css +3 -0
- package/dist/css/animate-split.css +4 -0
- package/dist/css/animate-typing.css +4 -0
- package/dist/css/animate-zoom.css +3 -0
- package/dist/css/app-logo.css +2 -0
- package/dist/css/area-chart.css +12 -0
- package/dist/css/aspect-ratio.css +2 -0
- package/dist/css/avatar.css +2 -0
- package/dist/css/back-top.css +11 -0
- package/dist/css/badge.css +2 -0
- package/dist/css/bar-chart.css +10 -0
- package/dist/css/base.css +2 -3
- package/dist/css/blockquote.css +2 -0
- package/dist/css/bottom-navigation.css +4 -0
- package/dist/css/box.css +2 -0
- package/dist/css/breadcrumb.css +6 -0
- package/dist/css/button-group.css +2 -0
- package/dist/css/button.css +7 -0
- package/dist/css/calendar.css +17 -0
- package/dist/css/card.css +2 -0
- package/dist/css/carousel.css +10 -0
- package/dist/css/chat-bubble.css +6 -0
- package/dist/css/checkbox.css +3 -0
- package/dist/css/chip.css +8 -0
- package/dist/css/code-block.css +6 -0
- package/dist/css/collapsible.css +3 -0
- package/dist/css/color-picker.css +17 -0
- package/dist/css/combobox.css +10 -0
- package/dist/css/command-palette.css +7 -0
- package/dist/css/confirm.css +9 -0
- package/dist/css/container.css +5 -0
- package/dist/css/data-list.css +2 -0
- package/dist/css/data-table.css +15 -0
- package/dist/css/date-picker.css +16 -0
- package/dist/css/date-range-picker.css +16 -0
- package/dist/css/date-time-picker.css +16 -0
- package/dist/css/divider.css +2 -0
- package/dist/css/drawer.css +6 -0
- package/dist/css/empty.css +2 -0
- package/dist/css/fieldset.css +2 -0
- package/dist/css/file-picker.css +8 -0
- package/dist/css/flex.css +5 -0
- package/dist/css/floating-action-button.css +7 -0
- package/dist/css/floating-bottom-navigation.css +5 -0
- package/dist/css/footer.css +6 -0
- package/dist/css/form.css +2 -0
- package/dist/css/gallery.css +15 -0
- package/dist/css/gauge-chart.css +11 -0
- package/dist/css/grid.css +5 -0
- package/dist/css/header.css +6 -0
- package/dist/css/heatmap-chart.css +10 -0
- package/dist/css/highlight.css +2 -0
- package/dist/css/hot-keys.css +3 -0
- package/dist/css/hover-card.css +9 -0
- package/dist/css/how-to-steps.css +3 -0
- package/dist/css/icon-button.css +7 -0
- package/dist/css/icon.css +1 -0
- package/dist/css/image.css +7 -0
- package/dist/css/line-chart.css +12 -0
- package/dist/css/list.css +2 -0
- package/dist/css/menu.css +5 -0
- package/dist/css/menubar.css +5 -0
- package/dist/css/meter.css +6 -0
- package/dist/css/mockup.css +4 -0
- package/dist/css/modal.css +5 -0
- package/dist/css/navigation-menu.css +4 -0
- package/dist/css/number-field.css +10 -0
- package/dist/css/otp-field.css +6 -0
- package/dist/css/overlay.css +4 -0
- package/dist/css/page-layout.css +7 -0
- package/dist/css/pagination.css +8 -0
- package/dist/css/panes.css +7 -0
- package/dist/css/pie-chart.css +10 -0
- package/dist/css/pill.css +4 -0
- package/dist/css/popconfirm.css +12 -0
- package/dist/css/popover.css +11 -0
- package/dist/css/portal.css +1 -0
- package/dist/css/progress-box.css +5 -0
- package/dist/css/progress-circular.css +5 -0
- package/dist/css/progress-linear.css +5 -0
- package/dist/css/radio-group.css +3 -0
- package/dist/css/rating.css +6 -0
- package/dist/css/scatter-chart.css +10 -0
- package/dist/css/scroll-area.css +2 -0
- package/dist/css/scroll-zone.css +15 -0
- package/dist/css/segmented-button.css +5 -0
- package/dist/css/select.css +9 -0
- package/dist/css/show.css +1 -0
- package/dist/css/sidebar.css +16 -0
- package/dist/css/skeleton.css +2 -0
- package/dist/css/slider.css +3 -0
- package/dist/css/sparkline.css +10 -0
- package/dist/css/spoiler.css +10 -0
- package/dist/css/stack.css +5 -0
- package/dist/css/stat.css +2 -0
- package/dist/css/stepper.css +8 -0
- package/dist/css/switch.css +3 -0
- package/dist/css/table.css +3 -0
- package/dist/css/tabs.css +7 -0
- package/dist/css/text-field.css +8 -0
- package/dist/css/text-link.css +6 -0
- package/dist/css/time-picker.css +16 -0
- package/dist/css/timeline-chart.css +10 -0
- package/dist/css/timeline.css +6 -0
- package/dist/css/toast.css +5 -0
- package/dist/css/toggle.css +5 -0
- package/dist/css/toolbar.css +2 -0
- package/dist/css/tooltip.css +9 -0
- package/dist/css/tour.css +10 -0
- package/dist/css/transfer.css +13 -0
- package/dist/css/tree-select.css +14 -0
- package/dist/css/tree.css +3 -0
- package/dist/css/visually-hidden.css +2 -0
- package/dist/css/window-pane.css +9 -0
- package/dist/internal/animate.d.ts +59 -4
- package/dist/internal/animate.js +1 -1
- package/dist/internal/bottom-bar.js +1 -1
- package/dist/internal/calendar.js +1 -1
- package/dist/internal/chart-frame.d.ts +130 -11
- package/dist/internal/chart-frame.js +1 -1
- package/dist/internal/commit-change.d.ts +38 -0
- package/dist/internal/commit-change.js +1 -0
- package/dist/internal/data-table.d.ts +2 -2
- package/dist/internal/data-table.js +1 -1
- package/dist/internal/date.d.ts +9 -0
- package/dist/internal/date.js +1 -1
- package/dist/internal/defaults.d.ts +34 -1
- package/dist/internal/defaults.js +1 -1
- package/dist/internal/direction.d.ts +8 -2
- package/dist/internal/direction.js +1 -1
- package/dist/internal/form.d.ts +43 -0
- package/dist/internal/form.js +1 -1
- package/dist/internal/format.d.ts +4 -1
- package/dist/internal/format.js +1 -1
- package/dist/internal/gallery.d.ts +28 -0
- package/dist/internal/gallery.js +1 -1
- package/dist/internal/glow.d.ts +7 -2
- package/dist/internal/glow.js +1 -1
- package/dist/internal/heading.d.ts +11 -0
- package/dist/internal/heading.js +1 -0
- package/dist/internal/highlight.d.ts +4 -2
- package/dist/internal/highlight.js +1 -1
- package/dist/internal/labels.d.ts +5 -0
- package/dist/internal/labels.js +1 -1
- package/dist/internal/layout-box.d.ts +35 -0
- package/dist/internal/layout-box.js +1 -0
- package/dist/internal/lazy.d.ts +37 -0
- package/dist/internal/lazy.js +1 -0
- package/dist/internal/media.d.ts +6 -0
- package/dist/internal/media.js +1 -1
- package/dist/internal/page-layout.d.ts +24 -13
- package/dist/internal/page-layout.js +1 -1
- package/dist/internal/picker.d.ts +1 -1
- package/dist/internal/picker.js +1 -1
- package/dist/internal/progress.d.ts +24 -0
- package/dist/internal/progress.js +1 -1
- package/dist/internal/search.d.ts +12 -0
- package/dist/internal/search.js +1 -1
- package/dist/internal/sizer.d.ts +15 -8
- package/dist/internal/sizer.js +1 -1
- package/dist/internal/styles.d.ts +22 -6
- package/dist/internal/styles.js +1 -1
- package/dist/internal/wheel.d.ts +13 -1
- package/dist/internal/wheel.js +1 -1
- package/dist/internal/window.js +1 -1
- package/dist/locales/de.js +1 -1
- package/dist/locales/es.js +1 -1
- package/dist/locales/fr.js +1 -1
- package/dist/locales/ja.js +1 -1
- package/dist/locales/ko.js +1 -1
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +758 -40
- package/dist/tokens.css +758 -40
- package/dist/types.d.ts +10 -1
- package/package.json +18 -17
package/dist/tailwind.css
CHANGED
|
@@ -52,8 +52,11 @@
|
|
|
52
52
|
* glass around it, and the `accent` — the one value that has to be *read* off a
|
|
53
53
|
* surface rather than looked at.
|
|
54
54
|
*
|
|
55
|
-
* Three values are hand-picked per family and
|
|
56
|
-
*
|
|
55
|
+
* Three values are hand-picked per family here, and an `accent` in each theme
|
|
56
|
+
* block below. Everything else is derived from those: `-fill` is a
|
|
57
|
+
* `linear-gradient()` between the two ends, `-tint`, `-soft` and `-line` are a
|
|
58
|
+
* `color-mix()` of `solid` or `accent` with `transparent`, and `-ring` is
|
|
59
|
+
* `accent` itself. Adding a family is still five places, though: one entry in
|
|
57
60
|
* `PlassColor`, those three lines here, an `accent` in each of the three theme
|
|
58
61
|
* blocks below, the eight derived declarations, which are written out per
|
|
59
62
|
* family rather than generated, and the Flutter package's own enum and
|
|
@@ -195,6 +198,239 @@
|
|
|
195
198
|
--plass-bottom-navigation-height: 0px;
|
|
196
199
|
}
|
|
197
200
|
|
|
201
|
+
/* ---------------------------------------------------------------------------
|
|
202
|
+
* The room a pinned header takes in a page layout
|
|
203
|
+
*
|
|
204
|
+
* A `PlHeader` with `position="fixed"` is out of the flow, so a `PlPageLayout`
|
|
205
|
+
* pads its content down by the header's height and starts its sidebars there.
|
|
206
|
+
* A `sticky` one across the whole width is in the flow, but it stays across
|
|
207
|
+
* the top of the window, so the sidebars under it start below it and are that
|
|
208
|
+
* much shorter. The layout measures the height and writes it on its root — but
|
|
209
|
+
* only once JavaScript runs, so the HTML a server sends would be drawn with
|
|
210
|
+
* the content under a fixed header, or with the sidebars under a sticky one as
|
|
211
|
+
* tall as the whole window, which pushes a short page's footer a header's
|
|
212
|
+
* height down. Both would move a moment later, when the page hydrates.
|
|
213
|
+
*
|
|
214
|
+
* These rules give that first paint the same room out of what the stylesheet
|
|
215
|
+
* already knows: the header's floor for its `size`, which is the ladder of
|
|
216
|
+
* `barMinHeightClasses` in `PlHeader.tsx` spelled in the same `--spacing`, and
|
|
217
|
+
* the hairlines along its top and bottom edges. A header whose content is
|
|
218
|
+
* taller than its floor is still measured, and the measurement is an inline
|
|
219
|
+
* style on the same root, so it replaces all of this the moment it is written.
|
|
220
|
+
*
|
|
221
|
+
* Two paths for a fixed header, because it is the layout's own child or, with
|
|
222
|
+
* `headerSpan="content"`, its content column's. A sticky header counts only as
|
|
223
|
+
* the layout's own child: in the content column it sits beside the sidebars
|
|
224
|
+
* rather than over them. A `PlHeader` any deeper is one the page drew rather
|
|
225
|
+
* than the layout's.
|
|
226
|
+
*
|
|
227
|
+
* Every layout starts from zero rather than from what it inherits, so a layout
|
|
228
|
+
* inside another one's page does not take the outer header's room as its own.
|
|
229
|
+
* ------------------------------------------------------------------------- */
|
|
230
|
+
|
|
231
|
+
.plass-layout {
|
|
232
|
+
--p-layout-header: 0px;
|
|
233
|
+
--p-layout-header-inset: 0px;
|
|
234
|
+
--p-layout-header-floor: 0px;
|
|
235
|
+
--p-layout-header-rule: 0px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.plass-layout:has(> .plass-header-fixed, > div > div > .plass-header-fixed) {
|
|
239
|
+
--p-layout-header: calc(var(--p-layout-header-floor) + var(--p-layout-header-rule));
|
|
240
|
+
--p-layout-header-inset: var(--p-layout-header);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.plass-layout:has(> .plass-header-sticky) {
|
|
244
|
+
--p-layout-header: calc(var(--p-layout-header-floor) + var(--p-layout-header-rule));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.plass-layout:has(
|
|
248
|
+
> .plass-header-fixed[data-size='xs'],
|
|
249
|
+
> div > div > .plass-header-fixed[data-size='xs'],
|
|
250
|
+
> .plass-header-sticky[data-size='xs']
|
|
251
|
+
) {
|
|
252
|
+
--p-layout-header-floor: calc(var(--spacing, 0.25rem) * 10);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.plass-layout:has(
|
|
256
|
+
> .plass-header-fixed[data-size='sm'],
|
|
257
|
+
> div > div > .plass-header-fixed[data-size='sm'],
|
|
258
|
+
> .plass-header-sticky[data-size='sm']
|
|
259
|
+
) {
|
|
260
|
+
--p-layout-header-floor: calc(var(--spacing, 0.25rem) * 12);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.plass-layout:has(
|
|
264
|
+
> .plass-header-fixed[data-size='md'],
|
|
265
|
+
> div > div > .plass-header-fixed[data-size='md'],
|
|
266
|
+
> .plass-header-sticky[data-size='md']
|
|
267
|
+
) {
|
|
268
|
+
--p-layout-header-floor: calc(var(--spacing, 0.25rem) * 16);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.plass-layout:has(
|
|
272
|
+
> .plass-header-fixed[data-size='lg'],
|
|
273
|
+
> div > div > .plass-header-fixed[data-size='lg'],
|
|
274
|
+
> .plass-header-sticky[data-size='lg']
|
|
275
|
+
) {
|
|
276
|
+
--p-layout-header-floor: calc(var(--spacing, 0.25rem) * 20);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.plass-layout:has(
|
|
280
|
+
> .plass-header-fixed[data-size='xl'],
|
|
281
|
+
> div > div > .plass-header-fixed[data-size='xl'],
|
|
282
|
+
> .plass-header-sticky[data-size='xl']
|
|
283
|
+
) {
|
|
284
|
+
--p-layout-header-floor: calc(var(--spacing, 0.25rem) * 24);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* The divider is a line along the bottom; a glass sheet has an edge all round,
|
|
288
|
+
which the divider only colours. Later, so the glass wins where both match. */
|
|
289
|
+
.plass-layout:has(
|
|
290
|
+
> .plass-header-fixed[data-divider],
|
|
291
|
+
> div > div > .plass-header-fixed[data-divider],
|
|
292
|
+
> .plass-header-sticky[data-divider]
|
|
293
|
+
) {
|
|
294
|
+
--p-layout-header-rule: 1px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.plass-layout:has(
|
|
298
|
+
> .plass-header-fixed[data-variant='glass'],
|
|
299
|
+
> div > div > .plass-header-fixed[data-variant='glass'],
|
|
300
|
+
> .plass-header-sticky[data-variant='glass']
|
|
301
|
+
) {
|
|
302
|
+
--p-layout-header-rule: 2px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* ---------------------------------------------------------------------------
|
|
306
|
+
* The room a pinned footer takes in a page layout
|
|
307
|
+
*
|
|
308
|
+
* The same arrangement at the other end, with one difference: a `PlFooter`
|
|
309
|
+
* has no height floor. What the stylesheet knows of its height is the air
|
|
310
|
+
* above and below its content, which is `sheetPaddingYClasses` in
|
|
311
|
+
* `internal/styles.ts` for its `size` and `density` spelled in the same
|
|
312
|
+
* `--spacing`, and the hairlines along its edges. The content is the caller's,
|
|
313
|
+
* and only the layout's measurement knows how tall it is, so a server's first
|
|
314
|
+
* paint reserves the air and the edges and the measurement adds the rest.
|
|
315
|
+
*
|
|
316
|
+
* The two paths of a fixed footer, the one path of a sticky footer that spans
|
|
317
|
+
* the full width, and the start from zero are the header's, for its reasons.
|
|
318
|
+
* ------------------------------------------------------------------------- */
|
|
319
|
+
|
|
320
|
+
.plass-layout {
|
|
321
|
+
--p-layout-footer: 0px;
|
|
322
|
+
--p-layout-footer-inset: 0px;
|
|
323
|
+
--p-layout-footer-floor: 0px;
|
|
324
|
+
--p-layout-footer-rule: 0px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.plass-layout:has(> .plass-footer-fixed, > div > div > .plass-footer-fixed) {
|
|
328
|
+
--p-layout-footer: calc(var(--p-layout-footer-floor) + var(--p-layout-footer-rule));
|
|
329
|
+
--p-layout-footer-inset: var(--p-layout-footer);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.plass-layout:has(> .plass-footer-sticky) {
|
|
333
|
+
--p-layout-footer: calc(var(--p-layout-footer-floor) + var(--p-layout-footer-rule));
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.plass-layout:has(
|
|
337
|
+
> .plass-footer-fixed[data-size='xs'][data-density='default'],
|
|
338
|
+
> div > div > .plass-footer-fixed[data-size='xs'][data-density='default'],
|
|
339
|
+
> .plass-footer-sticky[data-size='xs'][data-density='default']
|
|
340
|
+
) {
|
|
341
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 5);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.plass-layout:has(
|
|
345
|
+
> .plass-footer-fixed[data-size='sm'][data-density='default'],
|
|
346
|
+
> div > div > .plass-footer-fixed[data-size='sm'][data-density='default'],
|
|
347
|
+
> .plass-footer-sticky[data-size='sm'][data-density='default']
|
|
348
|
+
) {
|
|
349
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 7);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.plass-layout:has(
|
|
353
|
+
> .plass-footer-fixed[data-size='md'][data-density='default'],
|
|
354
|
+
> div > div > .plass-footer-fixed[data-size='md'][data-density='default'],
|
|
355
|
+
> .plass-footer-sticky[data-size='md'][data-density='default']
|
|
356
|
+
) {
|
|
357
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 10);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.plass-layout:has(
|
|
361
|
+
> .plass-footer-fixed[data-size='lg'][data-density='default'],
|
|
362
|
+
> div > div > .plass-footer-fixed[data-size='lg'][data-density='default'],
|
|
363
|
+
> .plass-footer-sticky[data-size='lg'][data-density='default']
|
|
364
|
+
) {
|
|
365
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 12);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.plass-layout:has(
|
|
369
|
+
> .plass-footer-fixed[data-size='xl'][data-density='default'],
|
|
370
|
+
> div > div > .plass-footer-fixed[data-size='xl'][data-density='default'],
|
|
371
|
+
> .plass-footer-sticky[data-size='xl'][data-density='default']
|
|
372
|
+
) {
|
|
373
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 14);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.plass-layout:has(
|
|
377
|
+
> .plass-footer-fixed[data-size='xs'][data-density='compact'],
|
|
378
|
+
> div > div > .plass-footer-fixed[data-size='xs'][data-density='compact'],
|
|
379
|
+
> .plass-footer-sticky[data-size='xs'][data-density='compact']
|
|
380
|
+
) {
|
|
381
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 4);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.plass-layout:has(
|
|
385
|
+
> .plass-footer-fixed[data-size='sm'][data-density='compact'],
|
|
386
|
+
> div > div > .plass-footer-fixed[data-size='sm'][data-density='compact'],
|
|
387
|
+
> .plass-footer-sticky[data-size='sm'][data-density='compact']
|
|
388
|
+
) {
|
|
389
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 5);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.plass-layout:has(
|
|
393
|
+
> .plass-footer-fixed[data-size='md'][data-density='compact'],
|
|
394
|
+
> div > div > .plass-footer-fixed[data-size='md'][data-density='compact'],
|
|
395
|
+
> .plass-footer-sticky[data-size='md'][data-density='compact']
|
|
396
|
+
) {
|
|
397
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 7);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.plass-layout:has(
|
|
401
|
+
> .plass-footer-fixed[data-size='lg'][data-density='compact'],
|
|
402
|
+
> div > div > .plass-footer-fixed[data-size='lg'][data-density='compact'],
|
|
403
|
+
> .plass-footer-sticky[data-size='lg'][data-density='compact']
|
|
404
|
+
) {
|
|
405
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 8);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.plass-layout:has(
|
|
409
|
+
> .plass-footer-fixed[data-size='xl'][data-density='compact'],
|
|
410
|
+
> div > div > .plass-footer-fixed[data-size='xl'][data-density='compact'],
|
|
411
|
+
> .plass-footer-sticky[data-size='xl'][data-density='compact']
|
|
412
|
+
) {
|
|
413
|
+
--p-layout-footer-floor: calc(var(--spacing, 0.25rem) * 10);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* The divider is a line along the top; the glass wins where both match, as
|
|
417
|
+
on the header. */
|
|
418
|
+
.plass-layout:has(
|
|
419
|
+
> .plass-footer-fixed[data-divider],
|
|
420
|
+
> div > div > .plass-footer-fixed[data-divider],
|
|
421
|
+
> .plass-footer-sticky[data-divider]
|
|
422
|
+
) {
|
|
423
|
+
--p-layout-footer-rule: 1px;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.plass-layout:has(
|
|
427
|
+
> .plass-footer-fixed[data-variant='glass'],
|
|
428
|
+
> div > div > .plass-footer-fixed[data-variant='glass'],
|
|
429
|
+
> .plass-footer-sticky[data-variant='glass']
|
|
430
|
+
) {
|
|
431
|
+
--p-layout-footer-rule: 2px;
|
|
432
|
+
}
|
|
433
|
+
|
|
198
434
|
/* ---------------------------------------------------------------------------
|
|
199
435
|
* Light theme (default)
|
|
200
436
|
*
|
|
@@ -316,8 +552,10 @@
|
|
|
316
552
|
--plass-shadow-ambient: rgb(20 40 90 / 0.1);
|
|
317
553
|
--plass-tint-strength: 35%;
|
|
318
554
|
|
|
319
|
-
/* The scrim behind a modal surface.
|
|
555
|
+
/* The scrim behind a modal surface, and the blur it lays over the page. The
|
|
556
|
+
blur is the same in every theme, so it is written here only. */
|
|
320
557
|
--plass-scrim: rgb(16 24 40 / 0.4);
|
|
558
|
+
--plass-scrim-blur: blur(2px);
|
|
321
559
|
|
|
322
560
|
/* Corner radius: roughly 30% of the control height, and roughly constant in
|
|
323
561
|
feel across the ladder — a Plass corner is a moulded fillet, not a pill and
|
|
@@ -445,7 +683,10 @@
|
|
|
445
683
|
|
|
446
684
|
--plass-surface: #141b30;
|
|
447
685
|
--plass-fg: #e7eaf3;
|
|
448
|
-
|
|
686
|
+
/* Light enough to clear 4.5:1 on the densest step of the glass, which is
|
|
687
|
+
lighter than the sheet: a modal or a select's list over an opaque sheet
|
|
688
|
+
is the hardest place muted text is read. */
|
|
689
|
+
--plass-muted-fg: #a0a9bf;
|
|
449
690
|
--plass-border: rgb(255 255 255 / 0.12);
|
|
450
691
|
|
|
451
692
|
--plass-bg-from: #111731;
|
|
@@ -524,7 +765,7 @@
|
|
|
524
765
|
|
|
525
766
|
--plass-surface: #141b30;
|
|
526
767
|
--plass-fg: #e7eaf3;
|
|
527
|
-
--plass-muted-fg: #
|
|
768
|
+
--plass-muted-fg: #a0a9bf;
|
|
528
769
|
--plass-border: rgb(255 255 255 / 0.12);
|
|
529
770
|
|
|
530
771
|
--plass-bg-from: #111731;
|
|
@@ -594,11 +835,79 @@
|
|
|
594
835
|
--plass-chart-div-on-5: var(--plass-fg);
|
|
595
836
|
}
|
|
596
837
|
|
|
838
|
+
/* ---------------------------------------------------------------------------
|
|
839
|
+
* Reduced transparency
|
|
840
|
+
*
|
|
841
|
+
* A reader who has asked their system for less transparency gets every sheet
|
|
842
|
+
* opaque. The blur goes, and each rung of the glass ladder is laid over the
|
|
843
|
+
* theme's own `--plass-surface` instead of over the page: the same white at the
|
|
844
|
+
* same strength, with the opaque sheet behind it where the page used to be.
|
|
845
|
+
* That is the pair of layers a pinned table header already stacks so that rows
|
|
846
|
+
* do not show through it, and it keeps the ladder: an engaged sheet still holds
|
|
847
|
+
* more light than one at rest, except on a white surface, which has no lighter
|
|
848
|
+
* step to take.
|
|
849
|
+
*
|
|
850
|
+
* Only the fill and the blur move. The hairline, the light along the top edge,
|
|
851
|
+
* the shadows and the focus ring are drawn exactly as before, so a sheet keeps
|
|
852
|
+
* its edge and its place above the page.
|
|
853
|
+
*
|
|
854
|
+
* The scrim behind a modal, a drawer, a command palette or a tour, and an
|
|
855
|
+
* overlay's `scrim` tone, loses its blur too and keeps its dim, which is what
|
|
856
|
+
* tells the reader the page behind has stopped being reachable. Its blur is the same in every theme, so the
|
|
857
|
+
* first block alone turns it off, and every element inherits that.
|
|
858
|
+
*
|
|
859
|
+
* It is done here, on the tokens, rather than on the components, because the
|
|
860
|
+
* sheets in the library paint with these four: a new component that draws glass
|
|
861
|
+
* the house way is opaque for this reader without having to know that this
|
|
862
|
+
* block exists. The two that blur a translucency of their own, `PlOverlay`'s
|
|
863
|
+
* `glass` tone and a `PlWindowPane`, answer the same reader in their own
|
|
864
|
+
* classes.
|
|
865
|
+
*
|
|
866
|
+
* Three blocks for the three theme blocks above, each with the selector of the
|
|
867
|
+
* one it overrides, because the strengths are per theme and a rule only takes
|
|
868
|
+
* over from one at least as specific as itself. The forced dark block stays
|
|
869
|
+
* last, for the reason it is last up there. The surface is the first colour in
|
|
870
|
+
* each mix because the compiler writes that one out as the fallback for a
|
|
871
|
+
* browser with no `color-mix()`, and the opaque surface is the right one.
|
|
872
|
+
* ------------------------------------------------------------------------- */
|
|
873
|
+
|
|
874
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
875
|
+
:root,
|
|
876
|
+
.light,
|
|
877
|
+
[data-theme='light'] {
|
|
878
|
+
--plass-glass: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 62%);
|
|
879
|
+
--plass-glass-hover: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 76%);
|
|
880
|
+
--plass-glass-press: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 88%);
|
|
881
|
+
--plass-blur: none;
|
|
882
|
+
--plass-scrim-blur: none;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
@media (prefers-reduced-transparency: reduce) and (prefers-color-scheme: dark) {
|
|
887
|
+
:root:not(.light):not([data-theme='light']) {
|
|
888
|
+
--plass-glass: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 7%);
|
|
889
|
+
--plass-glass-hover: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 11%);
|
|
890
|
+
--plass-glass-press: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 15%);
|
|
891
|
+
--plass-blur: none;
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
896
|
+
.dark,
|
|
897
|
+
[data-theme='dark'] {
|
|
898
|
+
--plass-glass: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 7%);
|
|
899
|
+
--plass-glass-hover: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 11%);
|
|
900
|
+
--plass-glass-press: color-mix(in srgb, var(--plass-surface), rgb(255 255 255) 15%);
|
|
901
|
+
--plass-blur: none;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
|
|
597
905
|
/* ---------------------------------------------------------------------------
|
|
598
906
|
* Derived tokens
|
|
599
907
|
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
908
|
+
* A family's gradient, tint, soft fills, hairlines and focus ring are computed
|
|
909
|
+
* from its hand-picked values rather than picked per theme: the gradient from
|
|
910
|
+
* the two ends, the tint from `solid`, and the rest from `accent`.
|
|
602
911
|
*
|
|
603
912
|
* **This block is repeated for every theme root**, because a custom property
|
|
604
913
|
* resolves its `var()`s on the element that declares it — declaring these only
|
|
@@ -609,8 +918,9 @@
|
|
|
609
918
|
* `--plass-primary-solid` on a `<div>` changes the base and nothing else,
|
|
610
919
|
* because every value derived from it was computed further up, where the old
|
|
611
920
|
* colour still is. The class re-runs the whole block on that element, so the
|
|
612
|
-
* gradient
|
|
613
|
-
*
|
|
921
|
+
* gradient and the tint follow the ends that were just written beside them,
|
|
922
|
+
* and the soft fills, the hairline and the ring follow an `accent` written
|
|
923
|
+
* there too. It is the one hook here that does not force a theme:
|
|
614
924
|
* `--plass-tint-strength` and the rest inherit from whichever theme root is
|
|
615
925
|
* above, so a scoped family works the same in light and in dark.
|
|
616
926
|
* ------------------------------------------------------------------------- */
|
|
@@ -787,6 +1097,25 @@
|
|
|
787
1097
|
margin: 0;
|
|
788
1098
|
}
|
|
789
1099
|
|
|
1100
|
+
/* ---------------------------------------------------------------------------
|
|
1101
|
+
* Struts
|
|
1102
|
+
*
|
|
1103
|
+
* An empty line in the type of the element that carries the class, for lining
|
|
1104
|
+
* something up by a line of text it does not hold: a card's `headerAction` is
|
|
1105
|
+
* centred with one so that its middle meets the middle of the title's first
|
|
1106
|
+
* line. A zero-width space is the least a line box needs, and as generated
|
|
1107
|
+
* content it never reaches the element's `textContent`.
|
|
1108
|
+
*
|
|
1109
|
+
* In CSS rather than in Tailwind because the character is an escape: a
|
|
1110
|
+
* `content-[…]` utility holding it matches its rule only while every tool
|
|
1111
|
+
* between the source and the `dist/` a project's Tailwind scans keeps the
|
|
1112
|
+
* backslash as written.
|
|
1113
|
+
* ------------------------------------------------------------------------- */
|
|
1114
|
+
|
|
1115
|
+
.plass-strut::before {
|
|
1116
|
+
content: '\200b';
|
|
1117
|
+
}
|
|
1118
|
+
|
|
790
1119
|
/* ---------------------------------------------------------------------------
|
|
791
1120
|
* Links
|
|
792
1121
|
*
|
|
@@ -1041,28 +1370,56 @@
|
|
|
1041
1370
|
* Two rules hold across all three. **Nothing changes the paint.** A Plass fill is a gradient and
|
|
1042
1371
|
* a gradient cannot be interpolated, so what moves is a length or an opacity and
|
|
1043
1372
|
* the fill itself is either there or not. And **the segment travels on
|
|
1044
|
-
* `
|
|
1045
|
-
*
|
|
1046
|
-
*
|
|
1047
|
-
*
|
|
1373
|
+
* `translate`**, never on an inset: an inset lays the box out again on every
|
|
1374
|
+
* frame, and the browser records each of those frames as a layout shift, which
|
|
1375
|
+
* a page loading behind an indicator pays for in its CLS for as long as it
|
|
1376
|
+
* loads. The skeleton's highlight travels the same way.
|
|
1377
|
+
*
|
|
1378
|
+
* The segment rests at the inline start and a percentage `translate` resolves
|
|
1379
|
+
* against its own width, so the keyframes are the old path divided by 45%: one
|
|
1380
|
+
* whole width out before the start, to the end of the groove, which is 1 / 0.45
|
|
1381
|
+
* of its width away. There is no logical `translate`, so the sign is turned
|
|
1382
|
+
* round under RTL by hand, the way the marquee's is (see `.plass-marquee-track`
|
|
1383
|
+
* for why it is written twice).
|
|
1048
1384
|
* ------------------------------------------------------------------------- */
|
|
1049
1385
|
|
|
1050
1386
|
@keyframes plass-progress-sweep {
|
|
1051
1387
|
from {
|
|
1052
|
-
|
|
1388
|
+
translate: calc(-100% * var(--p-anim-along, 1)) 0;
|
|
1053
1389
|
}
|
|
1054
1390
|
to {
|
|
1055
|
-
|
|
1391
|
+
translate: calc(100% / 0.45 * var(--p-anim-along, 1)) 0;
|
|
1056
1392
|
}
|
|
1057
1393
|
}
|
|
1058
1394
|
|
|
1059
1395
|
.plass-progress-sweep {
|
|
1060
1396
|
position: absolute;
|
|
1061
1397
|
inset-block: 0;
|
|
1398
|
+
inset-inline-start: 0;
|
|
1062
1399
|
inline-size: 45%;
|
|
1063
1400
|
animation: plass-progress-sweep 1.15s var(--plass-ease) infinite;
|
|
1064
1401
|
}
|
|
1065
1402
|
|
|
1403
|
+
.plass-progress-sweep:dir(rtl) {
|
|
1404
|
+
--p-anim-along: -1;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.plass-progress-sweep:dir(ltr) {
|
|
1408
|
+
--p-anim-along: 1;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/* The attribute, for a browser without `:dir()`; see `.plass-marquee-track` for
|
|
1412
|
+
why the selectors are written this way and how deep they reach. */
|
|
1413
|
+
@supports not selector(:dir(rtl)) {
|
|
1414
|
+
[dir='rtl'] .plass-progress-sweep {
|
|
1415
|
+
--p-anim-along: -1;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
[dir='rtl'] [dir='ltr'] .plass-progress-sweep {
|
|
1419
|
+
--p-anim-along: 1;
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1066
1423
|
/* The one place the library turns something, and the exception is the same one
|
|
1067
1424
|
the spinner already has: an indeterminate indicator that holds still says the
|
|
1068
1425
|
opposite of what it is for. `rotate` rather than `transform`, so nothing else
|
|
@@ -1119,10 +1476,17 @@
|
|
|
1119
1476
|
/* ---------------------------------------------------------------------------
|
|
1120
1477
|
* The travelling highlight on a placeholder
|
|
1121
1478
|
*
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
* box
|
|
1479
|
+
* It travels on `translate`, as the progress segment does and for the same
|
|
1480
|
+
* reason: an inset would lay the highlight out again on every frame and record
|
|
1481
|
+
* a layout shift each time, for as long as the page is waiting. The highlight
|
|
1482
|
+
* rests at the left edge and is 60% of the box, so its path of -60% to 100% of
|
|
1483
|
+
* the box is -100% to 100% / 0.6 of its own width.
|
|
1484
|
+
*
|
|
1485
|
+
* The left edge, and not the inline start, on purpose: this is a light
|
|
1486
|
+
* crossing a surface rather than something read along a line, so it runs left
|
|
1487
|
+
* to right in every writing direction, as the Flutter build's does. Its
|
|
1488
|
+
* keyframes leave `--p-anim-along` out for the same reason, so a placeholder
|
|
1489
|
+
* inside a right-to-left marquee does not inherit the turn.
|
|
1126
1490
|
*
|
|
1127
1491
|
* A pseudo-element rather than a child, so a `PlSkeleton` is one element per
|
|
1128
1492
|
* shape and a stack of ten lines is ten nodes rather than twenty. The gradient
|
|
@@ -1134,10 +1498,10 @@
|
|
|
1134
1498
|
|
|
1135
1499
|
@keyframes plass-skeleton-sweep {
|
|
1136
1500
|
from {
|
|
1137
|
-
|
|
1501
|
+
translate: -100% 0;
|
|
1138
1502
|
}
|
|
1139
1503
|
to {
|
|
1140
|
-
|
|
1504
|
+
translate: calc(100% / 0.6) 0;
|
|
1141
1505
|
}
|
|
1142
1506
|
}
|
|
1143
1507
|
|
|
@@ -1145,6 +1509,7 @@
|
|
|
1145
1509
|
content: '';
|
|
1146
1510
|
position: absolute;
|
|
1147
1511
|
inset-block: 0;
|
|
1512
|
+
left: 0;
|
|
1148
1513
|
inline-size: 60%;
|
|
1149
1514
|
background-image: linear-gradient(90deg, transparent, var(--p-soft-press), transparent);
|
|
1150
1515
|
animation: plass-skeleton-sweep 1.5s var(--plass-ease) infinite;
|
|
@@ -1539,6 +1904,81 @@
|
|
|
1539
1904
|
inherits: false;
|
|
1540
1905
|
}
|
|
1541
1906
|
|
|
1907
|
+
@property --p-lane-rows-xs {
|
|
1908
|
+
syntax: '*';
|
|
1909
|
+
inherits: false;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
@property --p-lane-rows-sm {
|
|
1913
|
+
syntax: '*';
|
|
1914
|
+
inherits: false;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
@property --p-lane-rows-md {
|
|
1918
|
+
syntax: '*';
|
|
1919
|
+
inherits: false;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
@property --p-lane-rows-lg {
|
|
1923
|
+
syntax: '*';
|
|
1924
|
+
inherits: false;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
@property --p-lane-rows-xl {
|
|
1928
|
+
syntax: '*';
|
|
1929
|
+
inherits: false;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
@property --p-lane-area-xs {
|
|
1933
|
+
syntax: '*';
|
|
1934
|
+
inherits: false;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
@property --p-lane-area-sm {
|
|
1938
|
+
syntax: '*';
|
|
1939
|
+
inherits: false;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
@property --p-lane-area-md {
|
|
1943
|
+
syntax: '*';
|
|
1944
|
+
inherits: false;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
@property --p-lane-area-lg {
|
|
1948
|
+
syntax: '*';
|
|
1949
|
+
inherits: false;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
@property --p-lane-area-xl {
|
|
1953
|
+
syntax: '*';
|
|
1954
|
+
inherits: false;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
@property --p-lane-span-xs {
|
|
1958
|
+
syntax: '*';
|
|
1959
|
+
inherits: false;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
@property --p-lane-span-sm {
|
|
1963
|
+
syntax: '*';
|
|
1964
|
+
inherits: false;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
@property --p-lane-span-md {
|
|
1968
|
+
syntax: '*';
|
|
1969
|
+
inherits: false;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
@property --p-lane-span-lg {
|
|
1973
|
+
syntax: '*';
|
|
1974
|
+
inherits: false;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
@property --p-lane-span-xl {
|
|
1978
|
+
syntax: '*';
|
|
1979
|
+
inherits: false;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1542
1982
|
.plass-grid,
|
|
1543
1983
|
.plass-flex {
|
|
1544
1984
|
--p-gap-x: var(--p-gap-x-xs, 0px);
|
|
@@ -1553,6 +1993,21 @@
|
|
|
1553
1993
|
--p-cols: var(--p-cols-xs, 2);
|
|
1554
1994
|
}
|
|
1555
1995
|
|
|
1996
|
+
/*
|
|
1997
|
+
* A masonry's deal at the width the window is: the list's rows, and each
|
|
1998
|
+
* tile's place in them and how many it spans. The span is read by the tile's
|
|
1999
|
+
* button, picture and caption as well, so it is the one of the three that
|
|
2000
|
+
* inherits.
|
|
2001
|
+
*/
|
|
2002
|
+
.plass-gallery-masonry {
|
|
2003
|
+
--p-lane-rows: var(--p-lane-rows-xs, none);
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
.plass-gallery-masonry > li {
|
|
2007
|
+
--p-lane-area: var(--p-lane-area-xs, auto);
|
|
2008
|
+
--p-lane-span: var(--p-lane-span-xs, 1);
|
|
2009
|
+
}
|
|
2010
|
+
|
|
1556
2011
|
/*
|
|
1557
2012
|
* `PlFlex`'s axis. One slot rather than two, because `reverse` is not
|
|
1558
2013
|
* responsive and the direction is: the component folds the two into the four
|
|
@@ -1617,6 +2072,15 @@
|
|
|
1617
2072
|
--p-cols: var(--p-cols-sm, var(--p-cols-xs, 2));
|
|
1618
2073
|
}
|
|
1619
2074
|
|
|
2075
|
+
.plass-gallery-masonry {
|
|
2076
|
+
--p-lane-rows: var(--p-lane-rows-sm, var(--p-lane-rows-xs, none));
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
.plass-gallery-masonry > li {
|
|
2080
|
+
--p-lane-area: var(--p-lane-area-sm, var(--p-lane-area-xs, auto));
|
|
2081
|
+
--p-lane-span: var(--p-lane-span-sm, var(--p-lane-span-xs, 1));
|
|
2082
|
+
}
|
|
2083
|
+
|
|
1620
2084
|
.plass-flex {
|
|
1621
2085
|
--p-dir: var(--p-dir-sm, var(--p-dir-xs, row));
|
|
1622
2086
|
}
|
|
@@ -1646,6 +2110,15 @@
|
|
|
1646
2110
|
--p-cols: var(--p-cols-md, var(--p-cols-sm, var(--p-cols-xs, 2)));
|
|
1647
2111
|
}
|
|
1648
2112
|
|
|
2113
|
+
.plass-gallery-masonry {
|
|
2114
|
+
--p-lane-rows: var(--p-lane-rows-md, var(--p-lane-rows-sm, var(--p-lane-rows-xs, none)));
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
.plass-gallery-masonry > li {
|
|
2118
|
+
--p-lane-area: var(--p-lane-area-md, var(--p-lane-area-sm, var(--p-lane-area-xs, auto)));
|
|
2119
|
+
--p-lane-span: var(--p-lane-span-md, var(--p-lane-span-sm, var(--p-lane-span-xs, 1)));
|
|
2120
|
+
}
|
|
2121
|
+
|
|
1649
2122
|
.plass-flex {
|
|
1650
2123
|
--p-dir: var(--p-dir-md, var(--p-dir-sm, var(--p-dir-xs, row)));
|
|
1651
2124
|
}
|
|
@@ -1675,6 +2148,24 @@
|
|
|
1675
2148
|
--p-cols: var(--p-cols-lg, var(--p-cols-md, var(--p-cols-sm, var(--p-cols-xs, 2))));
|
|
1676
2149
|
}
|
|
1677
2150
|
|
|
2151
|
+
.plass-gallery-masonry {
|
|
2152
|
+
--p-lane-rows: var(
|
|
2153
|
+
--p-lane-rows-lg,
|
|
2154
|
+
var(--p-lane-rows-md, var(--p-lane-rows-sm, var(--p-lane-rows-xs, none)))
|
|
2155
|
+
);
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
.plass-gallery-masonry > li {
|
|
2159
|
+
--p-lane-area: var(
|
|
2160
|
+
--p-lane-area-lg,
|
|
2161
|
+
var(--p-lane-area-md, var(--p-lane-area-sm, var(--p-lane-area-xs, auto)))
|
|
2162
|
+
);
|
|
2163
|
+
--p-lane-span: var(
|
|
2164
|
+
--p-lane-span-lg,
|
|
2165
|
+
var(--p-lane-span-md, var(--p-lane-span-sm, var(--p-lane-span-xs, 1)))
|
|
2166
|
+
);
|
|
2167
|
+
}
|
|
2168
|
+
|
|
1678
2169
|
.plass-flex {
|
|
1679
2170
|
--p-dir: var(--p-dir-lg, var(--p-dir-md, var(--p-dir-sm, var(--p-dir-xs, row))));
|
|
1680
2171
|
}
|
|
@@ -1722,6 +2213,30 @@
|
|
|
1722
2213
|
);
|
|
1723
2214
|
}
|
|
1724
2215
|
|
|
2216
|
+
.plass-gallery-masonry {
|
|
2217
|
+
--p-lane-rows: var(
|
|
2218
|
+
--p-lane-rows-xl,
|
|
2219
|
+
var(
|
|
2220
|
+
--p-lane-rows-lg,
|
|
2221
|
+
var(--p-lane-rows-md, var(--p-lane-rows-sm, var(--p-lane-rows-xs, none)))
|
|
2222
|
+
)
|
|
2223
|
+
);
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
.plass-gallery-masonry > li {
|
|
2227
|
+
--p-lane-area: var(
|
|
2228
|
+
--p-lane-area-xl,
|
|
2229
|
+
var(
|
|
2230
|
+
--p-lane-area-lg,
|
|
2231
|
+
var(--p-lane-area-md, var(--p-lane-area-sm, var(--p-lane-area-xs, auto)))
|
|
2232
|
+
)
|
|
2233
|
+
);
|
|
2234
|
+
--p-lane-span: var(
|
|
2235
|
+
--p-lane-span-xl,
|
|
2236
|
+
var(--p-lane-span-lg, var(--p-lane-span-md, var(--p-lane-span-sm, var(--p-lane-span-xs, 1))))
|
|
2237
|
+
);
|
|
2238
|
+
}
|
|
2239
|
+
|
|
1725
2240
|
.plass-flex {
|
|
1726
2241
|
--p-dir: var(
|
|
1727
2242
|
--p-dir-xl,
|
|
@@ -1770,7 +2285,7 @@
|
|
|
1770
2285
|
|
|
1771
2286
|
.plass-anim {
|
|
1772
2287
|
animation-duration: var(--p-anim-duration, 300ms);
|
|
1773
|
-
animation-delay: var(--p-anim-delay, 0ms);
|
|
2288
|
+
animation-delay: var(--p-anim-run-delay, var(--p-anim-delay, 0ms));
|
|
1774
2289
|
animation-timing-function: var(--p-anim-ease, var(--plass-ease));
|
|
1775
2290
|
animation-iteration-count: var(--p-anim-repeat, 1);
|
|
1776
2291
|
animation-direction: var(--p-anim-direction, normal);
|
|
@@ -1778,6 +2293,57 @@
|
|
|
1778
2293
|
animation-play-state: var(--p-anim-state, running);
|
|
1779
2294
|
}
|
|
1780
2295
|
|
|
2296
|
+
/*
|
|
2297
|
+
* The delay a run started with, kept until the next run.
|
|
2298
|
+
*
|
|
2299
|
+
* A new `animation-delay` applies to an animation that is already running, so
|
|
2300
|
+
* a `delay` changed while a run was under way sent it back to waiting: a fade
|
|
2301
|
+
* with a delay of 300ms given 1000ms at 400ms went back to nothing and waited
|
|
2302
|
+
* again. `src/internal/animate.ts` writes the delay into `--p-anim-run-delay`
|
|
2303
|
+
* as the run starts and takes it off when the next one does, so a new delay is
|
|
2304
|
+
* waited out from the next run on. A run still waiting has nothing written, and
|
|
2305
|
+
* a new delay is measured from when its wait began.
|
|
2306
|
+
*
|
|
2307
|
+
* Every element that reads it is reset here, because a custom property is
|
|
2308
|
+
* inherited and an effect nested inside a running one has a delay of its own.
|
|
2309
|
+
* The value written inline on an element outranks the reset. The arc of a
|
|
2310
|
+
* `PlAnimateLighting` is a pseudo-element, and takes its root's.
|
|
2311
|
+
*/
|
|
2312
|
+
.plass-anim,
|
|
2313
|
+
.plass-marquee-track,
|
|
2314
|
+
.plass-anim-lighting {
|
|
2315
|
+
--p-anim-run-delay: initial;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
/*
|
|
2319
|
+
* Every effect's slots are its own.
|
|
2320
|
+
*
|
|
2321
|
+
* An effect writes inline only the slots it has a value for, and a custom
|
|
2322
|
+
* property is inherited, so a slot it left out was whatever an effect around
|
|
2323
|
+
* it had written: a fade inside an endless linear turn eased linearly, took
|
|
2324
|
+
* the turn's one pass under reduced motion, and inside a `timeline="view"`
|
|
2325
|
+
* effect followed the scroll. Each element an effect writes its slots on
|
|
2326
|
+
* starts them over here, and what it writes inline outranks this. The strips
|
|
2327
|
+
* of a marquee and the lines of a headline read their root's, which is why
|
|
2328
|
+
* they are not on the list.
|
|
2329
|
+
*/
|
|
2330
|
+
.plass-anim,
|
|
2331
|
+
.plass-anim-lighting,
|
|
2332
|
+
.plass-marquee,
|
|
2333
|
+
.plass-headline {
|
|
2334
|
+
--p-anim-still-repeat: initial;
|
|
2335
|
+
--p-anim-ease: initial;
|
|
2336
|
+
--p-anim-timeline: initial;
|
|
2337
|
+
--p-anim-range: initial;
|
|
2338
|
+
--p-anim-opacity: initial;
|
|
2339
|
+
--p-anim-scale: initial;
|
|
2340
|
+
--p-anim-x: initial;
|
|
2341
|
+
--p-anim-y: initial;
|
|
2342
|
+
--p-anim-angle: initial;
|
|
2343
|
+
--p-anim-angle-to: initial;
|
|
2344
|
+
--p-anim-clip: initial;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
1781
2347
|
/*
|
|
1782
2348
|
* `timeline="view"`, and the whole of it.
|
|
1783
2349
|
*
|
|
@@ -2025,7 +2591,7 @@
|
|
|
2025
2591
|
filter: blur(var(--p-anim-glow-blur, 5px));
|
|
2026
2592
|
animation-name: plass-anim-lighting;
|
|
2027
2593
|
animation-duration: var(--p-anim-duration, 3s);
|
|
2028
|
-
animation-delay: var(--p-anim-delay, 0ms);
|
|
2594
|
+
animation-delay: var(--p-anim-run-delay, var(--p-anim-delay, 0ms));
|
|
2029
2595
|
/* Linear unless a caller says otherwise, which is what `curve` does in the
|
|
2030
2596
|
Flutter build: an arc that eases at both ends of a turn that has no ends
|
|
2031
2597
|
reads as a stutter, and that is a default rather than a rule. */
|
|
@@ -2098,7 +2664,7 @@
|
|
|
2098
2664
|
gap: var(--p-anim-gap, 0px);
|
|
2099
2665
|
animation-name: plass-anim-marquee-x;
|
|
2100
2666
|
animation-duration: var(--p-anim-duration, 12s);
|
|
2101
|
-
animation-delay: var(--p-anim-delay, 0ms);
|
|
2667
|
+
animation-delay: var(--p-anim-run-delay, var(--p-anim-delay, 0ms));
|
|
2102
2668
|
/* Linear unless a caller insists otherwise. An eased marquee slows at both
|
|
2103
2669
|
ends of a loop that has no ends, which reads as the page stuttering. */
|
|
2104
2670
|
animation-timing-function: var(--p-anim-ease, linear);
|
|
@@ -2108,7 +2674,14 @@
|
|
|
2108
2674
|
animation-play-state: var(--p-anim-state, running);
|
|
2109
2675
|
}
|
|
2110
2676
|
|
|
2111
|
-
|
|
2677
|
+
/* `:where()` keeps this as specific as `.plass-marquee-track` on its own, so
|
|
2678
|
+
the reduced-motion block below switches a vertical strip off as it does a
|
|
2679
|
+
horizontal one. Written more specifically, the name outranked that block's
|
|
2680
|
+
`animation: none`, so the first copy ran a pass in no time under the setting
|
|
2681
|
+
and went on from its own clock afterwards, while the second, not drawn until
|
|
2682
|
+
then, started afresh and ran behind it. The track is the strip's own child,
|
|
2683
|
+
so a strip running across inside one running down keeps its own way. */
|
|
2684
|
+
:where(.plass-marquee-vertical) > .plass-marquee-track {
|
|
2112
2685
|
flex-direction: column;
|
|
2113
2686
|
animation-name: plass-anim-marquee-y;
|
|
2114
2687
|
}
|
|
@@ -2120,15 +2693,43 @@
|
|
|
2120
2693
|
*
|
|
2121
2694
|
* There is no logical `translate`, so the sign is flipped by hand. The flex
|
|
2122
2695
|
* track has already reversed on its own, which is what puts the overflow on the
|
|
2123
|
-
* other side for the translate to bring in.
|
|
2124
|
-
*
|
|
2125
|
-
*
|
|
2696
|
+
* other side for the translate to bring in. `:dir()` asks for the direction the
|
|
2697
|
+
* track itself is in, which is the nearest `dir` above it however deeply one
|
|
2698
|
+
* region is nested in another.
|
|
2126
2699
|
*/
|
|
2127
|
-
[dir='rtl'] .plass-marquee-track,
|
|
2128
2700
|
.plass-marquee-track:dir(rtl) {
|
|
2129
2701
|
--p-anim-along: -1;
|
|
2130
2702
|
}
|
|
2131
2703
|
|
|
2704
|
+
.plass-marquee-track:dir(ltr) {
|
|
2705
|
+
--p-anim-along: 1;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
/*
|
|
2709
|
+
* `:dir()` is newer than the rest of this sheet's floor (Chrome 120), so a
|
|
2710
|
+
* browser without it reads the attribute instead, and only that browser:
|
|
2711
|
+
* written beside `:dir()` for every browser, the attribute rules would outrank
|
|
2712
|
+
* it where the two disagree.
|
|
2713
|
+
*
|
|
2714
|
+
* `[dir='rtl']` asks whether any ancestor is right to left rather than the
|
|
2715
|
+
* nearest, so the second rule turns a left-to-right region inside a
|
|
2716
|
+
* right-to-left page back again; it is the more specific, so the nearer `dir`
|
|
2717
|
+
* wins. It is `[dir='rtl'] [dir='ltr']` and not a bare `[dir='ltr']`: a page
|
|
2718
|
+
* that writes `dir="ltr"` on its root would otherwise turn every right-to-left
|
|
2719
|
+
* region inside it the English way. That answers one region inside another in
|
|
2720
|
+
* either order and goes no deeper: in such a browser, a right-to-left region
|
|
2721
|
+
* inside a left-to-right one inside a right-to-left page runs the English way.
|
|
2722
|
+
*/
|
|
2723
|
+
@supports not selector(:dir(rtl)) {
|
|
2724
|
+
[dir='rtl'] .plass-marquee-track {
|
|
2725
|
+
--p-anim-along: -1;
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
[dir='rtl'] [dir='ltr'] .plass-marquee-track {
|
|
2729
|
+
--p-anim-along: 1;
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2132
2733
|
.plass-marquee[data-pause-on-hover]:hover .plass-marquee-track {
|
|
2133
2734
|
animation-play-state: paused;
|
|
2134
2735
|
}
|
|
@@ -2755,19 +3356,30 @@
|
|
|
2755
3356
|
* tiles across and a layout grid is counted in tracks, and two is the narrowest
|
|
2756
3357
|
* arrangement that still reads as a set.
|
|
2757
3358
|
*
|
|
2758
|
-
* The
|
|
2759
|
-
* in CSS Grid off `--p-cols
|
|
2760
|
-
*
|
|
2761
|
-
*
|
|
2762
|
-
*
|
|
2763
|
-
*
|
|
3359
|
+
* The rules below are what the slot is *for*. A grid, a quilt and a masonry lay
|
|
3360
|
+
* out in CSS Grid off `--p-cols`. A masonry also deals its items into lanes in
|
|
3361
|
+
* JavaScript, because which lane an item lands in depends on the heights of the
|
|
3362
|
+
* items before it and no stylesheet can work that out; it deals once for every
|
|
3363
|
+
* lane count the columns name and writes each deal as `--p-lane-*` slots, which
|
|
3364
|
+
* the chains above switch between, so a server's markup has the right lanes at
|
|
3365
|
+
* every width. A justified row is flexbox, which needs no count at all — it
|
|
3366
|
+
* fills to the edge with whatever fits.
|
|
2764
3367
|
* ------------------------------------------------------------------------- */
|
|
2765
3368
|
|
|
2766
3369
|
.plass-gallery-grid,
|
|
2767
|
-
.plass-gallery-quilted
|
|
3370
|
+
.plass-gallery-quilted,
|
|
3371
|
+
.plass-gallery-masonry {
|
|
2768
3372
|
grid-template-columns: repeat(var(--p-cols, 2), minmax(0, 1fr));
|
|
2769
3373
|
}
|
|
2770
3374
|
|
|
3375
|
+
.plass-gallery-masonry {
|
|
3376
|
+
grid-template-rows: var(--p-lane-rows);
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
.plass-gallery-masonry > li {
|
|
3380
|
+
grid-area: var(--p-lane-area);
|
|
3381
|
+
}
|
|
3382
|
+
|
|
2771
3383
|
/*
|
|
2772
3384
|
* What holds a justified gallery's last row down.
|
|
2773
3385
|
*
|
|
@@ -2888,6 +3500,13 @@
|
|
|
2888
3500
|
color: var(--plass-muted-fg);
|
|
2889
3501
|
}
|
|
2890
3502
|
|
|
3503
|
+
/*
|
|
3504
|
+
* The placeholder steps out of sight while the label rests where it is written,
|
|
3505
|
+
* and only out of sight: it stays in the accessibility tree. A reader who moves
|
|
3506
|
+
* to the control gives it the focus, which raises the label and brings the
|
|
3507
|
+
* placeholder back, so what a screen reader says there is what the page shows.
|
|
3508
|
+
* The Flutter build keeps it the same way.
|
|
3509
|
+
*/
|
|
2891
3510
|
.plass-notch-float:not(:focus-within):not(:has([data-popup-open])):is(
|
|
2892
3511
|
[data-empty],
|
|
2893
3512
|
:has(.plass-float-control:placeholder-shown:not(:autofill)),
|
|
@@ -2968,7 +3587,6 @@
|
|
|
2968
3587
|
indistinguishable from an empty box that finished loading with nothing in
|
|
2969
3588
|
it. */
|
|
2970
3589
|
.plass-skeleton::after {
|
|
2971
|
-
inset-inline-start: 0;
|
|
2972
3590
|
inline-size: 100%;
|
|
2973
3591
|
background-image: none;
|
|
2974
3592
|
animation: plass-skeleton-pulse 2.4s var(--plass-ease) infinite;
|
|
@@ -2986,7 +3604,6 @@
|
|
|
2986
3604
|
two that genuinely have to keep turning or cycling are slowed to where they
|
|
2987
3605
|
stop reading as motion. */
|
|
2988
3606
|
.plass-progress-sweep {
|
|
2989
|
-
inset-inline-start: 0;
|
|
2990
3607
|
inline-size: 100%;
|
|
2991
3608
|
animation: plass-progress-pulse 1.8s var(--plass-ease) infinite;
|
|
2992
3609
|
}
|
|
@@ -3024,7 +3641,7 @@
|
|
|
3024
3641
|
*/
|
|
3025
3642
|
.plass-anim {
|
|
3026
3643
|
animation-duration: 0s;
|
|
3027
|
-
animation-delay: max(1ms, var(--p-anim-delay, 0ms));
|
|
3644
|
+
animation-delay: max(1ms, var(--p-anim-run-delay, var(--p-anim-delay, 0ms)));
|
|
3028
3645
|
animation-iteration-count: var(--p-anim-still-repeat, var(--p-anim-repeat, 1));
|
|
3029
3646
|
animation-fill-mode: forwards;
|
|
3030
3647
|
animation-timeline: auto;
|
|
@@ -3037,7 +3654,9 @@
|
|
|
3037
3654
|
rotate: var(--p-anim-angle-to, 0deg);
|
|
3038
3655
|
}
|
|
3039
3656
|
|
|
3040
|
-
.
|
|
3657
|
+
/* A strip that ends is the exception, below. `:where()` keeps the selector
|
|
3658
|
+
as specific as `.plass-marquee-track` on its own. */
|
|
3659
|
+
:where(.plass-marquee:not([data-plass-finite])) > .plass-marquee-track,
|
|
3041
3660
|
.plass-headline-item,
|
|
3042
3661
|
.plass-caret {
|
|
3043
3662
|
animation: none;
|
|
@@ -3068,6 +3687,105 @@
|
|
|
3068
3687
|
skeleton makes: the decoration survives, the motion does not. */
|
|
3069
3688
|
.plass-anim-lighting::before {
|
|
3070
3689
|
background: var(--p-anim-glow-to);
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3692
|
+
.plass-anim-lighting:not([data-plass-finite])::before {
|
|
3071
3693
|
animation: none;
|
|
3072
3694
|
}
|
|
3695
|
+
|
|
3696
|
+
/*
|
|
3697
|
+
* A strip or a light that ends is run in no time instead, as an effect
|
|
3698
|
+
* above is, so that it lands and `animationend` arrives. Neither fills
|
|
3699
|
+
* either side of its run, so nothing it draws moves: the strip stands where
|
|
3700
|
+
* it started and the arc is the even glow. `src/internal/animate.ts` marks
|
|
3701
|
+
* one that has landed, which is what keeps it there when the reader gives
|
|
3702
|
+
* movement back; an endless one is switched off and goes on from its start.
|
|
3703
|
+
*/
|
|
3704
|
+
.plass-marquee[data-plass-finite] > .plass-marquee-track,
|
|
3705
|
+
.plass-anim-lighting[data-plass-finite]::before {
|
|
3706
|
+
animation-duration: 0s;
|
|
3707
|
+
animation-delay: max(1ms, var(--p-anim-run-delay, var(--p-anim-delay, 0ms)));
|
|
3708
|
+
animation-fill-mode: none;
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
/*
|
|
3713
|
+
* A run that landed under reduced motion, until it runs again.
|
|
3714
|
+
*
|
|
3715
|
+
* Its keyframe goes on counting its time from when it began, so a fade that
|
|
3716
|
+
* landed in no time and was handed its duration back while it would still have
|
|
3717
|
+
* been running stood that far into the run and played on from there. The
|
|
3718
|
+
* timing the block above lands it with holds it on its last frame whatever the
|
|
3719
|
+
* setting is now. `src/internal/animate.ts` marks a finite run on the clock
|
|
3720
|
+
* when it lands, and takes the mark off when the run starts again. An endless
|
|
3721
|
+
* run is never marked: it has no last frame to stay on, and goes on from where
|
|
3722
|
+
* its passes would have got to.
|
|
3723
|
+
*
|
|
3724
|
+
* Unless `paused` is holding it, finite or endless. A paused keyframe stands
|
|
3725
|
+
* where its clock stopped: the start of a pass for an endless run that landed,
|
|
3726
|
+
* so an endless fade held while the reader gave movement back went from fully
|
|
3727
|
+
* drawn to nearly gone, and ahead of its start for a run held before its delay
|
|
3728
|
+
* was over, so a fade held there went from fully drawn to nothing and a turn
|
|
3729
|
+
* from its `to` angle back to its `from`. The script marks such a run while
|
|
3730
|
+
* reduced motion shows it, and takes the mark off when it is let go, which
|
|
3731
|
+
* plays it on from where its clock stands. Held before its delay was over, it
|
|
3732
|
+
* stands where the block above stands a waiting effect, which is where a turn
|
|
3733
|
+
* stands too.
|
|
3734
|
+
*/
|
|
3735
|
+
.plass-anim[data-plass-landed],
|
|
3736
|
+
.plass-anim[data-plass-held] {
|
|
3737
|
+
animation-duration: 0s;
|
|
3738
|
+
animation-delay: max(1ms, var(--p-anim-run-delay, var(--p-anim-delay, 0ms)));
|
|
3739
|
+
animation-iteration-count: var(--p-anim-still-repeat, var(--p-anim-repeat, 1));
|
|
3740
|
+
animation-fill-mode: forwards;
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3743
|
+
.plass-anim-rotate[data-plass-held] {
|
|
3744
|
+
rotate: var(--p-anim-angle-to, 0deg);
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3747
|
+
/*
|
|
3748
|
+
* A light held the same way keeps the even glow the setting draws. Its arc is
|
|
3749
|
+
* left as it is underneath, an endless one made paused at its start when the
|
|
3750
|
+
* setting goes and a finite one paused where its clock stopped, so once it is
|
|
3751
|
+
* let go it turns from there, as it did. Unmarked, the arc came back at the
|
|
3752
|
+
* angle its clock stood at, which is `0deg` for an endless light.
|
|
3753
|
+
*/
|
|
3754
|
+
.plass-anim-lighting[data-plass-held]::before {
|
|
3755
|
+
background: var(--p-anim-glow-to);
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
/*
|
|
3759
|
+
* A strip held the same way keeps the one copy the setting draws, in the box
|
|
3760
|
+
* that scrolls along it, so what the reader scrolled to stays where it is.
|
|
3761
|
+
* Unmarked, the copies came back and the box clipped them while the strip was
|
|
3762
|
+
* still paused. Its keyframe is left as it is underneath, which already stands
|
|
3763
|
+
* where the setting showed it, so once it is let go the strip goes on as it
|
|
3764
|
+
* would have without the hold. The child combinator leaves a strip nested
|
|
3765
|
+
* inside it alone.
|
|
3766
|
+
*/
|
|
3767
|
+
.plass-marquee[data-plass-held] {
|
|
3768
|
+
overflow-x: auto;
|
|
3769
|
+
overflow-y: hidden;
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
.plass-marquee-vertical[data-plass-held] {
|
|
3773
|
+
overflow-x: hidden;
|
|
3774
|
+
overflow-y: auto;
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
.plass-marquee[data-plass-held] > .plass-marquee-track + .plass-marquee-track {
|
|
3778
|
+
display: none;
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
/*
|
|
3782
|
+
* A strip or a light that landed under reduced motion, marked on its root, has
|
|
3783
|
+
* its keyframe taken off until it runs again: the strip, every copy of it,
|
|
3784
|
+
* stands where it started, where the setting showed it, and the arc where a
|
|
3785
|
+
* turn ends, which is where it begins. Played again from the start, a finite
|
|
3786
|
+
* marquee or light set off on its whole run once more.
|
|
3787
|
+
*/
|
|
3788
|
+
.plass-marquee[data-plass-landed] > .plass-marquee-track,
|
|
3789
|
+
.plass-anim-lighting[data-plass-landed]::before {
|
|
3790
|
+
animation-name: none;
|
|
3073
3791
|
}
|