@adecore/ui 0.41.0 → 0.42.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/dist/theme.css +26 -8
- package/package.json +1 -1
- package/src/theme.css +26 -8
package/dist/theme.css
CHANGED
|
@@ -520,19 +520,37 @@
|
|
|
520
520
|
steps put the dim over it; both stay under `--z-popup`, so a menu in the nested dialog wins. */
|
|
521
521
|
.dialog-backdrop-nested { z-index: calc(var(--z-dialog) + 1); }
|
|
522
522
|
.dialog-popup-nested { z-index: calc(var(--z-dialog) + 2); }
|
|
523
|
-
/* A lightbox is the picture
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
.lightbox
|
|
523
|
+
/* A lightbox is the picture over the whole window, without the frame of a dialog. Its bar takes
|
|
524
|
+
the band of the window's title bar: it drags the window like that band does, its buttons opt
|
|
525
|
+
out, and on Windows and Linux it keeps the native window controls' corner free. */
|
|
526
|
+
.dialog-popup.lightbox {
|
|
527
|
+
--lightbox-bar: 48px;
|
|
527
528
|
--lightbox-margin: 64px;
|
|
528
|
-
|
|
529
|
+
inset: 0;
|
|
530
|
+
translate: none;
|
|
531
|
+
display: flex;
|
|
532
|
+
flex-direction: column;
|
|
533
|
+
max-width: none;
|
|
534
|
+
max-height: none;
|
|
535
|
+
border: 0;
|
|
536
|
+
border-radius: 0;
|
|
537
|
+
background: transparent;
|
|
538
|
+
box-shadow: none;
|
|
539
|
+
-webkit-app-region: no-drag;
|
|
540
|
+
}
|
|
541
|
+
.dialog-popup.lightbox[data-starting-style], .dialog-popup.lightbox[data-ending-style] { scale: 1; }
|
|
542
|
+
.lightbox-bar {
|
|
543
|
+
-webkit-app-region: drag;
|
|
544
|
+
padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 12px);
|
|
529
545
|
}
|
|
530
|
-
.lightbox-
|
|
546
|
+
.lightbox-bar button { -webkit-app-region: no-drag; }
|
|
547
|
+
/* The margin leaves room for the arrows beside a picture that is as large as it is allowed to get. */
|
|
548
|
+
.lightbox-stage img {
|
|
531
549
|
max-width: calc(100vw - 2 * var(--lightbox-margin));
|
|
532
|
-
max-height: calc(100dvh - 2 * var(--lightbox-
|
|
550
|
+
max-height: calc(100dvh - 2 * var(--lightbox-bar));
|
|
533
551
|
}
|
|
534
552
|
/* A picture holds the eye better against a heavier dim than a dialog of controls needs. */
|
|
535
|
-
.lightbox-backdrop { background: color-mix(in srgb, var(--bg)
|
|
553
|
+
.lightbox-backdrop { background: color-mix(in srgb, var(--bg) 92%, transparent); }
|
|
536
554
|
/* Tooltips. The popup fades and scales from its anchor side, and drops the motion while Base UI
|
|
537
555
|
says the tooltip is instant. The positioner does not animate its place: Base UI parks it at the
|
|
538
556
|
window's origin until it is measured, so it would slide in from the corner. */
|
package/package.json
CHANGED
package/src/theme.css
CHANGED
|
@@ -520,19 +520,37 @@
|
|
|
520
520
|
steps put the dim over it; both stay under `--z-popup`, so a menu in the nested dialog wins. */
|
|
521
521
|
.dialog-backdrop-nested { z-index: calc(var(--z-dialog) + 1); }
|
|
522
522
|
.dialog-popup-nested { z-index: calc(var(--z-dialog) + 2); }
|
|
523
|
-
/* A lightbox is the picture
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
.lightbox
|
|
523
|
+
/* A lightbox is the picture over the whole window, without the frame of a dialog. Its bar takes
|
|
524
|
+
the band of the window's title bar: it drags the window like that band does, its buttons opt
|
|
525
|
+
out, and on Windows and Linux it keeps the native window controls' corner free. */
|
|
526
|
+
.dialog-popup.lightbox {
|
|
527
|
+
--lightbox-bar: 48px;
|
|
527
528
|
--lightbox-margin: 64px;
|
|
528
|
-
|
|
529
|
+
inset: 0;
|
|
530
|
+
translate: none;
|
|
531
|
+
display: flex;
|
|
532
|
+
flex-direction: column;
|
|
533
|
+
max-width: none;
|
|
534
|
+
max-height: none;
|
|
535
|
+
border: 0;
|
|
536
|
+
border-radius: 0;
|
|
537
|
+
background: transparent;
|
|
538
|
+
box-shadow: none;
|
|
539
|
+
-webkit-app-region: no-drag;
|
|
540
|
+
}
|
|
541
|
+
.dialog-popup.lightbox[data-starting-style], .dialog-popup.lightbox[data-ending-style] { scale: 1; }
|
|
542
|
+
.lightbox-bar {
|
|
543
|
+
-webkit-app-region: drag;
|
|
544
|
+
padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 12px);
|
|
529
545
|
}
|
|
530
|
-
.lightbox-
|
|
546
|
+
.lightbox-bar button { -webkit-app-region: no-drag; }
|
|
547
|
+
/* The margin leaves room for the arrows beside a picture that is as large as it is allowed to get. */
|
|
548
|
+
.lightbox-stage img {
|
|
531
549
|
max-width: calc(100vw - 2 * var(--lightbox-margin));
|
|
532
|
-
max-height: calc(100dvh - 2 * var(--lightbox-
|
|
550
|
+
max-height: calc(100dvh - 2 * var(--lightbox-bar));
|
|
533
551
|
}
|
|
534
552
|
/* A picture holds the eye better against a heavier dim than a dialog of controls needs. */
|
|
535
|
-
.lightbox-backdrop { background: color-mix(in srgb, var(--bg)
|
|
553
|
+
.lightbox-backdrop { background: color-mix(in srgb, var(--bg) 92%, transparent); }
|
|
536
554
|
/* Tooltips. The popup fades and scales from its anchor side, and drops the motion while Base UI
|
|
537
555
|
says the tooltip is instant. The positioner does not animate its place: Base UI parks it at the
|
|
538
556
|
window's origin until it is measured, so it would slide in from the corner. */
|