32 lines
2.4 KiB
CSS
32 lines
2.4 KiB
CSS
/* Top-layer surfaces share the caption's existing metric, independent of page scroll. */
|
|
html[data-piik-native-window="integrated"] { --surface-inset-top: var(--native-caption-height); }
|
|
html[data-piik-native-window="integrated"]:is(:fullscreen, :has(:fullscreen)) { --surface-inset-top: 0px; }
|
|
html[data-piik-native-window] .c3-app { --c3-content-width: 100%; padding: 0; }
|
|
html[data-piik-native-window] [data-app-shell] { align-self: stretch; width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
|
|
html[data-piik-native-window] .lr-app > main:has(> [data-app-shell]) { display: flex; flex-direction: column; padding: 0; }
|
|
html[data-piik-native-window] .lr-app > main > [data-app-shell] { flex: 1 0 auto; }
|
|
html[data-piik-native-window] .lr-app > .lr-top { min-height: var(--native-caption-height); padding: 7px 16px; }
|
|
html[data-piik-native-window] .lr-top-app-identity { display: inline-flex; }
|
|
html[data-piik-native-window] [data-app-shell] .lr-launcher-brand { display: none; }
|
|
html[data-piik-native-window="integrated"] :is(.c3-site-bar, .lr-app > .lr-top, .c3-monitor.is-theater > .c3-monitor-heading) {
|
|
min-height: var(--native-caption-height);
|
|
padding: 7px calc(var(--native-caption-width) + 16px) 7px 16px;
|
|
app-region: drag;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 12;
|
|
background: var(--wall);
|
|
}
|
|
html[data-piik-native-window="integrated"] .c3-site-bar { height: var(--native-caption-height); }
|
|
/* The native header stays outside the page's scrollport. */
|
|
html[data-piik-native-window] .lr-app:has(> .lr-top) { height: 100dvh; min-height: 0; overflow: hidden; }
|
|
html[data-piik-native-window] .lr-app:has(> .lr-top) > main { flex: 1; min-height: 0; overflow-y: auto; }
|
|
html[data-piik-native-window] .lr-app > .lr-client-launch { place-items: safe center; }
|
|
html[data-piik-native-window] .lr-app > .lr-top { flex: none; width: 100%; margin-inline: 0; }
|
|
html[data-piik-native-window="integrated"] :is(.c3-site-bar, .lr-app > .lr-top, .c3-monitor.is-theater > .c3-monitor-heading)
|
|
:is(button, a, input, select, textarea, [role=button], [popover], .lr-comic-tip-wrap) { app-region: no-drag; }
|
|
html[data-piik-native-window] :is(.c3-site-identity, .c3-global-tools) { min-width: 0; }
|
|
html[data-piik-native-window] .c3-site-identity { flex: 1; }
|
|
html[data-piik-native-window="integrated"]:has(:fullscreen)
|
|
:is(.c3-site-bar, .lr-app > .lr-top, .c3-monitor.is-theater > .c3-monitor-heading) { padding-right: 16px; app-region: no-drag; }
|