@rr0/ufoathome 0.50.0 → 0.50.1
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.
|
@@ -19,7 +19,16 @@ const mm=`
|
|
|
19
19
|
.stage {
|
|
20
20
|
position: relative;
|
|
21
21
|
width: 100%;
|
|
22
|
-
height
|
|
22
|
+
/* AUTO, with the aspect ratio deciding the height — never a percentage.
|
|
23
|
+
A percentage height resolves against a parent whose own height this box is producing, and that
|
|
24
|
+
cycle does not always settle the same way: in a page column 585 px wide it came out 851 px tall
|
|
25
|
+
on rr0.org's case dossiers and 329 px in a bare page of the same width, from the same CSS. A
|
|
26
|
+
portrait box for a 16:9 recording, with the overlay stretched two and a half times vertically
|
|
27
|
+
over a 3D scene that had correctly reshaped itself to match. The ratio alone has no cycle to
|
|
28
|
+
settle: the width is definite, so the height follows from it.
|
|
29
|
+
The two places a real height IS imposed override this below — fullscreen, and (in
|
|
30
|
+
ufoTemplate) an overlay stretched over an outer stage by inset:0. */
|
|
31
|
+
height: auto;
|
|
23
32
|
aspect-ratio: 640 / 360;
|
|
24
33
|
display: flex;
|
|
25
34
|
align-items: center;
|
|
@@ -170,12 +179,29 @@ const mm=`
|
|
|
170
179
|
.stage {
|
|
171
180
|
position: relative;
|
|
172
181
|
width: 100%;
|
|
173
|
-
height
|
|
182
|
+
/* AUTO, with the aspect ratio deciding the height — never a percentage.
|
|
183
|
+
A percentage height resolves against a parent whose own height this box is producing, and that
|
|
184
|
+
cycle does not always settle the same way: in a page column 585 px wide it came out 851 px tall
|
|
185
|
+
on rr0.org's case dossiers and 329 px in a bare page of the same width, from the same CSS. A
|
|
186
|
+
portrait box for a 16:9 recording, with the overlay stretched two and a half times vertically
|
|
187
|
+
over a 3D scene that had correctly reshaped itself to match. The ratio alone has no cycle to
|
|
188
|
+
settle: the width is definite, so the height follows from it.
|
|
189
|
+
The two places a real height IS imposed override this below — fullscreen, and (in
|
|
190
|
+
ufoTemplate) an overlay stretched over an outer stage by inset:0. */
|
|
191
|
+
height: auto;
|
|
174
192
|
aspect-ratio: 640 / 360;
|
|
175
193
|
display: flex;
|
|
176
194
|
align-items: center;
|
|
177
195
|
justify-content: center;
|
|
178
196
|
}
|
|
197
|
+
/* Stretched over an outer stage by <rr0-scene> (see its .ufo-overlay rule, position:absolute with
|
|
198
|
+
inset:0): there the height is genuinely imposed from outside and this box has to take all of it,
|
|
199
|
+
or the toolbar and the corner buttons anchored to it stop reaching the real edges — which is what
|
|
200
|
+
they are anchored to it FOR. The host carries that class, so the two cases are told apart by the
|
|
201
|
+
one thing that actually differs between them, rather than by a percentage that has to guess. */
|
|
202
|
+
:host(.ufo-overlay) .stage {
|
|
203
|
+
height: 100%;
|
|
204
|
+
}
|
|
179
205
|
/* The browser's own fullscreen UA styles force the fullscreened element (.stage) to fill the
|
|
180
206
|
whole viewport (100vw/100vh) regardless of its content's aspect ratio. .toolbar/.corner-buttons
|
|
181
207
|
are anchored to .stage itself (not .frame) specifically so they stay pinned to the true screen
|
|
@@ -357,7 +357,16 @@ const Lm=`
|
|
|
357
357
|
.stage {
|
|
358
358
|
position: relative;
|
|
359
359
|
width: 100%;
|
|
360
|
-
height
|
|
360
|
+
/* AUTO, with the aspect ratio deciding the height — never a percentage.
|
|
361
|
+
A percentage height resolves against a parent whose own height this box is producing, and that
|
|
362
|
+
cycle does not always settle the same way: in a page column 585 px wide it came out 851 px tall
|
|
363
|
+
on rr0.org's case dossiers and 329 px in a bare page of the same width, from the same CSS. A
|
|
364
|
+
portrait box for a 16:9 recording, with the overlay stretched two and a half times vertically
|
|
365
|
+
over a 3D scene that had correctly reshaped itself to match. The ratio alone has no cycle to
|
|
366
|
+
settle: the width is definite, so the height follows from it.
|
|
367
|
+
The two places a real height IS imposed override this below — fullscreen, and (in
|
|
368
|
+
ufoTemplate) an overlay stretched over an outer stage by inset:0. */
|
|
369
|
+
height: auto;
|
|
361
370
|
aspect-ratio: 640 / 360;
|
|
362
371
|
display: flex;
|
|
363
372
|
align-items: center;
|
|
@@ -508,12 +517,29 @@ const Lm=`
|
|
|
508
517
|
.stage {
|
|
509
518
|
position: relative;
|
|
510
519
|
width: 100%;
|
|
511
|
-
height
|
|
520
|
+
/* AUTO, with the aspect ratio deciding the height — never a percentage.
|
|
521
|
+
A percentage height resolves against a parent whose own height this box is producing, and that
|
|
522
|
+
cycle does not always settle the same way: in a page column 585 px wide it came out 851 px tall
|
|
523
|
+
on rr0.org's case dossiers and 329 px in a bare page of the same width, from the same CSS. A
|
|
524
|
+
portrait box for a 16:9 recording, with the overlay stretched two and a half times vertically
|
|
525
|
+
over a 3D scene that had correctly reshaped itself to match. The ratio alone has no cycle to
|
|
526
|
+
settle: the width is definite, so the height follows from it.
|
|
527
|
+
The two places a real height IS imposed override this below — fullscreen, and (in
|
|
528
|
+
ufoTemplate) an overlay stretched over an outer stage by inset:0. */
|
|
529
|
+
height: auto;
|
|
512
530
|
aspect-ratio: 640 / 360;
|
|
513
531
|
display: flex;
|
|
514
532
|
align-items: center;
|
|
515
533
|
justify-content: center;
|
|
516
534
|
}
|
|
535
|
+
/* Stretched over an outer stage by <rr0-scene> (see its .ufo-overlay rule, position:absolute with
|
|
536
|
+
inset:0): there the height is genuinely imposed from outside and this box has to take all of it,
|
|
537
|
+
or the toolbar and the corner buttons anchored to it stop reaching the real edges — which is what
|
|
538
|
+
they are anchored to it FOR. The host carries that class, so the two cases are told apart by the
|
|
539
|
+
one thing that actually differs between them, rather than by a percentage that has to guess. */
|
|
540
|
+
:host(.ufo-overlay) .stage {
|
|
541
|
+
height: 100%;
|
|
542
|
+
}
|
|
517
543
|
/* The browser's own fullscreen UA styles force the fullscreened element (.stage) to fill the
|
|
518
544
|
whole viewport (100vw/100vh) regardless of its content's aspect ratio. .toolbar/.corner-buttons
|
|
519
545
|
are anchored to .stage itself (not .frame) specifically so they stay pinned to the true screen
|
|
@@ -1092,12 +1092,29 @@ select.weather-field:disabled {
|
|
|
1092
1092
|
.stage {
|
|
1093
1093
|
position: relative;
|
|
1094
1094
|
width: 100%;
|
|
1095
|
-
height
|
|
1095
|
+
/* AUTO, with the aspect ratio deciding the height — never a percentage.
|
|
1096
|
+
A percentage height resolves against a parent whose own height this box is producing, and that
|
|
1097
|
+
cycle does not always settle the same way: in a page column 585 px wide it came out 851 px tall
|
|
1098
|
+
on rr0.org's case dossiers and 329 px in a bare page of the same width, from the same CSS. A
|
|
1099
|
+
portrait box for a 16:9 recording, with the overlay stretched two and a half times vertically
|
|
1100
|
+
over a 3D scene that had correctly reshaped itself to match. The ratio alone has no cycle to
|
|
1101
|
+
settle: the width is definite, so the height follows from it.
|
|
1102
|
+
The two places a real height IS imposed override this below — fullscreen, and (in
|
|
1103
|
+
ufoTemplate) an overlay stretched over an outer stage by inset:0. */
|
|
1104
|
+
height: auto;
|
|
1096
1105
|
aspect-ratio: 640 / 360;
|
|
1097
1106
|
display: flex;
|
|
1098
1107
|
align-items: center;
|
|
1099
1108
|
justify-content: center;
|
|
1100
1109
|
}
|
|
1110
|
+
/* Stretched over an outer stage by <rr0-scene> (see its .ufo-overlay rule, position:absolute with
|
|
1111
|
+
inset:0): there the height is genuinely imposed from outside and this box has to take all of it,
|
|
1112
|
+
or the toolbar and the corner buttons anchored to it stop reaching the real edges — which is what
|
|
1113
|
+
they are anchored to it FOR. The host carries that class, so the two cases are told apart by the
|
|
1114
|
+
one thing that actually differs between them, rather than by a percentage that has to guess. */
|
|
1115
|
+
:host(.ufo-overlay) .stage {
|
|
1116
|
+
height: 100%;
|
|
1117
|
+
}
|
|
1101
1118
|
/* The browser's own fullscreen UA styles force the fullscreened element (.stage) to fill the
|
|
1102
1119
|
whole viewport (100vw/100vh) regardless of its content's aspect ratio. .toolbar/.corner-buttons
|
|
1103
1120
|
are anchored to .stage itself (not .frame) specifically so they stay pinned to the true screen
|
|
@@ -1424,7 +1441,16 @@ input[type=range] {
|
|
|
1424
1441
|
.stage {
|
|
1425
1442
|
position: relative;
|
|
1426
1443
|
width: 100%;
|
|
1427
|
-
height
|
|
1444
|
+
/* AUTO, with the aspect ratio deciding the height — never a percentage.
|
|
1445
|
+
A percentage height resolves against a parent whose own height this box is producing, and that
|
|
1446
|
+
cycle does not always settle the same way: in a page column 585 px wide it came out 851 px tall
|
|
1447
|
+
on rr0.org's case dossiers and 329 px in a bare page of the same width, from the same CSS. A
|
|
1448
|
+
portrait box for a 16:9 recording, with the overlay stretched two and a half times vertically
|
|
1449
|
+
over a 3D scene that had correctly reshaped itself to match. The ratio alone has no cycle to
|
|
1450
|
+
settle: the width is definite, so the height follows from it.
|
|
1451
|
+
The two places a real height IS imposed override this below — fullscreen, and (in
|
|
1452
|
+
ufoTemplate) an overlay stretched over an outer stage by inset:0. */
|
|
1453
|
+
height: auto;
|
|
1428
1454
|
aspect-ratio: 640 / 360;
|
|
1429
1455
|
display: flex;
|
|
1430
1456
|
align-items: center;
|
|
@@ -73,12 +73,29 @@ const It=`
|
|
|
73
73
|
.stage {
|
|
74
74
|
position: relative;
|
|
75
75
|
width: 100%;
|
|
76
|
-
height
|
|
76
|
+
/* AUTO, with the aspect ratio deciding the height — never a percentage.
|
|
77
|
+
A percentage height resolves against a parent whose own height this box is producing, and that
|
|
78
|
+
cycle does not always settle the same way: in a page column 585 px wide it came out 851 px tall
|
|
79
|
+
on rr0.org's case dossiers and 329 px in a bare page of the same width, from the same CSS. A
|
|
80
|
+
portrait box for a 16:9 recording, with the overlay stretched two and a half times vertically
|
|
81
|
+
over a 3D scene that had correctly reshaped itself to match. The ratio alone has no cycle to
|
|
82
|
+
settle: the width is definite, so the height follows from it.
|
|
83
|
+
The two places a real height IS imposed override this below — fullscreen, and (in
|
|
84
|
+
ufoTemplate) an overlay stretched over an outer stage by inset:0. */
|
|
85
|
+
height: auto;
|
|
77
86
|
aspect-ratio: 640 / 360;
|
|
78
87
|
display: flex;
|
|
79
88
|
align-items: center;
|
|
80
89
|
justify-content: center;
|
|
81
90
|
}
|
|
91
|
+
/* Stretched over an outer stage by <rr0-scene> (see its .ufo-overlay rule, position:absolute with
|
|
92
|
+
inset:0): there the height is genuinely imposed from outside and this box has to take all of it,
|
|
93
|
+
or the toolbar and the corner buttons anchored to it stop reaching the real edges — which is what
|
|
94
|
+
they are anchored to it FOR. The host carries that class, so the two cases are told apart by the
|
|
95
|
+
one thing that actually differs between them, rather than by a percentage that has to guess. */
|
|
96
|
+
:host(.ufo-overlay) .stage {
|
|
97
|
+
height: 100%;
|
|
98
|
+
}
|
|
82
99
|
/* The browser's own fullscreen UA styles force the fullscreened element (.stage) to fill the
|
|
83
100
|
whole viewport (100vw/100vh) regardless of its content's aspect ratio. .toolbar/.corner-buttons
|
|
84
101
|
are anchored to .stage itself (not .frame) specifically so they stay pinned to the true screen
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rr0/ufoathome",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.50.
|
|
4
|
+
"version": "0.50.1",
|
|
5
5
|
"description": "UFO@home — record and replay a UFO sighting's shape, movement and appearance",
|
|
6
6
|
"author": "Jérôme Beau <rr0@rr0.org> (https://rr0.org)",
|
|
7
7
|
"license": "MIT",
|