@fest-lib/veela 0.1.20 → 1.0.2
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/veela.js +4 -33
- package/package.json +9 -2
- package/src/scss/_layers.scss +6 -34
- package/src/scss/basic/{misc/_core-layout.scss → _core-layout.scss} +1 -1
- package/src/scss/basic/_layers.scss +1 -0
- package/src/scss/basic/{misc/_layout.scss → _layout.scss} +15 -15
- package/src/scss/basic/{misc/_normalize.scss → _normalize.scss} +5 -103
- package/src/scss/basic/{misc/_states.scss → _states.scss} +2 -2
- package/src/scss/{core/misc → basic}/_utilities.scss +4 -4
- package/src/scss/basic/design/_keyframes.scss +1 -1
- package/src/scss/basic/design/_shapes.scss +1 -1
- package/src/scss/basic/index.scss +14 -16
- package/src/scss/chrome.scss +2 -0
- package/src/scss/core/_color-mod.scss +24 -0
- package/src/scss/core/{misc/_color-properties.scss → _color-properties.scss} +1 -1
- package/src/scss/core/{misc/_tokens.scss → _tokens.scss} +10 -93
- package/src/scss/core/index.scss +13 -1
- package/src/scss/index.scss +7 -2
- package/src/scss/index.ts +1 -1
- package/src/scss/{core/interact → interact}/_viewport.scss +1 -1
- package/src/scss/interact/index.scss +18 -0
- package/src/scss/theme/_effects.scss +60 -0
- package/src/scss/theme/index.scss +8 -0
- package/src/scss/{advanced/index.ts → theme/loader.ts} +3 -4
- package/src/scss/ui/_bar.scss +268 -0
- package/src/scss/ui/_buttons.scss +215 -0
- package/src/scss/ui/_chrome-mixins.scss +104 -0
- package/src/scss/ui/_color.scss +3 -0
- package/src/scss/ui/_colorize.scss +5 -0
- package/src/scss/{advanced/layout → ui}/_content.scss +0 -1
- package/src/scss/ui/_core-layout.scss +4 -0
- package/src/scss/ui/_essentials-options.scss +2 -0
- package/src/scss/ui/_essentials.scss +707 -0
- package/src/scss/ui/_explorer-content.scss +417 -0
- package/src/scss/ui/_explorer.scss +274 -0
- package/src/scss/ui/_forms-bare-host-elements.scss +25 -0
- package/src/scss/ui/_forms-options.scss +2 -0
- package/src/scss/ui/_forms.scss +279 -0
- package/src/scss/ui/_forms_misc.scss +201 -0
- package/src/scss/ui/_gridbox.scss +298 -0
- package/src/scss/ui/_home-host.scss +192 -0
- package/src/scss/ui/_index.scss +23 -0
- package/src/scss/ui/_launcher-typography.scss +31 -0
- package/src/scss/ui/_layers.scss +48 -0
- package/src/scss/ui/_layout.scss +3 -0
- package/src/scss/ui/_markdown.scss +1634 -0
- package/src/scss/ui/_modal.scss +309 -0
- package/src/scss/ui/_motion.scss +3 -0
- package/src/scss/ui/_native-host-button-chrome.scss +31 -0
- package/src/scss/ui/_normalize.scss +5 -0
- package/src/scss/ui/_orientation-functions.scss +273 -0
- package/src/scss/ui/_orientbox.scss +97 -0
- package/src/scss/ui/_scrollbar.scss +257 -0
- package/src/scss/ui/_shared-overlays.scss +16 -0
- package/src/scss/ui/_shared.scss +4 -0
- package/src/scss/ui/_sidebar.scss +478 -0
- package/src/scss/ui/_speed-dial.scss +47 -0
- package/src/scss/ui/_states.scss +4 -0
- package/src/scss/ui/_tables.scss +28 -0
- package/src/scss/ui/_tabs.scss +405 -0
- package/src/scss/ui/_taskbar.scss +215 -0
- package/src/scss/ui/_toolbars.scss +167 -0
- package/src/scss/ui/_typography.scss +11 -0
- package/src/scss/ui/_utils.scss +8 -0
- package/src/scss/ui/_viewport.scss +470 -0
- package/src/scss/ui/_window-frame.scss +658 -0
- package/src/scss/ui/components/app-menu.scss +817 -0
- package/src/scss/ui/components/appearance-desktop.scss +14 -0
- package/src/scss/ui/components/appearance-mobile.scss +14 -0
- package/src/scss/ui/components/calendar/flyout.scss +194 -0
- package/src/scss/ui/components/calendar/index.scss +627 -0
- package/src/scss/ui/components/explorer-settings.scss +232 -0
- package/src/scss/ui/components/file-manager-content.scss +2 -0
- package/src/scss/ui/components/file-manager.scss +2 -0
- package/src/scss/ui/components/launcher-icon-mask.scss +34 -0
- package/src/scss/ui/components/navbar.scss +133 -0
- package/src/scss/ui/components/quick-settings.scss +321 -0
- package/src/scss/ui/components/scrollframe.scss +58 -0
- package/src/scss/ui/components/slider.scss +188 -0
- package/src/scss/ui/components/speed-dial.scss +2288 -0
- package/src/scss/ui/components/statusbar.scss +255 -0
- package/src/scss/ui/components/task.scss +118 -0
- package/src/scss/ui/components/taskbar.scss +514 -0
- package/src/scss/ui/components/text.scss +241 -0
- package/src/scss/ui/components/window.scss +601 -0
- package/src/scss/ui/home-host-apply.scss +10 -0
- package/src/scss/ui/index.scss +7 -0
- package/src/scss/ui/native-controls.scss +17 -0
- package/src/scss/advanced/_index.scss +0 -0
- package/src/scss/advanced/animation/_motion.scss +0 -323
- package/src/scss/advanced/color/_color.scss +0 -328
- package/src/scss/advanced/color/_colorize.scss +0 -325
- package/src/scss/advanced/design/_design-tokens.scss +0 -118
- package/src/scss/advanced/design/_effects.scss +0 -275
- package/src/scss/advanced/design/_shadow.scss +0 -359
- package/src/scss/advanced/design/_surfaces.scss +0 -76
- package/src/scss/advanced/effects/_animations.scss +0 -124
- package/src/scss/advanced/effects/_shadows.scss +0 -50
- package/src/scss/advanced/font/_typography.scss +0 -601
- package/src/scss/advanced/index.scss +0 -11
- package/src/scss/advanced/layout/_index.scss +0 -5
- package/src/scss/advanced/layout/_normalize.scss +0 -543
- package/src/scss/advanced/layout/_shared-overlays.scss +0 -162
- package/src/scss/advanced/md3/_md3.scss +0 -506
- package/src/scss/advanced/md3/_utils.scss +0 -114
- package/src/scss/advanced/misc/_config.scss +0 -119
- package/src/scss/advanced/misc/_initials.scss +0 -298
- package/src/scss/advanced/misc/_mixins.scss +0 -179
- package/src/scss/advanced/misc/_rendering.scss +0 -82
- package/src/scss/advanced/misc/_tokens.scss +0 -74
- package/src/scss/advanced/theme/_shared.scss +0 -232
- package/src/scss/advanced/theme/_states.scss +0 -332
- package/src/scss/advanced/theme/_variants.scss +0 -354
- package/src/scss/advanced/tokens/_material-color.scss +0 -120
- package/src/scss/advanced/tokens/_variables.scss +0 -171
- package/src/scss/basic/misc/_index.scss +0 -18
- package/src/scss/basic/misc/_mixins.scss +0 -179
- package/src/scss/basic/misc/_queries.scss +0 -34
- package/src/scss/basic/misc/_tokens.scss +0 -78
- package/src/scss/basic/misc/_veela.scss +0 -12
- package/src/scss/core/misc/_index.scss +0 -6
- /package/src/scss/basic/{misc/_motion.scss → _motion.scss} +0 -0
- /package/src/scss/{advanced/misc → basic}/_queries.scss +0 -0
- /package/src/scss/basic/{misc/_shared.scss → _shared.scss} +0 -0
- /package/src/scss/core/{misc/_config.scss → _config.scss} +0 -0
- /package/src/scss/core/{misc/_functions.scss → _functions.scss} +0 -0
- /package/src/scss/core/{misc/_icons.scss → _icons.scss} +0 -0
- /package/src/scss/core/{misc/_layout.scss → _layout.scss} +0 -0
- /package/src/scss/core/{misc/_mixins.scss → _mixins.scss} +0 -0
- /package/src/scss/core/{misc/_properties.scss → _properties.scss} +0 -0
- /package/src/scss/core/{misc/_utils.scss → _utils.scss} +0 -0
- /package/src/scss/{core/interact → interact}/_draggable.scss +0 -0
- /package/src/scss/{core/interact → interact}/_position.scss +0 -0
- /package/src/scss/{core/interact → interact}/_ps-anchor.scss +0 -0
- /package/src/scss/{core/interact → interact}/_ps-centered.scss +0 -0
- /package/src/scss/{core/interact → interact}/_ps-cursor.scss +0 -0
- /package/src/scss/{core/interact → interact}/_ps-draggable.scss +0 -0
- /package/src/scss/{core/interact → interact}/_ps-mechanic.scss +0 -0
- /package/src/scss/{core/interact → interact}/_ps-properties.scss +0 -0
- /package/src/scss/{core/interact → interact}/_ps-resizable.scss +0 -0
- /package/src/scss/{core/interact → interact}/_resizable.scss +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
@use "../interact/viewport" as *;
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
@property --item-size {
|
|
5
|
+
syntax: "<length-percentage>";
|
|
6
|
+
inherits: true;
|
|
7
|
+
initial-value: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//
|
|
11
|
+
@layer layout {
|
|
12
|
+
|
|
13
|
+
//
|
|
14
|
+
.ui-gridlayout {
|
|
15
|
+
@include compute_orient_grid_layout();
|
|
16
|
+
|
|
17
|
+
//
|
|
18
|
+
& {
|
|
19
|
+
--c-gap: clamp(min(1rem, 8cqmin), min(calc(8cqmin / min(var(--layout-c, 4), var(--layout-r, 8))), calc(6cqmax / max(var(--layout-c, 4), var(--layout-r, 8)))), min(4rem, 16cqmin));
|
|
20
|
+
--r-gap: clamp(min(1rem, 8cqmin), min(calc(8cqmin / min(var(--layout-c, 4), var(--layout-r, 8))), calc(6cqmax / max(var(--layout-c, 4), var(--layout-r, 8)))), min(4rem, 16cqmin));
|
|
21
|
+
--sd-inherit-layout-c: var(--layout-c, 4);
|
|
22
|
+
--sd-inherit-layout-r: var(--layout-r, 8);
|
|
23
|
+
--sd-inherit-cs-layout-c: var(--cs-layout-c, var(--layout-c, 4));
|
|
24
|
+
--sd-inherit-cs-layout-r: var(--cs-layout-r, var(--layout-r, 8));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//
|
|
28
|
+
& {
|
|
29
|
+
//display: block flow;
|
|
30
|
+
display: block grid !important;
|
|
31
|
+
position: relative !important;
|
|
32
|
+
|
|
33
|
+
//
|
|
34
|
+
container-name: u2-grid;
|
|
35
|
+
|
|
36
|
+
//
|
|
37
|
+
zoom: 1;
|
|
38
|
+
direction: ltr;
|
|
39
|
+
|
|
40
|
+
//
|
|
41
|
+
pointer-events: none !important;
|
|
42
|
+
background-color: transparent;
|
|
43
|
+
|
|
44
|
+
//
|
|
45
|
+
inline-size: stretch;
|
|
46
|
+
block-size: stretch;
|
|
47
|
+
|
|
48
|
+
// for correct working of grid items
|
|
49
|
+
container-type: normal !important;
|
|
50
|
+
overflow: visible !important;
|
|
51
|
+
contain: none !important;
|
|
52
|
+
padding: 0px !important;
|
|
53
|
+
gap: 0px !important;
|
|
54
|
+
|
|
55
|
+
//
|
|
56
|
+
max-inline-size: min(100%, min(100cqi, 100dvi)) !important;
|
|
57
|
+
max-block-size: min(100%, min(100cqb, 100dvb)) !important;
|
|
58
|
+
box-sizing: border-box !important;
|
|
59
|
+
|
|
60
|
+
//
|
|
61
|
+
grid-template-columns: repeat(round(nearest, var(--cs-layout-c, 4), 1), minmax(0px, 1fr)) !important;
|
|
62
|
+
grid-template-rows: repeat(round(nearest, var(--cs-layout-r, 8), 1), minmax(0px, 1fr)) !important;
|
|
63
|
+
|
|
64
|
+
//
|
|
65
|
+
/*justify-content: safe start !important;
|
|
66
|
+
align-content: safe start !important;
|
|
67
|
+
justify-items: safe start !important;
|
|
68
|
+
align-items: safe start !important;*/
|
|
69
|
+
|
|
70
|
+
place-content: center !important;
|
|
71
|
+
place-items: center !important;
|
|
72
|
+
text-align: center !important;
|
|
73
|
+
|
|
74
|
+
//
|
|
75
|
+
grid-row: 1 / -1;
|
|
76
|
+
grid-column: 1 / -1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//
|
|
80
|
+
/* WHY: Exclude launcher label captions (`[data-layer="labels"]`) — `aspect-ratio: 1/1` on `span` mis-sizes ellipsis pills. */
|
|
81
|
+
.ui-ws-item:not([data-layer="labels"]) span:not(.ui-ws-item-caption) {
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
aspect-ratio: 1 / 1;
|
|
84
|
+
inline-size: fit-content;
|
|
85
|
+
block-size: fit-content;
|
|
86
|
+
display: inline;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ui-ws-item {
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
user-select: none;
|
|
92
|
+
pointer-events: auto;
|
|
93
|
+
|
|
94
|
+
&:active,
|
|
95
|
+
&:has(:active) {
|
|
96
|
+
will-change: inset, translate, transform, opacity, z-index;
|
|
97
|
+
cursor: grabbing;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
//
|
|
102
|
+
& > :where(*) {
|
|
103
|
+
@include compute_grid_item_cell();
|
|
104
|
+
--f-col: clamp(1, var(--sd-inherit-layout-c, var(--layout-c, 4)), 16);
|
|
105
|
+
--f-row: clamp(1, var(--sd-inherit-layout-r, var(--layout-r, 8)), 16);
|
|
106
|
+
|
|
107
|
+
// calculate visible size
|
|
108
|
+
& { --item-size: clamp(4rem, calc(100cqmax / min(var(--sd-inherit-cs-layout-c, var(--cs-layout-c, 4)), var(--sd-inherit-cs-layout-r, var(--cs-layout-r, 8)))), 5rem); }
|
|
109
|
+
& :where(*) {--drag-x: 0; --drag-y: 0; }
|
|
110
|
+
|
|
111
|
+
// dragging coordinate
|
|
112
|
+
& {
|
|
113
|
+
--drag-x: 0; --cs-drag-x: calc(var(--drag-x, 0) * 1px);
|
|
114
|
+
--drag-y: 0; --cs-drag-y: calc(var(--drag-y, 0) * 1px);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
//
|
|
118
|
+
&:active, &:has(:active), *:active {
|
|
119
|
+
will-change: transform;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
//
|
|
123
|
+
& {
|
|
124
|
+
grid-column: clamp(1, calc(1 + round(nearest, var(--cs-grid-c, 0), 1)), var(--sd-inherit-cs-layout-c, var(--cs-layout-c, 4))) !important;
|
|
125
|
+
grid-row: clamp(1, calc(1 + round(nearest, var(--cs-grid-r, 0), 1)), var(--sd-inherit-cs-layout-r, var(--cs-layout-r, 8))) !important;
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
|
|
128
|
+
//
|
|
129
|
+
position: relative !important;
|
|
130
|
+
z-index: 1;
|
|
131
|
+
transform-origin: 50% 50% !important;
|
|
132
|
+
transform:
|
|
133
|
+
translate3d(
|
|
134
|
+
round(nearest, calc(var(--cs-drag-x, 0px) + var(--cs-transition-c, 0px)), calc(1px / var(--pixel-ratio, 1))),
|
|
135
|
+
round(nearest, calc(var(--cs-drag-y, 0px) + var(--cs-transition-r, 0px)), calc(1px / var(--pixel-ratio, 1))),
|
|
136
|
+
0px)
|
|
137
|
+
scale3d(var(--scale, 1), var(--scale, 1), var(--scale, 1))
|
|
138
|
+
translate3d(
|
|
139
|
+
round(nearest, var(--translate-x, 0px), calc(1px / var(--pixel-ratio, 1))),
|
|
140
|
+
round(nearest, var(--translate-y, 0px), calc(1px / var(--pixel-ratio, 1))),
|
|
141
|
+
0px) !important;
|
|
142
|
+
translate: 0px 0px 0px !important;
|
|
143
|
+
|
|
144
|
+
//
|
|
145
|
+
inset: auto !important;
|
|
146
|
+
visibility: visible;
|
|
147
|
+
|
|
148
|
+
//
|
|
149
|
+
zoom: 1;
|
|
150
|
+
place-self: center !important;
|
|
151
|
+
|
|
152
|
+
//
|
|
153
|
+
min-inline-size: fit-content;
|
|
154
|
+
min-block-size: fit-content;
|
|
155
|
+
|
|
156
|
+
//
|
|
157
|
+
inline-size: var(--item-size, stretch);
|
|
158
|
+
block-size: var(--item-size, stretch);
|
|
159
|
+
|
|
160
|
+
//
|
|
161
|
+
max-inline-size: var(--item-size, stretch);
|
|
162
|
+
max-block-size: var(--item-size, stretch);
|
|
163
|
+
|
|
164
|
+
//
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
touch-action: none;
|
|
167
|
+
user-select: none;
|
|
168
|
+
-webkit-user-drag: none;
|
|
169
|
+
-moz-user-drag: none;
|
|
170
|
+
|
|
171
|
+
//
|
|
172
|
+
overflow: visible;
|
|
173
|
+
contain: none;
|
|
174
|
+
isolation: isolate;
|
|
175
|
+
|
|
176
|
+
//
|
|
177
|
+
border: none 0px transparent;
|
|
178
|
+
outline: none 0px transparent;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
//
|
|
182
|
+
&, & > *, & span {
|
|
183
|
+
--drag-distance: clamp(0, hypot(var(--dir-x, 0), var(--dir-y, 0)), 6);
|
|
184
|
+
--drag-duration: clamp(96ms, calc(var(--drag-distance, 0) * 110ms + 70ms), 360ms);
|
|
185
|
+
transition-behavior: allow-discrete;
|
|
186
|
+
transition-property: opacity, background-color, color;
|
|
187
|
+
transition-duration: var(--drag-duration);
|
|
188
|
+
transition-timing-function: cubic-bezier(0.22, 0.8, 0.3, 1);
|
|
189
|
+
transition-delay: 0ms;
|
|
190
|
+
background-image: none;
|
|
191
|
+
|
|
192
|
+
//
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
border: none 0px transparent;
|
|
195
|
+
outline: none 0px transparent;
|
|
196
|
+
box-shadow: none;
|
|
197
|
+
touch-action: none;
|
|
198
|
+
filter: none;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
//
|
|
202
|
+
& {
|
|
203
|
+
pointer-events: auto;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
//
|
|
207
|
+
& span, &.span, & ui-icon, &.ui-icon, & label, &.label {
|
|
208
|
+
pointer-events: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
//
|
|
212
|
+
ui-icon {
|
|
213
|
+
pointer-events: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
//
|
|
217
|
+
@media (prefers-reduced-motion: reduce) {
|
|
218
|
+
& {
|
|
219
|
+
transition-duration: 0ms;
|
|
220
|
+
transition-timing-function: linear;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
//
|
|
225
|
+
& > :where(*) {
|
|
226
|
+
inline-size: stretch;
|
|
227
|
+
block-size: stretch;
|
|
228
|
+
max-inline-size: stretch;
|
|
229
|
+
max-block-size: stretch;
|
|
230
|
+
min-inline-size: 1px;
|
|
231
|
+
min-block-size: 1px;
|
|
232
|
+
grid-column: 1 / -1;
|
|
233
|
+
grid-row: 1 / -1;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
//
|
|
238
|
+
&.sd-grid--labels,
|
|
239
|
+
&[data-layer="labels"] {
|
|
240
|
+
pointer-events: none !important;
|
|
241
|
+
isolation: isolate;
|
|
242
|
+
mix-blend-mode: normal;
|
|
243
|
+
|
|
244
|
+
//
|
|
245
|
+
& > :where(*) {
|
|
246
|
+
pointer-events: none;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
//
|
|
250
|
+
& > :where(.ui-ws-item-label) {
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
align-items: center;
|
|
254
|
+
justify-content: flex-start;
|
|
255
|
+
gap: clamp(0.1rem, 0.35cqmin, 0.35rem);
|
|
256
|
+
inline-size: 100%;
|
|
257
|
+
block-size: stretch;
|
|
258
|
+
padding-block-start: clamp(0.25rem, 0.65cqmin, 0.65rem);
|
|
259
|
+
color: color-mix(in oklch, var(--on-surface-color) 78%, transparent 22%);
|
|
260
|
+
font-size: clamp(0.65rem, 1.35cqmin, 1rem);
|
|
261
|
+
font-weight: 500;
|
|
262
|
+
text-align: center;
|
|
263
|
+
text-wrap: balance;
|
|
264
|
+
letter-spacing: 0.015em;
|
|
265
|
+
text-shadow:
|
|
266
|
+
0 1px 2px color-mix(in oklch, var(--surface-color) 35%, transparent),
|
|
267
|
+
0 0 0.35rem color-mix(in oklch, var(--surface-color) 15%, transparent);
|
|
268
|
+
translate: 0 calc(clamp(0.25rem, 0.65cqmin, 0.65rem) + var(--cs-sw-unit-y, 0px));
|
|
269
|
+
|
|
270
|
+
//
|
|
271
|
+
span {
|
|
272
|
+
pointer-events: none;
|
|
273
|
+
user-select: none;
|
|
274
|
+
max-inline-size: min(8ch, 100%);
|
|
275
|
+
opacity: clamp(0.75, 0.9, 1);
|
|
276
|
+
contain: layout paint; // Optimization: isolate layout/paint
|
|
277
|
+
content-visibility: auto; // Optimization: skip offscreen work
|
|
278
|
+
background-image: none;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
//
|
|
284
|
+
& slot {
|
|
285
|
+
isolation: auto !important;
|
|
286
|
+
display: contents !important;
|
|
287
|
+
overflow: visible !important;
|
|
288
|
+
contain: none !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
//
|
|
292
|
+
::slotted(*) {
|
|
293
|
+
direction: inherit;
|
|
294
|
+
writing-mode: inherit;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
// HomeView host + optional shell integration (environment-shell, window-frame).
|
|
2
|
+
// Loaded via adopted SpeedDial.scss — no dependency on `environment-shell/scss/*`.
|
|
3
|
+
//
|
|
4
|
+
// WHY: Shared demo mounts into `#app` with no intrinsic height; `%` + `min-block-size: 0` + abs
|
|
5
|
+
// `.speed-dial-root` collapses the grid. Use layout viewport (`100lvb` / `--lv-height`) so the
|
|
6
|
+
// Android IME overlays instead of squashing wallpaper + Speed Dial.
|
|
7
|
+
|
|
8
|
+
$bp-desktop-min: 641px;
|
|
9
|
+
|
|
10
|
+
@mixin home-view-host-styles {
|
|
11
|
+
:where(html):has(.speed-dial-root),
|
|
12
|
+
:where(html[data-cwsp-shell-role="launcher"]),
|
|
13
|
+
:where(body):has([data-view="home"]),
|
|
14
|
+
:where(body):has(.speed-dial-root) {
|
|
15
|
+
margin: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
min-block-size: var(--lv-height, 100lvb);
|
|
18
|
+
block-size: var(--lv-height, 100lvb);
|
|
19
|
+
max-block-size: var(--lv-height, 100lvb);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Typical view demo: `<main id="app">` + direct home root */
|
|
23
|
+
:where(main, [role="main"]):has(> .view-home.env-home-workspace) {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
min-block-size: var(--lv-height, 100lvb);
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
border: none;
|
|
29
|
+
outline: none;
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
background: transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* Environment shell: `#app` may be `<env-shell-container>` — `#home` sits under `.env-shell-workspace`,
|
|
36
|
+
* not as a direct child of the main landmark.
|
|
37
|
+
*/
|
|
38
|
+
:where(env-shell-container:is([role="main"], #app)):has(
|
|
39
|
+
.env-shell-workspace > .view-home.env-home-workspace,
|
|
40
|
+
.env-shell-workspace > .env-shell-home-mount > .view-home.env-home-workspace
|
|
41
|
+
) {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
min-block-size: var(--lv-height, 100lvb);
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
border: none;
|
|
47
|
+
outline: none;
|
|
48
|
+
box-shadow: none;
|
|
49
|
+
background: none;
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
border: none 0px transparent;
|
|
52
|
+
outline: none 0px transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Extra-standalone: `<main>` is the only host (no wf-mounted-view on child) — nothing frames the launcher */
|
|
56
|
+
:where(main, [role="main"]):has(> .view-home.env-home-workspace:not(.wf-mounted-view)) {
|
|
57
|
+
max-inline-size: none;
|
|
58
|
+
margin-inline: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(env-shell-container:is([role="main"], #app)):has(
|
|
62
|
+
.env-shell-workspace > .view-home.env-home-workspace:not(.wf-mounted-view),
|
|
63
|
+
.env-shell-workspace > .env-shell-home-mount > .view-home.env-home-workspace:not(.wf-mounted-view)
|
|
64
|
+
) {
|
|
65
|
+
max-inline-size: none;
|
|
66
|
+
margin-inline: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Backport from environment-shell: grid labels may extend past tile bounds */
|
|
70
|
+
.env-home-workspace {
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
overflow: visible;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.view-home.env-home-workspace {
|
|
77
|
+
position: relative;
|
|
78
|
+
display: grid;
|
|
79
|
+
grid-template-columns: minmax(0, 1fr);
|
|
80
|
+
grid-template-rows: minmax(0, 1fr);
|
|
81
|
+
align-items: stretch;
|
|
82
|
+
justify-items: stretch;
|
|
83
|
+
inline-size: 100%;
|
|
84
|
+
min-inline-size: 0;
|
|
85
|
+
min-block-size: var(--lv-height, 100lvb);
|
|
86
|
+
padding: 0;
|
|
87
|
+
overflow: visible;
|
|
88
|
+
background: transparent;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
/* WHY: host stays non-hit for chrome stacking; #home must still receive paste/drop. */
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
|
|
93
|
+
& > .speed-dial-root {
|
|
94
|
+
position: absolute;
|
|
95
|
+
inset: 0 auto auto 0;
|
|
96
|
+
inline-size: var(--lv-width, 100%);
|
|
97
|
+
block-size: var(--lv-height, 100%);
|
|
98
|
+
max-inline-size: var(--lv-width, 100%);
|
|
99
|
+
max-block-size: var(--lv-height, 100%);
|
|
100
|
+
/* INVARIANT: desktop root must accept link drop/paste — do not leave pointer-events:none. */
|
|
101
|
+
pointer-events: auto;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
* Flex / framed mount — parent supplies block size (`env-shell-workspace`, `wf-view-host`).
|
|
107
|
+
* INVARIANT: `min-block-size: 0` so flex `1fr` tracks do not overflow the shell.
|
|
108
|
+
*/
|
|
109
|
+
.env-shell-workspace > .view-home.env-home-workspace.wf-mounted-view,
|
|
110
|
+
.env-shell-workspace > .env-shell-home-mount > .view-home.env-home-workspace.wf-mounted-view,
|
|
111
|
+
.wf-view-host > .view-home.env-home-workspace.wf-mounted-view {
|
|
112
|
+
margin: 0;
|
|
113
|
+
margin-inline: 0;
|
|
114
|
+
max-inline-size: none;
|
|
115
|
+
flex: 1 1 auto;
|
|
116
|
+
align-self: stretch;
|
|
117
|
+
min-block-size: 0;
|
|
118
|
+
block-size: auto;
|
|
119
|
+
position: relative;
|
|
120
|
+
z-index: 0;
|
|
121
|
+
isolation: isolate;
|
|
122
|
+
border: none !important;
|
|
123
|
+
outline: none !important;
|
|
124
|
+
border-radius: 0 !important;
|
|
125
|
+
box-shadow: none !important;
|
|
126
|
+
background: transparent !important;
|
|
127
|
+
backdrop-filter: none !important;
|
|
128
|
+
-webkit-backdrop-filter: none !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.env-shell-workspace > .view-home.env-home-workspace.wf-mounted-view > .speed-dial-root,
|
|
132
|
+
.env-shell-workspace > .env-shell-home-mount > .view-home.env-home-workspace.wf-mounted-view > .speed-dial-root,
|
|
133
|
+
.wf-view-host > .view-home.env-home-workspace.wf-mounted-view > .speed-dial-root {
|
|
134
|
+
flex: 1 1 auto;
|
|
135
|
+
min-block-size: var(--lv-height, 100lvb);
|
|
136
|
+
block-size: var(--lv-height, 100lvb);
|
|
137
|
+
inline-size: var(--lv-width, 100%);
|
|
138
|
+
max-block-size: var(--lv-height, 100lvb);
|
|
139
|
+
border-radius: 0 !important;
|
|
140
|
+
outline: none !important;
|
|
141
|
+
border: none !important;
|
|
142
|
+
box-shadow: none !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Fixed bottom chrome (optional): `.env-shell-root` may set `--env-shell-chrome-stack-reserve`. */
|
|
146
|
+
.env-shell-workspace > .view-home.env-home-workspace.wf-mounted-view,
|
|
147
|
+
.env-shell-workspace > .env-shell-home-mount > .view-home.env-home-workspace.wf-mounted-view {
|
|
148
|
+
padding-inline-start: env(safe-area-inset-inline-start, 0);
|
|
149
|
+
padding-inline-end: env(safe-area-inset-inline-end, 0);
|
|
150
|
+
/* Prefer overlay status inset when present (covers notch); else safe-area only. */
|
|
151
|
+
padding-block-start: env(safe-area-inset-block-start, 0);
|
|
152
|
+
padding-block-end: env(safe-area-inset-block-end, 0px);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* NOTE: `--env-shell-chrome-stack-reserve` already includes mobile safe-area via root; avoid double-adding. */
|
|
156
|
+
.env-shell-root:has(> .env-shell-chrome) .env-shell-workspace > .view-home.env-home-workspace.wf-mounted-view,
|
|
157
|
+
.env-shell-root:has(> .env-shell-chrome)
|
|
158
|
+
.env-shell-workspace
|
|
159
|
+
> .env-shell-home-mount
|
|
160
|
+
> .view-home.env-home-workspace.wf-mounted-view {
|
|
161
|
+
/*padding-block-end: var(--env-shell-chrome-stack-reserve, 3rem);*/
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (min-width: $bp-desktop-min) {
|
|
165
|
+
.env-shell-root:has(> .env-shell-chrome) .env-shell-workspace > .view-home.env-home-workspace.wf-mounted-view,
|
|
166
|
+
.env-shell-root:has(> .env-shell-chrome)
|
|
167
|
+
.env-shell-workspace
|
|
168
|
+
> .env-shell-home-mount
|
|
169
|
+
> .view-home.env-home-workspace.wf-mounted-view {
|
|
170
|
+
/*padding-block-end: calc(
|
|
171
|
+
var(--env-shell-chrome-stack-reserve, 7.5rem) + env(safe-area-inset-block-end, 0px)
|
|
172
|
+
);*/
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/*
|
|
177
|
+
* Standalone test/demo (no `wf-mounted-view`): full-bleed, no “desk” card — avoid inset borders / shadows
|
|
178
|
+
* that read as a framed panel (see shared Vite demo on desktop).
|
|
179
|
+
*/
|
|
180
|
+
.view-home.env-home-workspace:not(.wf-mounted-view) {
|
|
181
|
+
max-inline-size: none;
|
|
182
|
+
margin-inline: 0;
|
|
183
|
+
border-radius: 0 !important;
|
|
184
|
+
border: none !important;
|
|
185
|
+
outline: none !important;
|
|
186
|
+
box-shadow: none !important;
|
|
187
|
+
background: transparent !important;
|
|
188
|
+
backdrop-filter: none !important;
|
|
189
|
+
-webkit-backdrop-filter: none !important;
|
|
190
|
+
min-block-size: var(--lv-height, 100lvb);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Veela UI chrome barrel. fl.ui `styles/ui` is a symlink here.
|
|
2
|
+
@use "./essentials" as *;
|
|
3
|
+
@use "./forms" as *;
|
|
4
|
+
@use "./core-layout" as *;
|
|
5
|
+
@use "./orientation-functions" as *;
|
|
6
|
+
@use "./orientbox" as *;
|
|
7
|
+
@use "./gridbox" as *;
|
|
8
|
+
@use "./speed-dial" as *;
|
|
9
|
+
@use "./shared" as *;
|
|
10
|
+
@use "./states" as *;
|
|
11
|
+
@use "./normalize" as *;
|
|
12
|
+
@use "./modal" as modal;
|
|
13
|
+
|
|
14
|
+
@forward "./scrollbar";
|
|
15
|
+
@forward "./layers";
|
|
16
|
+
@forward "./content";
|
|
17
|
+
@forward "./sidebar";
|
|
18
|
+
@forward "./tabs";
|
|
19
|
+
@forward "./bar";
|
|
20
|
+
@forward "./home-host";
|
|
21
|
+
@forward "./launcher-typography";
|
|
22
|
+
|
|
23
|
+
@include modal.transient-modal;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Launcher / SpeedDial typography (system stack — no separate font files required).
|
|
2
|
+
// Optional host override: set `--home-font-sans` on `:root`, `.view-home`, or `.speed-dial-root`.
|
|
3
|
+
|
|
4
|
+
@mixin home-launcher-typography {
|
|
5
|
+
.speed-dial-root.app-oriented-desktop,
|
|
6
|
+
.speed-dial-root {
|
|
7
|
+
--home-font-sans:
|
|
8
|
+
system-ui,
|
|
9
|
+
-apple-system,
|
|
10
|
+
"Segoe UI",
|
|
11
|
+
Roboto,
|
|
12
|
+
"Noto Sans",
|
|
13
|
+
"Helvetica Neue",
|
|
14
|
+
Arial,
|
|
15
|
+
"Apple Color Emoji",
|
|
16
|
+
"Segoe UI Emoji",
|
|
17
|
+
sans-serif;
|
|
18
|
+
|
|
19
|
+
font-family: var(--home-font-sans);
|
|
20
|
+
-webkit-font-smoothing: antialiased;
|
|
21
|
+
-moz-osx-font-smoothing: grayscale;
|
|
22
|
+
text-rendering: optimizeLegibility;
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* `ui-orientbox` can set `pointer-events: none`; label text still inherits these for metrics
|
|
26
|
+
* when painted from the caption layer.
|
|
27
|
+
*/
|
|
28
|
+
font-kerning: normal;
|
|
29
|
+
font-variant-numeric: tabular-nums;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Underlying / overlaying visual contracts for sibling layers.
|
|
2
|
+
|
|
3
|
+
@mixin underlying-layer {
|
|
4
|
+
position: absolute;
|
|
5
|
+
pointer-events: none;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
inset: 0;
|
|
8
|
+
z-index: calc(var(--layer-main-z, 0) - 1);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin overlaying-layer {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
pointer-events: none; // chrome children re-enable
|
|
15
|
+
z-index: calc(var(--layer-main-z, 0) + 1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin shaped-from-main {
|
|
19
|
+
border-radius: var(--layer-shape-radius, inherit);
|
|
20
|
+
mask-image: var(--layer-shape-mask, none);
|
|
21
|
+
-webkit-mask-image: var(--layer-shape-mask, none);
|
|
22
|
+
inline-size: 100%;
|
|
23
|
+
block-size: 100%;
|
|
24
|
+
|
|
25
|
+
@supports (border-shape: inset(0)) {
|
|
26
|
+
border-shape: var(--layer-shape-clip, none);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@supports not (border-shape: inset(0)) {
|
|
30
|
+
clip-path: var(--layer-shape-clip, none);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.c-underlying {
|
|
35
|
+
@include underlying-layer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.c-underlying__shaped {
|
|
39
|
+
@include shaped-from-main;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.c-overlaying {
|
|
43
|
+
@include overlaying-layer;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.c-overlaying [data-axis] {
|
|
47
|
+
pointer-events: auto;
|
|
48
|
+
}
|