Files
element-call/src/index.css
T

54 lines
1.6 KiB
CSS
Raw Normal View History

2021-07-27 12:27:59 -07:00
/*
Copyright 2021-2024 New Vector Ltd.
2021-07-27 12:27:59 -07:00
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
2021-07-27 12:27:59 -07:00
*/
/* Styles for Element Call as a page of its own. The parts that apply wherever
Element Call is shown live in base.css; these are about owning the document,
and are not loaded when a host embeds Element Call as a component. */
@import url("./base.css");
2021-08-19 12:11:12 -07:00
2021-07-16 14:22:03 -07:00
body {
2023-08-28 16:45:17 -04:00
background-color: var(--cpd-color-bg-canvas-default);
color: var(--cpd-color-text-primary);
color-scheme: dark;
2021-07-16 14:22:03 -07:00
margin: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2024-03-25 16:02:40 +01:00
-webkit-tap-highlight-color: transparent;
2021-07-16 14:22:03 -07:00
}
2024-03-25 16:02:40 +01:00
/* This prohibits the view to scroll for pages smaller than 122px in width
we use this for mobile pip webviews. Element Call adds this class to whatever
it treats as its root, but it is only ever the page that should be pinned like
this — done to a container inside a host application it would take that
container out of the host's layout — so the selector says so. */
body.no-scroll-body {
position: fixed;
width: 100%;
}
2021-11-17 14:24:52 -08:00
html,
body,
#root {
2023-09-17 14:25:32 -04:00
/* We use !important here to override vaul drawers, which have a side effect
of setting height: auto; on the body element and messing up our layouts */
height: 100% !important;
2021-07-26 16:58:31 -07:00
}
2021-08-19 17:49:45 -07:00
#root {
display: flex;
flex-direction: column;
2023-12-01 17:43:09 -05:00
/* The root should be a separate stacking context so that portalled elements
like modals and menus always appear over top of it */
isolation: isolate;
2021-07-26 16:58:31 -07:00
}
2021-12-10 10:54:18 -08:00
#root > [data-overlay-container] {
position: relative;
height: 100%;
2021-12-03 16:42:29 -08:00
}