@terrafirmagreg-team/ui 0.0.0-stage → 0.1.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/package.json +93 -3
- package/src/components/blocks/button/icon-button.tsx +48 -0
- package/src/components/blocks/canvas/chevron-edge.tsx +134 -0
- package/src/components/blocks/canvas/flow-canvas.tsx +177 -0
- package/src/components/blocks/canvas/flow-toolbar.tsx +32 -0
- package/src/components/blocks/canvas/flow-viewport.tsx +243 -0
- package/src/components/blocks/git/github-info.tsx +77 -0
- package/src/components/blocks/lang/content.tsx +22 -0
- package/src/components/blocks/lang/flag.tsx +24 -0
- package/src/components/blocks/lang/link.tsx +22 -0
- package/src/components/blocks/lang/redirect.tsx +47 -0
- package/src/components/blocks/lang/switcher.tsx +53 -0
- package/src/components/blocks/lang/untranslated-callout.tsx +28 -0
- package/src/components/blocks/link/link-preview.tsx +256 -0
- package/src/components/blocks/list/row.tsx +91 -0
- package/src/components/blocks/media/glb/model.tsx +243 -0
- package/src/components/blocks/media/glb/scene.tsx +372 -0
- package/src/components/blocks/media/glb/viewer.tsx +51 -0
- package/src/components/blocks/media/image.tsx +135 -0
- package/src/components/blocks/media/slideshow.tsx +177 -0
- package/src/components/blocks/nav/breadcrumb.tsx +50 -0
- package/src/components/blocks/nav/link.tsx +85 -0
- package/src/components/blocks/nav/site-menu.tsx +77 -0
- package/src/components/blocks/nav/site-title.tsx +60 -0
- package/src/components/blocks/nav/switcher.tsx +205 -0
- package/src/components/blocks/page/empty-state.tsx +31 -0
- package/src/components/blocks/page/heading.tsx +53 -0
- package/src/components/blocks/page/pager.tsx +112 -0
- package/src/components/blocks/readability/menu.tsx +431 -0
- package/src/components/blocks/readability/track.tsx +164 -0
- package/src/components/blocks/search/command.tsx +79 -0
- package/src/components/blocks/search/dialog.tsx +712 -0
- package/src/components/blocks/search/provider.tsx +117 -0
- package/src/components/blocks/sidebar.tsx +406 -0
- package/src/components/blocks/theme/toggle.tsx +71 -0
- package/src/components/blocks/tooltip/hint.tsx +27 -0
- package/src/components/blocks/viewer/controls.tsx +279 -0
- package/src/components/blocks/viewer/float-bar.tsx +50 -0
- package/src/components/layouts/layout.tsx +93 -0
- package/src/components/layouts/left-sidebar/content.tsx +62 -0
- package/src/components/layouts/left-sidebar/context.tsx +54 -0
- package/src/components/layouts/left-sidebar/expand.tsx +22 -0
- package/src/components/layouts/left-sidebar/footer.tsx +105 -0
- package/src/components/layouts/left-sidebar/index.ts +28 -0
- package/src/components/layouts/left-sidebar/items.tsx +102 -0
- package/src/components/layouts/left-sidebar/search.tsx +74 -0
- package/src/components/layouts/left-sidebar/sidebar.tsx +188 -0
- package/src/components/layouts/left-sidebar/tree.tsx +156 -0
- package/src/components/layouts/right-sidebar.tsx +95 -0
- package/src/components/layouts/tree-context.tsx +41 -0
- package/src/components/mdx/accordion.tsx +184 -0
- package/src/components/mdx/banner.tsx +154 -0
- package/src/components/mdx/callout.tsx +96 -0
- package/src/components/mdx/card.tsx +49 -0
- package/src/components/mdx/codeblock.tsx +249 -0
- package/src/components/mdx/collapsible.tsx +32 -0
- package/src/components/mdx/files.tsx +62 -0
- package/src/components/mdx/glow-header.tsx +40 -0
- package/src/components/mdx/gradient-text.tsx +27 -0
- package/src/components/mdx/image-zoom.tsx +314 -0
- package/src/components/mdx/mermaid.tsx +16 -0
- package/src/components/mdx/multiblock.tsx +18 -0
- package/src/components/mdx/preview.tsx +100 -0
- package/src/components/mdx/steps.tsx +9 -0
- package/src/components/mdx/table.tsx +13 -0
- package/src/components/mdx/tabs.tsx +353 -0
- package/src/components/mdx/type-table.tsx +170 -0
- package/src/components/ui/accordion.tsx +71 -0
- package/src/components/ui/alert-dialog.tsx +187 -0
- package/src/components/ui/alert.tsx +75 -0
- package/src/components/ui/aspect-ratio.tsx +22 -0
- package/src/components/ui/attachment.tsx +207 -0
- package/src/components/ui/avatar.tsx +108 -0
- package/src/components/ui/badge.tsx +51 -0
- package/src/components/ui/breadcrumb.tsx +124 -0
- package/src/components/ui/bubble.tsx +127 -0
- package/src/components/ui/button-group.tsx +87 -0
- package/src/components/ui/button.tsx +57 -0
- package/src/components/ui/calendar.tsx +221 -0
- package/src/components/ui/card.tsx +102 -0
- package/src/components/ui/carousel.tsx +242 -0
- package/src/components/ui/chart.tsx +371 -0
- package/src/components/ui/checkbox.tsx +28 -0
- package/src/components/ui/collapsible.tsx +21 -0
- package/src/components/ui/combobox.tsx +297 -0
- package/src/components/ui/command.tsx +198 -0
- package/src/components/ui/context-menu.tsx +270 -0
- package/src/components/ui/dialog.tsx +160 -0
- package/src/components/ui/direction.tsx +6 -0
- package/src/components/ui/drawer.tsx +227 -0
- package/src/components/ui/dropdown-menu.tsx +269 -0
- package/src/components/ui/empty.tsx +103 -0
- package/src/components/ui/field.tsx +238 -0
- package/src/components/ui/hover-card.tsx +50 -0
- package/src/components/ui/input-group.tsx +158 -0
- package/src/components/ui/input-otp.tsx +86 -0
- package/src/components/ui/input.tsx +19 -0
- package/src/components/ui/item.tsx +201 -0
- package/src/components/ui/kbd.tsx +26 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/marker.tsx +70 -0
- package/src/components/ui/menubar.tsx +280 -0
- package/src/components/ui/message-scroller.tsx +131 -0
- package/src/components/ui/message.tsx +91 -0
- package/src/components/ui/native-select.tsx +60 -0
- package/src/components/ui/navigation-menu.tsx +167 -0
- package/src/components/ui/pagination.tsx +130 -0
- package/src/components/ui/popover.tsx +91 -0
- package/src/components/ui/progress.tsx +82 -0
- package/src/components/ui/questionnaire.tsx +324 -0
- package/src/components/ui/radio-group.tsx +37 -0
- package/src/components/ui/resizable.tsx +49 -0
- package/src/components/ui/scroll-area.tsx +54 -0
- package/src/components/ui/select.tsx +200 -0
- package/src/components/ui/separator.tsx +24 -0
- package/src/components/ui/sheet.tsx +138 -0
- package/src/components/ui/sidebar.tsx +730 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +51 -0
- package/src/components/ui/spinner.tsx +10 -0
- package/src/components/ui/switch.tsx +31 -0
- package/src/components/ui/table.tsx +115 -0
- package/src/components/ui/tabs.tsx +81 -0
- package/src/components/ui/textarea.tsx +17 -0
- package/src/components/ui/toast.tsx +234 -0
- package/src/components/ui/toggle-group.tsx +89 -0
- package/src/components/ui/toggle.tsx +44 -0
- package/src/components/ui/tooltip.tsx +65 -0
- package/src/hooks/canvas/use-flow-hover.ts +18 -0
- package/src/hooks/canvas/use-flow-viewport-persist.ts +33 -0
- package/src/hooks/lang.ts +8 -0
- package/src/hooks/layout.ts +18 -0
- package/src/hooks/page/use-fit-pages.ts +91 -0
- package/src/hooks/page/use-location-search.ts +25 -0
- package/src/hooks/page/use-page-preview.ts +40 -0
- package/src/hooks/page/use-paged-list.ts +20 -0
- package/src/hooks/readability/provider.ts +86 -0
- package/src/hooks/search/dialog.ts +41 -0
- package/src/hooks/search/provider.ts +25 -0
- package/src/hooks/search/use-highlight-query.ts +51 -0
- package/src/hooks/sidebar.ts +63 -0
- package/src/hooks/use-async-value.ts +57 -0
- package/src/hooks/use-close-on-scroll.ts +23 -0
- package/src/hooks/use-copy-button.ts +46 -0
- package/src/hooks/use-cycle-index.ts +75 -0
- package/src/hooks/use-document-title.ts +9 -0
- package/src/hooks/use-element-size.ts +35 -0
- package/src/hooks/use-external-meta.ts +132 -0
- package/src/hooks/use-hot-key.ts +33 -0
- package/src/hooks/use-hover-follow.ts +54 -0
- package/src/hooks/use-in-view.ts +30 -0
- package/src/hooks/use-last-value.ts +15 -0
- package/src/hooks/use-marquee.ts +51 -0
- package/src/hooks/use-media-query.ts +14 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hooks/use-modifier-keys.ts +31 -0
- package/src/hooks/use-on-change.ts +35 -0
- package/src/hooks/use-pane-keys.ts +28 -0
- package/src/hooks/use-swipe.ts +26 -0
- package/src/hooks/use-tree.ts +102 -0
- package/src/hooks/viewer/use-in-float-bar.ts +6 -0
- package/src/hooks/viewer/use-viewer-prefs.ts +77 -0
- package/src/lib/canvas/edge.ts +173 -0
- package/src/lib/canvas/geometry.ts +53 -0
- package/src/lib/canvas/state.ts +47 -0
- package/src/lib/canvas/viewport.ts +37 -0
- package/src/lib/canvas/xyflow.ts +1 -0
- package/src/lib/config.ts +81 -0
- package/src/lib/mdx/callout.ts +20 -0
- package/src/lib/mdx/gradient.ts +15 -0
- package/src/lib/mdx/mermaid.ts +14 -0
- package/src/lib/media/crop-opaque.ts +76 -0
- package/src/lib/media/nearby-indexes.ts +6 -0
- package/src/lib/media/trim-transparent.ts +117 -0
- package/src/lib/readability/config.ts +10 -0
- package/src/lib/readability/spotlight.ts +186 -0
- package/src/lib/readability/store.ts +146 -0
- package/src/lib/tree.ts +92 -0
- package/src/lib/utils/async-cache.ts +32 -0
- package/src/lib/utils/cn.ts +1 -0
- package/src/lib/utils/format.ts +22 -0
- package/src/lib/utils/history.ts +9 -0
- package/src/lib/utils/merge-refs.ts +13 -0
- package/src/lib/utils/nav-active.ts +58 -0
- package/src/lib/utils/stored-value.ts +136 -0
- package/src/lib/utils/urls.ts +17 -0
- package/src/locales/en_us.json +119 -0
- package/src/locales/pl_pl.json +35 -0
- package/src/locales/ru_ru.json +119 -0
- package/src/locales/uk_ua.json +35 -0
- package/src/locales/zh_cn.json +17 -0
- package/src/locales/zh_tw.json +17 -0
- package/src/locales.ts +5 -0
- package/src/provider.tsx +141 -0
- package/src/types/canvas.ts +49 -0
- package/src/types/glb.ts +25 -0
- package/src/types/nav.ts +95 -0
- package/src/types/preview.ts +9 -0
- package/src/types/readability.ts +28 -0
- package/src/types/search.ts +56 -0
- package/src/types/tree.ts +18 -0
- package/src/types/viewer.ts +53 -0
- package/styles/content/base.css +194 -0
- package/styles/content/default-colors.css +51 -0
- package/styles/content/shiki.css +108 -0
- package/styles/content/typography.mjs +3941 -0
- package/styles/content.css +7 -0
- package/styles/image-zoom.css +83 -0
- package/styles/layout.css +28 -0
- package/styles/left-sidebar.css +140 -0
- package/styles/readability.css +50 -0
- package/styles/right-sidebar.css +6 -0
- package/styles/workspace.css +26 -0
- package/styles.css +413 -0
- package/README.md +0 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* Vendored fumadocs content theme: fd tokens + base styles + shiki + prose.
|
|
2
|
+
Replaces the stock `fumadocs-ui/css/*` imports. */
|
|
3
|
+
@import './content/default-colors.css';
|
|
4
|
+
@import './content/base.css';
|
|
5
|
+
@import './content/shiki.css';
|
|
6
|
+
|
|
7
|
+
@plugin './content/typography.mjs';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
[data-rmiz] {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
[data-rmiz-ghost] {
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
position: absolute;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-rmiz-btn-zoom],
|
|
12
|
+
[data-rmiz-btn-unzoom] {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-rmiz-content='found'] img {
|
|
17
|
+
cursor: zoom-in;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-rmiz-modal][open] {
|
|
21
|
+
width: 100vw;
|
|
22
|
+
width: 100dvw;
|
|
23
|
+
|
|
24
|
+
height: 100vh;
|
|
25
|
+
height: 100dvh;
|
|
26
|
+
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
max-width: none;
|
|
29
|
+
max-height: none;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 0;
|
|
32
|
+
position: fixed;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-rmiz-modal]:focus-visible {
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-rmiz-modal-overlay] {
|
|
41
|
+
transition: background-color 0.3s;
|
|
42
|
+
position: absolute;
|
|
43
|
+
inset: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-rmiz-modal-overlay='visible'] {
|
|
47
|
+
background-color: var(--color-background);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-rmiz-modal-overlay='hidden'] {
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-rmiz-modal-content] {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-rmiz-modal]::backdrop {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-rmiz-modal-img] {
|
|
65
|
+
cursor: zoom-out;
|
|
66
|
+
image-rendering: high-quality;
|
|
67
|
+
transform-origin: 0 0;
|
|
68
|
+
transition: transform 0.3s;
|
|
69
|
+
position: absolute;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (prefers-reduced-motion: reduce) {
|
|
73
|
+
[data-rmiz-modal-overlay],
|
|
74
|
+
[data-rmiz-modal-img] {
|
|
75
|
+
transition-duration: 0.01ms !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
::view-transition-old(lightbox),
|
|
80
|
+
::view-transition-new(lightbox) {
|
|
81
|
+
height: 100%;
|
|
82
|
+
object-fit: cover;
|
|
83
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@media (min-width: 768px) {
|
|
2
|
+
#spacious-layout {
|
|
3
|
+
width: 100%;
|
|
4
|
+
max-width: var(--layout-width, 97rem);
|
|
5
|
+
margin-inline: auto;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#page-panel {
|
|
9
|
+
--toc-width: 0px;
|
|
10
|
+
margin-inline-end: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body:has(#spacious-layout) {
|
|
15
|
+
background-color: var(--color-card);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#page-panel > header [aria-controls='sidebar'][data-collapsed='true'] {
|
|
19
|
+
color: var(--color-primary);
|
|
20
|
+
background-color: color-mix(in oklab, var(--color-primary) 12%, transparent);
|
|
21
|
+
border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
|
|
22
|
+
border-radius: 0.5rem;
|
|
23
|
+
box-shadow: var(--shadow-sm);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#page-panel > header [aria-controls='sidebar'][data-collapsed='true']:hover {
|
|
27
|
+
background-color: color-mix(in oklab, var(--color-primary) 20%, transparent);
|
|
28
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
[data-slot='left-sidebar-item'],
|
|
2
|
+
[data-slot='left-sidebar-folder-trigger'],
|
|
3
|
+
[data-slot='left-sidebar-folder-link'] {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: calc(var(--spacing) * 3);
|
|
9
|
+
border-radius: var(--radius-lg, 0.5rem);
|
|
10
|
+
padding: calc(var(--spacing) * 2) calc(var(--spacing) * 2.5);
|
|
11
|
+
text-align: start;
|
|
12
|
+
overflow-wrap: anywhere;
|
|
13
|
+
outline: none;
|
|
14
|
+
color: var(--color-muted-foreground);
|
|
15
|
+
transition: color 0.15s ease;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:is(
|
|
19
|
+
[data-slot='left-sidebar-item'],
|
|
20
|
+
[data-slot='left-sidebar-folder-trigger'],
|
|
21
|
+
[data-slot='left-sidebar-folder-link']
|
|
22
|
+
):hover {
|
|
23
|
+
color: var(--color-accent-foreground);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:is(
|
|
27
|
+
[data-slot='left-sidebar-item'],
|
|
28
|
+
[data-slot='left-sidebar-folder-trigger'],
|
|
29
|
+
[data-slot='left-sidebar-folder-link']
|
|
30
|
+
):focus-visible {
|
|
31
|
+
outline: 2px solid var(--color-ring);
|
|
32
|
+
outline-offset: -2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:is(
|
|
36
|
+
[data-slot='left-sidebar-item'],
|
|
37
|
+
[data-slot='left-sidebar-folder-trigger'],
|
|
38
|
+
[data-slot='left-sidebar-folder-link']
|
|
39
|
+
) svg {
|
|
40
|
+
width: 1rem;
|
|
41
|
+
height: 1rem;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:is(
|
|
46
|
+
[data-slot='left-sidebar-item'],
|
|
47
|
+
[data-slot='left-sidebar-folder-trigger'],
|
|
48
|
+
[data-slot='left-sidebar-folder-link']
|
|
49
|
+
)[data-active='true'] {
|
|
50
|
+
background: color-mix(in srgb, var(--color-primary) 10%, transparent);
|
|
51
|
+
color: var(--color-primary);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:is(
|
|
55
|
+
[data-slot='left-sidebar-folder-trigger'],
|
|
56
|
+
[data-slot='left-sidebar-folder-link']
|
|
57
|
+
) > [data-icon] {
|
|
58
|
+
width: 0.875rem;
|
|
59
|
+
height: 0.875rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot='left-sidebar-folder-content']
|
|
63
|
+
:is([data-slot='left-sidebar-item'], [data-slot='left-sidebar-folder-link'])[data-active='true']::before {
|
|
64
|
+
content: '';
|
|
65
|
+
position: absolute;
|
|
66
|
+
inset-block: calc(var(--spacing) * 2);
|
|
67
|
+
inset-inline-start: calc(var(--spacing) * -1);
|
|
68
|
+
width: 1px;
|
|
69
|
+
background: var(--color-primary);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot='left-sidebar-folder-content'] {
|
|
73
|
+
position: relative;
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
margin-inline-start: calc(var(--spacing) * 3);
|
|
77
|
+
padding-inline-start: calc(var(--spacing) * 1);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot='left-sidebar-folder-content']::before {
|
|
81
|
+
content: '';
|
|
82
|
+
position: absolute;
|
|
83
|
+
inset-block: calc(var(--spacing) * 1);
|
|
84
|
+
inset-inline-start: 0;
|
|
85
|
+
width: 1px;
|
|
86
|
+
background: var(--color-border);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-slot='left-sidebar-label'] {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: calc(var(--spacing) * 2);
|
|
93
|
+
margin-bottom: calc(var(--spacing) * 1.5);
|
|
94
|
+
padding-inline: calc(var(--spacing) * 2.5);
|
|
95
|
+
font-size: 11px;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
text-transform: uppercase;
|
|
98
|
+
letter-spacing: 0.05em;
|
|
99
|
+
color: color-mix(in srgb, var(--color-muted-foreground) 60%, transparent);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[data-slot='left-sidebar-label'] svg {
|
|
103
|
+
width: 0.875rem;
|
|
104
|
+
height: 0.875rem;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-slot='left-sidebar-label']::after {
|
|
109
|
+
content: '';
|
|
110
|
+
height: 1px;
|
|
111
|
+
flex: 1;
|
|
112
|
+
background: var(--color-border);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[data-slot='left-sidebar-label'][data-nested] {
|
|
116
|
+
margin-top: calc(var(--spacing) * 4);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-slot='left-sidebar-label'][data-nested]:first-child {
|
|
120
|
+
margin-top: calc(var(--spacing) * 1);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-slot='left-sidebar-separator'] {
|
|
124
|
+
height: 1px;
|
|
125
|
+
background: var(--color-border);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-slot='left-sidebar-separator'][data-orientation='vertical'] {
|
|
129
|
+
width: 1px;
|
|
130
|
+
height: auto;
|
|
131
|
+
align-self: stretch;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[data-slot='left-sidebar-portal'] {
|
|
135
|
+
display: contents;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-slot='left-sidebar-portal']:not(:empty) ~ [data-slot='left-sidebar-tree'] {
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@media (min-width: 768px) {
|
|
2
|
+
html[data-layout='full'] #spacious-layout {
|
|
3
|
+
--layout-width: none;
|
|
4
|
+
--page-width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-layout='sidebar'] #spacious-layout,
|
|
8
|
+
html[data-layout='both'] #spacious-layout {
|
|
9
|
+
--layout-width: var(--page-width, 97rem);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html[data-layout='both'] #spacious-layout {
|
|
13
|
+
--page-width: var(--content-width, 100%);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
html[data-layout='both'] #page-panel:has(.viewport-shell)
|
|
17
|
+
> div:has(> #page) {
|
|
18
|
+
padding-inline: max(
|
|
19
|
+
var(--spacing) * 6,
|
|
20
|
+
calc((100% - var(--page-width) - var(--toc-width)) / 2)
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html[data-layout='both'] #page:has(.viewport-shell) {
|
|
25
|
+
max-width: var(--page-width);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
html[data-readability-anim] #spacious-layout {
|
|
30
|
+
transition:
|
|
31
|
+
grid-template-columns 0.3s cubic-bezier(0.22, 1, 0.36, 1),
|
|
32
|
+
max-width 0.5s ease-in-out;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
html[data-readability-anim] #page,
|
|
36
|
+
html[data-readability-anim] #page > *,
|
|
37
|
+
html[data-readability-anim] #page-panel > div {
|
|
38
|
+
transition:
|
|
39
|
+
max-width 0.5s ease-in-out,
|
|
40
|
+
padding 0.5s ease-in-out;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {
|
|
44
|
+
html[data-readability-anim] #spacious-layout,
|
|
45
|
+
html[data-readability-anim] #page,
|
|
46
|
+
html[data-readability-anim] #page > *,
|
|
47
|
+
html[data-readability-anim] #page-panel > div {
|
|
48
|
+
transition: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#page-panel:has(.viewport-shell) {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#page:has(.viewport-shell) {
|
|
6
|
+
max-width: none;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.viewport-body {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex: 1;
|
|
16
|
+
max-width: none;
|
|
17
|
+
min-height: 0;
|
|
18
|
+
height: 100%;
|
|
19
|
+
padding-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.viewport-shell {
|
|
23
|
+
flex: 1;
|
|
24
|
+
min-height: 0;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|