reburn-ui 9.8.1 → 9.8.100
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/dist/lib/builders/action-bar.css +33 -0
- package/dist/lib/builders/affix.css +25 -0
- package/dist/lib/builders/anchor.css +53 -0
- package/dist/lib/builders/angle-slider.css +75 -0
- package/dist/lib/builders/app-shell.css +285 -0
- package/dist/lib/builders/aspect-ratio.css +28 -0
- package/dist/lib/builders/background-image.css +25 -0
- package/dist/lib/builders/blockquote.css +22 -0
- package/dist/lib/builders/calendar.css +238 -0
- package/dist/lib/builders/card.css +132 -0
- package/dist/lib/builders/cascader.css +32 -0
- package/dist/lib/builders/center.css +24 -0
- package/dist/lib/builders/close-button.css +44 -0
- package/dist/lib/builders/code.css +21 -0
- package/dist/lib/builders/color-input.css +65 -0
- package/dist/lib/builders/color-picker.css +139 -0
- package/dist/lib/builders/color-swatch.css +56 -0
- package/dist/lib/builders/combobox.css +15 -1
- package/dist/lib/builders/data-list.css +79 -0
- package/dist/lib/builders/date-input.css +31 -0
- package/dist/lib/builders/date-time-picker.css +40 -0
- package/dist/lib/builders/dialog.css +32 -0
- package/dist/lib/builders/dropzone.css +55 -0
- package/dist/lib/builders/floating-indicator.css +42 -0
- package/dist/lib/builders/floating-window.css +25 -0
- package/dist/lib/builders/group.css +30 -0
- package/dist/lib/builders/image.css +21 -0
- package/dist/lib/builders/index.js +1 -1
- package/dist/lib/builders/input.css +4 -1
- package/dist/lib/builders/loading-overlay.css +34 -0
- package/dist/lib/builders/masked-date-input.css +99 -0
- package/dist/lib/builders/mentions.css +141 -0
- package/dist/lib/builders/menubar.css +34 -0
- package/dist/lib/builders/mini-calendar.css +48 -0
- package/dist/lib/builders/multi-select.css +79 -0
- package/dist/lib/builders/native-select.css +23 -0
- package/dist/lib/builders/overlay.css +40 -0
- package/dist/lib/builders/paper.css +34 -0
- package/dist/lib/builders/picker-input.css +54 -0
- package/dist/lib/builders/pills-input.css +128 -0
- package/dist/lib/builders/quarter-picker.css +44 -0
- package/dist/lib/builders/ring-progress.css +63 -0
- package/dist/lib/builders/rolling-number.css +112 -0
- package/dist/lib/builders/scroller.css +81 -0
- package/dist/lib/builders/simple-grid.css +41 -0
- package/dist/lib/builders/splitter.css +66 -0
- package/dist/lib/builders/stack.css +23 -0
- package/dist/lib/builders/table-of-contents.css +33 -0
- package/dist/lib/builders/table.css +203 -0
- package/dist/lib/builders/tags-input.css +70 -0
- package/dist/lib/builders/text.css +71 -0
- package/dist/lib/builders/time-grid.css +25 -0
- package/dist/lib/builders/time-input.css +43 -0
- package/dist/lib/builders/time-picker.css +90 -0
- package/dist/lib/builders/timeline.css +114 -18
- package/dist/lib/builders/title.css +34 -0
- package/dist/lib/builders/toggle.css +50 -0
- package/dist/lib/builders/toolbar.css +116 -0
- package/dist/lib/builders/tour.css +67 -0
- package/dist/lib/builders/week-picker.css +132 -0
- package/dist/lib/code-highlight/adapters/shiki-adapter.js +30 -7
- package/dist/lib/core/components/ActionBar/ActionBarBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/ActionBar/ActionBarBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Affix/AffixBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Affix/AffixBuilder.svelte.js +5 -2
- package/dist/lib/core/components/AngleSlider/AngleSliderBuilder.svelte.d.ts +2 -0
- package/dist/lib/core/components/AngleSlider/AngleSliderBuilder.svelte.js +8 -1
- package/dist/lib/core/components/AppShell/AppShellBuilder.svelte.d.ts +23 -5
- package/dist/lib/core/components/AppShell/AppShellBuilder.svelte.js +22 -6
- package/dist/lib/core/components/AppShell/AppShellMain/AppShellMain.svelte +5 -1
- package/dist/lib/core/components/AspectRatio/AspectRatio.svelte +1 -0
- package/dist/lib/core/components/AspectRatio/AspectRatioBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/AspectRatio/AspectRatioBuilder.svelte.js +5 -2
- package/dist/lib/core/components/Autocomplete/AutocompleteBuilder.svelte.d.ts +1 -51
- package/dist/lib/core/components/Autocomplete/AutocompleteBuilder.svelte.js +2 -1
- package/dist/lib/core/components/BackgroundImage/BackgroundImageBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/BackgroundImage/BackgroundImageBuilder.svelte.js +5 -2
- package/dist/lib/core/components/Blockquote/BlockquoteBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Blockquote/BlockquoteBuilder.svelte.js +5 -2
- package/dist/lib/core/components/Card/CardBuilder.svelte.d.ts +10 -2
- package/dist/lib/core/components/Card/CardBuilder.svelte.js +14 -3
- package/dist/lib/core/components/Cascader/CascaderBuilder.svelte.d.ts +6 -52
- package/dist/lib/core/components/Cascader/CascaderBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Center/CenterBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Center/CenterBuilder.svelte.js +8 -2
- package/dist/lib/core/components/CloseButton/CloseButtonBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/CloseButton/CloseButtonBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Code/CodeBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Code/CodeBuilder.svelte.js +5 -1
- package/dist/lib/core/components/ColorInput/ColorInputBuilder.svelte.d.ts +28 -13
- package/dist/lib/core/components/ColorInput/ColorInputBuilder.svelte.js +24 -3
- package/dist/lib/core/components/ColorPicker/ColorPickerBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/ColorPicker/ColorPickerBuilder.svelte.js +5 -1
- package/dist/lib/core/components/ColorPicker/ColorSlider/ColorSliderBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/ColorPicker/ColorSlider/ColorSliderBuilder.svelte.js +5 -1
- package/dist/lib/core/components/ColorPicker/Saturation/SaturationBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/ColorPicker/Saturation/SaturationBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Combobox/ComboboxBuilder.svelte.d.ts +14 -48
- package/dist/lib/core/components/Combobox/ComboboxBuilder.svelte.js +28 -3
- package/dist/lib/core/components/Combobox/ComboboxTargetBuilder.svelte.d.ts +0 -13
- package/dist/lib/core/components/Combobox/ComboboxTargetBuilder.svelte.js +15 -5
- package/dist/lib/core/components/Combobox/use-combobox/use-combobox.svelte.js +6 -0
- package/dist/lib/core/components/Combobox/use-combobox-target-props/use-combobox-target-props.svelte.d.ts +0 -13
- package/dist/lib/core/components/ComboboxPopover/ComboboxPopoverBuilder.svelte.d.ts +0 -13
- package/dist/lib/core/components/ComboboxPopover/ComboboxPopoverBuilder.svelte.js +2 -1
- package/dist/lib/core/components/CopyButton/CopyButton.svelte +4 -3
- package/dist/lib/core/components/Dialog/DialogBuilder.svelte.d.ts +6 -2
- package/dist/lib/core/components/Dialog/DialogBuilder.svelte.js +5 -2
- package/dist/lib/core/components/FloatingIndicator/FloatingIndicatorBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/FloatingIndicator/FloatingIndicatorBuilder.svelte.js +5 -1
- package/dist/lib/core/components/FloatingWindow/FloatingWindowBuilder.svelte.d.ts +6 -4
- package/dist/lib/core/components/FloatingWindow/FloatingWindowBuilder.svelte.js +13 -3
- package/dist/lib/core/components/Group/GroupBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Group/GroupBuilder.svelte.js +5 -1
- package/dist/lib/core/components/HoverCard/HoverCardBuilder.svelte.d.ts +2 -6
- package/dist/lib/core/components/Image/ImageBuilder.svelte.d.ts +6 -1
- package/dist/lib/core/components/Image/ImageBuilder.svelte.js +6 -1
- package/dist/lib/core/components/Mentions/MentionsBuilder.svelte.d.ts +10 -1
- package/dist/lib/core/components/Mentions/MentionsBuilder.svelte.js +14 -2
- package/dist/lib/core/components/Menu/MenuBuilder.svelte.d.ts +12 -8
- package/dist/lib/core/components/Menu/MenuBuilder.svelte.js +2 -0
- package/dist/lib/core/components/Menu/MenuSubBuilder.svelte.d.ts +5 -9
- package/dist/lib/core/components/Menubar/MenubarBuilder.svelte.d.ts +2 -6
- package/dist/lib/core/components/Menubar/MenubarBuilder.svelte.js +6 -1
- package/dist/lib/core/components/MultiSelect/MultiSelectBuilder.svelte.d.ts +72 -30
- package/dist/lib/core/components/MultiSelect/MultiSelectBuilder.svelte.js +23 -4
- package/dist/lib/core/components/Overlay/OverlayBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Overlay/OverlayBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Paper/PaperBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Paper/PaperBuilder.svelte.js +5 -1
- package/dist/lib/core/components/PhoneInput/PhoneInputBuilder.svelte.d.ts +1 -85
- package/dist/lib/core/components/Pill/PillBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Pill/PillBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Pill/PillGroup/PillGroupBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Pill/PillGroup/PillGroupBuilder.svelte.js +9 -2
- package/dist/lib/core/components/Popover/PopoverBuilder.svelte.d.ts +9 -9
- package/dist/lib/core/components/Popover/PopoverBuilder.svelte.js +9 -4
- package/dist/lib/core/components/RingProgress/RingProgressBuilder.svelte.d.ts +3 -0
- package/dist/lib/core/components/RingProgress/RingProgressBuilder.svelte.js +9 -1
- package/dist/lib/core/components/RollingNumber/RollingNumberBuilder.svelte.d.ts +5 -0
- package/dist/lib/core/components/RollingNumber/RollingNumberBuilder.svelte.js +21 -3
- package/dist/lib/core/components/Scroller/ScrollerBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Scroller/ScrollerBuilder.svelte.js +5 -2
- package/dist/lib/core/components/SegmentedControl/SegmentedControlBuilder.svelte.d.ts +1 -0
- package/dist/lib/core/components/Select/SelectBuilder.svelte.d.ts +1 -51
- package/dist/lib/core/components/Select/SelectBuilder.svelte.js +9 -6
- package/dist/lib/core/components/SimpleGrid/SimpleGrid.svelte +1 -1
- package/dist/lib/core/components/SimpleGrid/SimpleGridBuilder.svelte.d.ts +15 -2
- package/dist/lib/core/components/SimpleGrid/SimpleGridBuilder.svelte.js +15 -2
- package/dist/lib/core/components/Splitter/SplitterBuilder.svelte.d.ts +15 -3
- package/dist/lib/core/components/Splitter/SplitterBuilder.svelte.js +15 -3
- package/dist/lib/core/components/Stack/StackBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Stack/StackBuilder.svelte.js +5 -2
- package/dist/lib/core/components/Table/TableBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Table/TableBuilder.svelte.js +5 -2
- package/dist/lib/core/components/TableOfContents/TableOfContentsBuilder.svelte.d.ts +10 -2
- package/dist/lib/core/components/TableOfContents/TableOfContentsBuilder.svelte.js +14 -3
- package/dist/lib/core/components/TagsInput/TagsInputBuilder.svelte.d.ts +64 -30
- package/dist/lib/core/components/TagsInput/TagsInputBuilder.svelte.js +12 -4
- package/dist/lib/core/components/Text/TextBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Text/TextBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Timeline/Timeline.svelte +6 -5
- package/dist/lib/core/components/Timeline/TimelineBuilder.svelte.d.ts +4 -1
- package/dist/lib/core/components/Timeline/TimelineBuilder.svelte.js +17 -3
- package/dist/lib/core/components/Timeline/TimelineItem/TimelineItem.svelte +97 -44
- package/dist/lib/core/components/Title/TitleBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Title/TitleBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Toggle/ToggleBuilder.svelte.d.ts +5 -1
- package/dist/lib/core/components/Toggle/ToggleBuilder.svelte.js +5 -1
- package/dist/lib/core/components/Tour/TourBuilder.svelte.d.ts +34 -6
- package/dist/lib/core/components/Tour/TourBuilder.svelte.js +35 -8
- package/dist/lib/dates/components/CalendarHeader/CalendarHeaderBuilder.svelte.d.ts +7 -1
- package/dist/lib/dates/components/CalendarHeader/CalendarHeaderBuilder.svelte.js +8 -1
- package/dist/lib/dates/components/DateInput/DateInputBuilder.svelte.d.ts +5 -30
- package/dist/lib/dates/components/DateInput/DateInputBuilder.svelte.js +1 -1
- package/dist/lib/dates/components/Day/DayBuilder.svelte.d.ts +5 -1
- package/dist/lib/dates/components/Day/DayBuilder.svelte.js +5 -1
- package/dist/lib/dates/components/DecadeLevelGroup/DecadeLevelGroupBuilder.svelte.d.ts +1 -0
- package/dist/lib/dates/components/InlineDateTimePicker/InlineDateTimePickerBuilder.svelte.d.ts +10 -2
- package/dist/lib/dates/components/InlineDateTimePicker/InlineDateTimePickerBuilder.svelte.js +10 -2
- package/dist/lib/dates/components/LevelsGroup/LevelsGroupBuilder.svelte.d.ts +5 -1
- package/dist/lib/dates/components/LevelsGroup/LevelsGroupBuilder.svelte.js +5 -1
- package/dist/lib/dates/components/MaskedDateInput/MaskedDateInputBuilder.svelte.d.ts +24 -58
- package/dist/lib/dates/components/MaskedDateInput/MaskedDateInputBuilder.svelte.js +17 -5
- package/dist/lib/dates/components/MiniCalendar/MiniCalendarBuilder.svelte.d.ts +8 -2
- package/dist/lib/dates/components/MiniCalendar/MiniCalendarBuilder.svelte.js +8 -3
- package/dist/lib/dates/components/Month/MonthBuilder.svelte.d.ts +7 -2
- package/dist/lib/dates/components/Month/MonthBuilder.svelte.js +6 -2
- package/dist/lib/dates/components/MonthLevelGroup/MonthLevelGroupBuilder.svelte.d.ts +1 -0
- package/dist/lib/dates/components/MonthsList/MonthsListBuilder.svelte.d.ts +5 -1
- package/dist/lib/dates/components/MonthsList/MonthsListBuilder.svelte.js +5 -1
- package/dist/lib/dates/components/PickerInputBase/PickerInputBaseBuilder.svelte.d.ts +11 -55
- package/dist/lib/dates/components/PickerInputBase/PickerInputBaseBuilder.svelte.js +4 -2
- package/dist/lib/dates/components/QuarterLevelGroup/QuarterLevelGroupBuilder.svelte.d.ts +1 -0
- package/dist/lib/dates/components/QuartersList/QuartersListBuilder.svelte.d.ts +5 -1
- package/dist/lib/dates/components/QuartersList/QuartersListBuilder.svelte.js +5 -1
- package/dist/lib/dates/components/TimeGrid/TimeGridBuilder.svelte.d.ts +5 -1
- package/dist/lib/dates/components/TimeGrid/TimeGridBuilder.svelte.js +5 -1
- package/dist/lib/dates/components/TimePicker/TimePickerBuilder.svelte.d.ts +31 -85
- package/dist/lib/dates/components/TimePicker/TimePickerBuilder.svelte.js +14 -4
- package/dist/lib/dates/components/YearLevelGroup/YearLevelGroupBuilder.svelte.d.ts +1 -0
- package/dist/lib/dates/components/YearsList/YearsListBuilder.svelte.d.ts +5 -1
- package/dist/lib/dates/components/YearsList/YearsListBuilder.svelte.js +5 -1
- package/dist/lib/dates/hooks/use-dates-state/use-dates-state.svelte.d.ts +1 -1
- package/dist/lib/dates/hooks/use-dates-state/use-dates-state.svelte.js +1 -1
- package/dist/lib/dropzone/Dropzone.svelte +3 -3
- package/dist/lib/dropzone/DropzoneBuilder.svelte.d.ts +11 -2
- package/dist/lib/dropzone/DropzoneBuilder.svelte.js +11 -2
- package/dist/lib/dropzone/DropzoneFullScreenBuilder.svelte.d.ts +7 -2
- package/dist/lib/dropzone/DropzoneFullScreenBuilder.svelte.js +6 -2
- package/dist/lib/tools/index.d.ts +1 -0
- package/dist/lib/tools/index.js +1 -0
- package/dist/lib/tools/optimize-imports/export-map.d.ts +14 -0
- package/dist/lib/tools/optimize-imports/export-map.js +104 -0
- package/dist/lib/tools/optimize-imports/index.d.ts +10 -0
- package/dist/lib/tools/optimize-imports/index.js +131 -0
- package/dist/lib/tools/optimize-imports/rewrite.d.ts +32 -0
- package/dist/lib/tools/optimize-imports/rewrite.js +115 -0
- package/package.json +14 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless action bar (`ActionBarBuilder`): only what the parts need to work, no
|
|
3
|
+
* appearance. Import it once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/action-bar.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the parts render and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-action-bar` (`actionBar.root`), a divider
|
|
9
|
+
* by `role="separator"` inside it (`actionBar.divider`).
|
|
10
|
+
*
|
|
11
|
+
* From Mantine 9.8.1 `core/src/components/ActionBar/ActionBar.module.css` (`.root` layout,
|
|
12
|
+
* `.divider` size), without the appearance: the padding, the divider color, and the background,
|
|
13
|
+
* border, radius and shadow of `Paper`. The bar is not positioned: the styled `ActionBar` places it
|
|
14
|
+
* with `Affix` (`bottom: 30, left: 0, right: 0`), `AffixBuilder` gives the same `--affix-*`
|
|
15
|
+
* variables for a fixed wrapper.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/* Root (`actionBar.root`): the actions in a row, as wide as they are and centered in the wrapper.
|
|
19
|
+
While closed with `keepMounted`, the part sets `display: none` */
|
|
20
|
+
:where([data-action-bar]) {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: var(--mantine-spacing-sm);
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
width: fit-content;
|
|
26
|
+
margin-inline: auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Divider (`actionBar.divider`): a 1px line as high as the bar */
|
|
30
|
+
:where([data-action-bar] [role='separator'][aria-orientation='vertical']) {
|
|
31
|
+
width: 1px;
|
|
32
|
+
align-self: stretch;
|
|
33
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless affix (`AffixBuilder`): only what the root needs to work. Import it
|
|
3
|
+
* once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/affix.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the parts render and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-affix` (reburn-only).
|
|
9
|
+
*
|
|
10
|
+
* From Mantine 9.8.1 `core/src/components/Affix/Affix.module.css` (`.root`), all of it: the affix has
|
|
11
|
+
* no appearance of its own.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* Root (`affix.root`). Fixed at the `--affix-*` offsets the builder sets from `position`; an unset
|
|
15
|
+
offset is invalid at computed-value time and falls back to `auto`. `--affix-z-index` is
|
|
16
|
+
`zIndex`, 200 without it. A parent with `transform`, `filter` or `contain: layout` becomes the
|
|
17
|
+
containing block, then the affix is fixed to that parent instead of the viewport */
|
|
18
|
+
:where([data-affix]) {
|
|
19
|
+
position: fixed;
|
|
20
|
+
z-index: var(--affix-z-index);
|
|
21
|
+
inset-inline-start: var(--affix-left);
|
|
22
|
+
inset-inline-end: var(--affix-right);
|
|
23
|
+
top: var(--affix-top);
|
|
24
|
+
bottom: var(--affix-bottom);
|
|
25
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless anchor (`AnchorBuilder`): only what the `underline` option needs to work,
|
|
3
|
+
* no appearance. Import it once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/anchor.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the parts render and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-underline`, which the builder always
|
|
9
|
+
* renders (`hover` by default).
|
|
10
|
+
*
|
|
11
|
+
* From Mantine 9.8.1 `core/src/components/Anchor/Anchor.module.css` (`.root`), without the
|
|
12
|
+
* appearance (color, cursor and the reset of `<button>` and other elements: border, padding, margin,
|
|
13
|
+
* background, `display: inline`). The `display: -webkit-box` for `data-line-clamp` is left out too:
|
|
14
|
+
* it only undoes Mantine's own `display: inline`, the `TextBuilder`'s line clamp brings its own.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* Root (`anchor.root`). The underline modes: `always` and `not-hover` start underlined, `hover` and
|
|
18
|
+
`never` don't */
|
|
19
|
+
:where([data-underline]) {
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-underline='always'], [data-underline='not-hover']) {
|
|
24
|
+
text-decoration: underline;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* `hover` and `not-hover` switch the underline on hover; touch screens without hover switch it
|
|
28
|
+
while the link is pressed (Mantine's `hover` mixin) */
|
|
29
|
+
@media (hover: hover) {
|
|
30
|
+
:where([data-underline='hover']:hover) {
|
|
31
|
+
text-decoration: underline;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where([data-underline='not-hover']:hover) {
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (hover: none) {
|
|
40
|
+
:where([data-underline='hover']:active) {
|
|
41
|
+
text-decoration: underline;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where([data-underline='not-hover']:active) {
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* With the `TextBuilder`'s gradient variant (`data-variant="gradient"`), the text is transparent,
|
|
50
|
+
so it is never underlined, also not on hover (this rule comes last) */
|
|
51
|
+
:where([data-underline][data-variant='gradient']) {
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless angle slider (`AngleSliderBuilder`): only what the parts need to work,
|
|
3
|
+
* no appearance. Import it once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/angle-slider.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the parts render and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-angle-slider`, a mark by
|
|
9
|
+
* `data-angle-slider-mark` (both reburn-only), the thumb by its `role="slider"` (`angle.thumb`).
|
|
10
|
+
* The label has no part: it is any other child of the root.
|
|
11
|
+
*
|
|
12
|
+
* From Mantine 9.8.1 `core/src/components/AngleSlider/AngleSlider.module.css` (`.root` size and
|
|
13
|
+
* layout, `.marks`, `.mark`, `.thumb`), without the appearance: colors, backgrounds, the focus
|
|
14
|
+
* ring, the mark ticks, the thumb's line and the label's font. Thumb and marks are 0px wide lines
|
|
15
|
+
* through the center, so whatever you put in them (a child, `::before`) is centered on the line and
|
|
16
|
+
* sits at the edge of the circle. Their properties match Mantine's, so the CSS doesn't change the
|
|
17
|
+
* styled `AngleSlider`.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/* Root (`angle.root`): a `--slider-size` circle (`size`, 60px without it) that is dragged around
|
|
21
|
+
its center. `--thumb-size` (`thumbSize`, a fifth of the size without it) is there for your
|
|
22
|
+
thumb and marks. The label is centered */
|
|
23
|
+
:where([data-angle-slider]) {
|
|
24
|
+
--slider-size: 60px;
|
|
25
|
+
--thumb-size: calc(var(--slider-size) / 5);
|
|
26
|
+
|
|
27
|
+
position: relative;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
width: var(--slider-size);
|
|
32
|
+
height: var(--slider-size);
|
|
33
|
+
border-radius: 100%;
|
|
34
|
+
user-select: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Mark (`angle.mark(mark)`): a line from the top to the bottom of the root (or of a wrapper that
|
|
38
|
+
covers it), turned by `--angle`. Its content is centered at the top, on the circle's edge. It
|
|
39
|
+
doesn't take the pointer, so a click on a mark moves the thumb there */
|
|
40
|
+
:where([data-angle-slider-mark]) {
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 0;
|
|
43
|
+
bottom: 0;
|
|
44
|
+
inset-inline-start: 50%;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
align-items: center;
|
|
48
|
+
width: 0;
|
|
49
|
+
transform: rotate(var(--angle));
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* A mark's `label` (`data-label`): just outside the circle, turned back so it stays upright */
|
|
54
|
+
:where([data-angle-slider-mark][data-label])::after {
|
|
55
|
+
content: attr(data-label);
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: -4px;
|
|
58
|
+
left: 0;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
transform: translate(-50%, -100%) rotate(calc(var(--angle) * -1));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Thumb (`angle.thumb`): a line through the center, turned to the value by the builder
|
|
64
|
+
(`transform: rotate()`). Its content is centered at the top, on the circle's edge. It doesn't take
|
|
65
|
+
the pointer: the root handles dragging */
|
|
66
|
+
:where([data-angle-slider] [role='slider']) {
|
|
67
|
+
position: absolute;
|
|
68
|
+
inset-block: 0;
|
|
69
|
+
inset-inline-start: 50%;
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
align-items: center;
|
|
73
|
+
width: 0;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless app shell (`AppShellBuilder`, `AppShellResizeHandleBuilder`): only what
|
|
3
|
+
* the parts need to work, no appearance. Import it once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/app-shell.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the parts render and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-app-shell` (`shell.root`), the sections
|
|
9
|
+
* by `data-app-shell-navbar`, `-aside`, `-header` and `-footer` (`shell.navbar(…)` etc.), the main
|
|
10
|
+
* content by `data-app-shell-main` (`shell.main`), a section inside the navbar or aside by
|
|
11
|
+
* `data-app-shell-section` (`shell.section()`), all reburn-only attributes, and a resize handle by
|
|
12
|
+
* its `role="separator"` as a child of a section (`handle.root`).
|
|
13
|
+
*
|
|
14
|
+
* The sizes, offsets and transforms come from the `--app-shell-*` variables that
|
|
15
|
+
* `<InlineStyles {...shell.inlineStyles} />` writes (on `:root`, or on the root's `#id` with `resize`
|
|
16
|
+
* or `mode: 'static'`).
|
|
17
|
+
*
|
|
18
|
+
* From Mantine 9.8.1 `core/src/components/AppShell/AppShell.module.css` (`.root`, `.navbar`,
|
|
19
|
+
* `.aside`, `.header`, `.footer`, `.main`, `.section`, `.resizeHandle`), without the appearance:
|
|
20
|
+
* the sections' `background-color` and borders (`data-with-border`, `--app-shell-border-color`),
|
|
21
|
+
* and the resize handle's line (`::after`) and `outline: none`.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/* Root (`shell.root`). While a section is resized (`data-resizing`) nothing transitions, a disabled
|
|
25
|
+
shell (`data-disabled`) doesn't offset the main content */
|
|
26
|
+
:where([data-app-shell][data-resizing]) {
|
|
27
|
+
--app-shell-transition-duration: 0ms !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-app-shell][data-disabled]) {
|
|
31
|
+
--app-shell-header-offset: 0rem !important;
|
|
32
|
+
--app-shell-navbar-offset: 0rem !important;
|
|
33
|
+
--app-shell-aside-offset: 0rem !important;
|
|
34
|
+
--app-shell-footer-offset: 0rem !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* `mode: 'static'`: the root is a grid that scrolls itself instead of the page, the sections are
|
|
38
|
+
sticky grid items. Give it (or its parent) a height */
|
|
39
|
+
:where([data-app-shell][data-mode='static']) {
|
|
40
|
+
display: grid;
|
|
41
|
+
grid-template-columns: var(--app-shell-navbar-width, 0) 1fr var(--app-shell-aside-width, 0);
|
|
42
|
+
grid-template-rows: auto 1fr auto;
|
|
43
|
+
position: relative;
|
|
44
|
+
height: 100%;
|
|
45
|
+
overflow: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Sections transition with the shell's `transitionDuration` and `transitionTimingFunction` */
|
|
49
|
+
:where(
|
|
50
|
+
[data-app-shell-navbar],
|
|
51
|
+
[data-app-shell-aside],
|
|
52
|
+
[data-app-shell-header],
|
|
53
|
+
[data-app-shell-main],
|
|
54
|
+
[data-app-shell-footer]
|
|
55
|
+
) {
|
|
56
|
+
transition-duration: var(--app-shell-transition-duration);
|
|
57
|
+
transition-timing-function: var(--app-shell-transition-timing-function);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Navbar and aside (`shell.navbar(…)`, `shell.aside(…)`): fixed columns between header and footer,
|
|
61
|
+
`collapsed` slides them out (`--app-shell-navbar-transform`). Below the `breakpoint` they are as
|
|
62
|
+
wide as the screen */
|
|
63
|
+
:where([data-app-shell-navbar], [data-app-shell-aside]) {
|
|
64
|
+
position: fixed;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
top: var(--app-shell-header-offset, 0rem);
|
|
68
|
+
height: calc(
|
|
69
|
+
100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem)
|
|
70
|
+
);
|
|
71
|
+
transition-property: transform, top, height;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:where([data-app-shell-navbar]) {
|
|
75
|
+
inset-inline-start: 0;
|
|
76
|
+
width: var(--app-shell-navbar-width);
|
|
77
|
+
transform: var(--app-shell-navbar-transform);
|
|
78
|
+
z-index: var(--app-shell-navbar-z-index);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where([data-app-shell-aside]) {
|
|
82
|
+
inset-inline-end: 0;
|
|
83
|
+
width: var(--app-shell-aside-width);
|
|
84
|
+
transform: var(--app-shell-aside-transform);
|
|
85
|
+
z-index: var(--app-shell-aside-z-index);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where([dir='rtl'] [data-app-shell-navbar]) {
|
|
89
|
+
transform: var(--app-shell-navbar-transform-rtl);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where([dir='rtl'] [data-app-shell-aside]) {
|
|
93
|
+
transform: var(--app-shell-aside-transform-rtl);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:where([data-app-shell][data-mode='static'] [data-app-shell-navbar]) {
|
|
97
|
+
position: var(--app-shell-navbar-position, fixed);
|
|
98
|
+
grid-row: var(--app-shell-navbar-grid-row, auto);
|
|
99
|
+
grid-column: var(--app-shell-navbar-grid-column, auto);
|
|
100
|
+
display: var(--app-shell-navbar-display, flex);
|
|
101
|
+
height: 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where([data-app-shell][data-mode='static'] [data-app-shell-aside]) {
|
|
105
|
+
position: var(--app-shell-aside-position, fixed);
|
|
106
|
+
grid-row: var(--app-shell-aside-grid-row, auto);
|
|
107
|
+
grid-column: var(--app-shell-aside-grid-column, auto);
|
|
108
|
+
display: var(--app-shell-aside-display, flex);
|
|
109
|
+
height: 100%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* `layout: 'alt'`: navbar and aside take the full height, header and footer sit between them */
|
|
113
|
+
:where([data-app-shell][data-layout='alt'] :is([data-app-shell-navbar], [data-app-shell-aside])) {
|
|
114
|
+
top: 0rem;
|
|
115
|
+
height: 100dvh;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:where(
|
|
119
|
+
[data-app-shell][data-mode='static'][data-layout='alt']
|
|
120
|
+
:is([data-app-shell-navbar], [data-app-shell-aside])
|
|
121
|
+
) {
|
|
122
|
+
grid-row: 1 / -1;
|
|
123
|
+
height: 100%;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:where([data-scroll-locked] [data-app-shell-aside]) {
|
|
127
|
+
visibility: var(--app-shell-aside-scroll-locked-visibility);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Header and footer (`shell.header(…)`, `shell.footer(…)`): fixed rows across the screen,
|
|
131
|
+
`collapsed` slides them out (`--app-shell-header-transform`) */
|
|
132
|
+
:where([data-app-shell-header], [data-app-shell-footer]) {
|
|
133
|
+
position: fixed;
|
|
134
|
+
inset-inline: 0;
|
|
135
|
+
transition-property: transform, margin-inline-start, margin-inline-end;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:where([data-app-shell-header]) {
|
|
139
|
+
top: 0;
|
|
140
|
+
height: var(--app-shell-header-height);
|
|
141
|
+
transform: var(--app-shell-header-transform);
|
|
142
|
+
z-index: var(--app-shell-header-z-index);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* The footer grows by the bottom safe area (the home indicator on phones) and pads its content */
|
|
146
|
+
:where([data-app-shell-footer]) {
|
|
147
|
+
--app-shell-footer-safe-area: env(safe-area-inset-bottom);
|
|
148
|
+
|
|
149
|
+
bottom: 0;
|
|
150
|
+
height: calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));
|
|
151
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
152
|
+
transform: var(--app-shell-footer-transform);
|
|
153
|
+
z-index: var(--app-shell-footer-z-index);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:where([data-app-shell][data-mode='static'] [data-app-shell-header]) {
|
|
157
|
+
position: var(--app-shell-header-position, fixed);
|
|
158
|
+
grid-column: var(--app-shell-header-grid-column, auto);
|
|
159
|
+
grid-row: var(--app-shell-header-grid-row, auto);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:where([data-app-shell][data-mode='static'] [data-app-shell-footer]) {
|
|
163
|
+
position: var(--app-shell-footer-position, fixed);
|
|
164
|
+
grid-column: var(--app-shell-footer-grid-column, auto);
|
|
165
|
+
grid-row: var(--app-shell-footer-grid-row, auto);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:where([data-app-shell][data-layout='alt'] :is([data-app-shell-header], [data-app-shell-footer])) {
|
|
169
|
+
margin-inline-start: var(--app-shell-navbar-offset, 0rem);
|
|
170
|
+
margin-inline-end: var(--app-shell-aside-offset, 0rem);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:where(
|
|
174
|
+
[data-app-shell][data-mode='static'][data-layout='alt']
|
|
175
|
+
:is([data-app-shell-header], [data-app-shell-footer])
|
|
176
|
+
) {
|
|
177
|
+
grid-column: var(--app-shell-main-column-start, 1) / var(--app-shell-main-column-end, -1);
|
|
178
|
+
margin-inline-start: 0rem;
|
|
179
|
+
margin-inline-end: 0rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* `offsetScrollbars` (`data-offset-scrollbars`): while a modal locks the page scroll, header,
|
|
183
|
+
aside and footer stay clear of the removed scrollbar's gap (Mantine: react-remove-scroll's
|
|
184
|
+
`zeroRight` class) */
|
|
185
|
+
:where(
|
|
186
|
+
body[data-scroll-locked]
|
|
187
|
+
:is(
|
|
188
|
+
[data-app-shell-header],
|
|
189
|
+
[data-app-shell-aside],
|
|
190
|
+
[data-app-shell-footer]
|
|
191
|
+
)[data-offset-scrollbars]
|
|
192
|
+
) {
|
|
193
|
+
right: var(--removed-body-scroll-bar-size, 0px) !important;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Main (`shell.main`): padded by the sections around it and `padding`, at least as tall as the
|
|
197
|
+
screen. In static mode it is the grid's middle cell instead */
|
|
198
|
+
:where([data-app-shell-main]) {
|
|
199
|
+
padding-inline-start: calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));
|
|
200
|
+
padding-inline-end: calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));
|
|
201
|
+
padding-top: calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));
|
|
202
|
+
padding-bottom: calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));
|
|
203
|
+
min-height: 100dvh;
|
|
204
|
+
transition-property: padding;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:where([data-app-shell][data-mode='static'] [data-app-shell-main]) {
|
|
208
|
+
padding-inline-start: var(--app-shell-padding);
|
|
209
|
+
padding-inline-end: var(--app-shell-padding);
|
|
210
|
+
padding-top: var(--app-shell-padding);
|
|
211
|
+
padding-bottom: var(--app-shell-padding);
|
|
212
|
+
min-height: auto;
|
|
213
|
+
grid-column: var(--app-shell-main-column-start, 1) / var(--app-shell-main-column-end, -1);
|
|
214
|
+
grid-row: var(--app-shell-main-grid-row, 2);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Section (`shell.section({ grow })`): a block of the navbar's or aside's flex column, `grow`
|
|
218
|
+
(`data-grow`) takes the space left, e.g. for a scrollable list between two fixed blocks */
|
|
219
|
+
:where([data-app-shell-section]) {
|
|
220
|
+
flex-grow: 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:where([data-app-shell-section][data-grow]) {
|
|
224
|
+
flex-grow: 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Resize handle (`handle.root`): an invisible strip, `--app-shell-resize-handle-size` (6px) thick,
|
|
228
|
+
centered on the section's inner edge. `touch-action: none` keeps the page from scrolling while
|
|
229
|
+
it is dragged; below the breakpoint and while collapsed the inline styles hide it */
|
|
230
|
+
:where(
|
|
231
|
+
:is(
|
|
232
|
+
[data-app-shell-navbar],
|
|
233
|
+
[data-app-shell-aside],
|
|
234
|
+
[data-app-shell-header],
|
|
235
|
+
[data-app-shell-footer]
|
|
236
|
+
)
|
|
237
|
+
> [role='separator']
|
|
238
|
+
) {
|
|
239
|
+
position: absolute;
|
|
240
|
+
z-index: 1;
|
|
241
|
+
touch-action: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:where(
|
|
245
|
+
:is([data-app-shell-navbar], [data-app-shell-aside])
|
|
246
|
+
> [role='separator'][data-orientation='vertical']
|
|
247
|
+
) {
|
|
248
|
+
top: 0;
|
|
249
|
+
bottom: 0;
|
|
250
|
+
width: var(--app-shell-resize-handle-size, calc(0.375rem * var(--mantine-scale, 1)));
|
|
251
|
+
cursor: col-resize;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
:where(
|
|
255
|
+
:is([data-app-shell-header], [data-app-shell-footer])
|
|
256
|
+
> [role='separator'][data-orientation='horizontal']
|
|
257
|
+
) {
|
|
258
|
+
inset-inline: 0;
|
|
259
|
+
height: var(--app-shell-resize-handle-size, calc(0.375rem * var(--mantine-scale, 1)));
|
|
260
|
+
cursor: row-resize;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:where([data-app-shell-navbar] > [role='separator'][data-section='navbar']) {
|
|
264
|
+
inset-inline-end: calc(
|
|
265
|
+
var(--app-shell-resize-handle-size, calc(0.375rem * var(--mantine-scale, 1))) / -2
|
|
266
|
+
);
|
|
267
|
+
display: var(--app-shell-navbar-resize-handle-display, block);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
:where([data-app-shell-aside] > [role='separator'][data-section='aside']) {
|
|
271
|
+
inset-inline-start: calc(
|
|
272
|
+
var(--app-shell-resize-handle-size, calc(0.375rem * var(--mantine-scale, 1))) / -2
|
|
273
|
+
);
|
|
274
|
+
display: var(--app-shell-aside-resize-handle-display, block);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:where([data-app-shell-header] > [role='separator'][data-section='header']) {
|
|
278
|
+
bottom: calc(var(--app-shell-resize-handle-size, calc(0.375rem * var(--mantine-scale, 1))) / -2);
|
|
279
|
+
display: var(--app-shell-header-resize-handle-display, block);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:where([data-app-shell-footer] > [role='separator'][data-section='footer']) {
|
|
283
|
+
top: calc(var(--app-shell-resize-handle-size, calc(0.375rem * var(--mantine-scale, 1))) / -2);
|
|
284
|
+
display: var(--app-shell-footer-resize-handle-display, block);
|
|
285
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless aspect ratio (`AspectRatioBuilder`): how the child fills the box. Import
|
|
3
|
+
* it once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/aspect-ratio.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the root renders and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-aspect-ratio` (reburn-only).
|
|
9
|
+
*
|
|
10
|
+
* From Mantine 9.8.1 `core/src/components/AspectRatio/AspectRatio.module.css` (`.root`), complete:
|
|
11
|
+
* the box has no appearance of its own, the ratio only applies the builder's `ratio` option.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* Root (`aspectRatio.root`): never wider than its parent. `ratio` sets `--ar-ratio` (1 without it) */
|
|
15
|
+
:where([data-aspect-ratio]) {
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* The child (any element except a `\3c style>`) takes the full width and the ratio's height */
|
|
20
|
+
:where([data-aspect-ratio]) > :where(*:not(style)) {
|
|
21
|
+
aspect-ratio: var(--ar-ratio, 1);
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Images and videos fill the box and are cropped instead of stretched */
|
|
26
|
+
:where([data-aspect-ratio]) > :where(img, video) {
|
|
27
|
+
object-fit: cover;
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless background image (`BackgroundImageBuilder`): only what every background
|
|
3
|
+
* image needs, no appearance. Import it once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/background-image.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the root renders and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-background-image` (reburn-only).
|
|
9
|
+
*
|
|
10
|
+
* From Mantine 9.8.1 `core/src/components/BackgroundImage/BackgroundImage.module.css` (`.root`). It
|
|
11
|
+
* has no appearance of its own: the radius only applies the builder's `radius` option.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* Root (`backgroundImage.root`): a full-width block whose image (`src`, set as `background-image`)
|
|
15
|
+
covers it and stays centered. `radius` sets `--bi-radius`. `border: 0` and `text-decoration: none`
|
|
16
|
+
make an `<a>` or `<button>` root look like a `<div>` */
|
|
17
|
+
:where([data-background-image]) {
|
|
18
|
+
background-size: cover;
|
|
19
|
+
background-position: center;
|
|
20
|
+
display: block;
|
|
21
|
+
width: 100%;
|
|
22
|
+
border: 0;
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
border-radius: var(--bi-radius, 0);
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base CSS of the headless blockquote (`BlockquoteBuilder`): only what every quote needs, no
|
|
3
|
+
* appearance. Import it once:
|
|
4
|
+
*
|
|
5
|
+
* import 'reburn-ui/builders/blockquote.css';
|
|
6
|
+
*
|
|
7
|
+
* Selectors use the attributes the parts render and `:where()`, so they have no specificity and
|
|
8
|
+
* your own styles always win. The root is found by `data-blockquote` (reburn-only).
|
|
9
|
+
*
|
|
10
|
+
* From Mantine 9.8.1 `core/src/components/Blockquote/Blockquote.module.css` (`.root`), without the
|
|
11
|
+
* appearance (border, radius, padding, background) and the icon and cite rules: these elements
|
|
12
|
+
* have no parts, their layout is yours. The root sets `--bq-bd`, `--bq-bg-light`, `--bq-bg-dark`,
|
|
13
|
+
* `--bq-icon-size` and `--bq-radius` for your CSS.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/* Root (`blockquote.root`): positioned for an absolutely placed icon, without the browser's
|
|
17
|
+
default `<blockquote>` margin, `textWrap` sets `--bq-text-wrap` (else the theme's text wrap) */
|
|
18
|
+
:where([data-blockquote]) {
|
|
19
|
+
position: relative;
|
|
20
|
+
margin: 0;
|
|
21
|
+
text-wrap: var(--bq-text-wrap, var(--mantine-text-wrap));
|
|
22
|
+
}
|