mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-27 00:48:06 +08:00
a63dc637ab
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
246 lines
5.7 KiB
CSS
246 lines
5.7 KiB
CSS
/*
|
|
Copyright 2021-2022 New Vector Ltd
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
/* Inter unexpectedly contains various codepoints which collide with emoji, even
|
|
when variation-16 is applied to request the emoji variant. From eyeballing
|
|
the emoji picker, these are: 20e3, 23cf, 24c2, 25a0-25c1, 2665, 2764, 2b06, 2b1c.
|
|
Therefore we define a unicode-range to load which excludes the glyphs
|
|
(to avoid having to maintain a fork of Inter). */
|
|
|
|
@import "normalize.css/normalize.css";
|
|
|
|
:root {
|
|
--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
|
|
"Helvetica Neue", sans-serif;
|
|
--inter-unicode-range: U+0000-20e2, U+20e4-23ce, U+23d0-24c1, U+24c3-259f,
|
|
U+25c2-2664, U+2666-2763, U+2765-2b05, U+2b07-2b1b, U+2b1d-10FFFF;
|
|
|
|
--font-scale: 1;
|
|
--font-size-micro: calc(10px * var(--font-scale));
|
|
--font-size-caption: calc(12px * var(--font-scale));
|
|
--font-size-body: calc(15px * var(--font-scale));
|
|
--font-size-subtitle: calc(18px * var(--font-scale));
|
|
--font-size-title: calc(24px * var(--font-scale));
|
|
--font-size-headline: calc(32px * var(--font-scale));
|
|
|
|
--accent: #0dbd8b;
|
|
--accent-20: #0dbd8b33;
|
|
--alert: #ff5b55;
|
|
--alert-20: #ff5b5533;
|
|
--links: #0086e6;
|
|
--primary-content: #ffffff;
|
|
--secondary-content: #a9b2bc;
|
|
--tertiary-content: #8e99a4;
|
|
--tertiary-content-20: #8e99a433;
|
|
--quaternary-content: #6f7882;
|
|
--quinary-content: #394049;
|
|
--system: #21262c;
|
|
--background: #15191e;
|
|
--background-85: rgba(23, 25, 28, 0.85);
|
|
--bgColor3: #444; /* This isn't found anywhere in the designs or Compound */
|
|
--subtle-primary: #26282d;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-Regular.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-Regular.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-Italic.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-Italic.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-Medium.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-Medium.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: italic;
|
|
font-weight: 500;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-MediumItalic.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-MediumItalic.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-SemiBold.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-SemiBold.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: italic;
|
|
font-weight: 600;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-SemiBoldItalic.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-Bold.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-Bold.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: italic;
|
|
font-weight: 700;
|
|
font-display: swap;
|
|
unicode-range: var(--inter-unicode-range);
|
|
src: url("/fonts/Inter/Inter-BoldItalic.woff2") format("woff2"),
|
|
url("/fonts/Inter/Inter-BoldItalic.woff") format("woff");
|
|
}
|
|
|
|
body {
|
|
background-color: var(--background);
|
|
color: var(--primary-content);
|
|
color-scheme: dark;
|
|
margin: 0;
|
|
font-family: var(--font-family);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
}
|
|
|
|
#root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p,
|
|
a {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Headline Semi Bold */
|
|
h1 {
|
|
font-weight: 600;
|
|
font-size: var(--font-size-headline);
|
|
}
|
|
|
|
/* Title */
|
|
h2 {
|
|
font-weight: 600;
|
|
font-size: var(--font-size-title);
|
|
}
|
|
|
|
/* Subtitle */
|
|
h3 {
|
|
font-weight: 600;
|
|
font-size: var(--font-size-subtitle);
|
|
}
|
|
|
|
/* Body Semi Bold */
|
|
h4 {
|
|
font-weight: 600;
|
|
font-size: var(--font-size-body);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* Body */
|
|
p {
|
|
font-size: var(--font-size-body);
|
|
line-height: var(--font-size-title);
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover,
|
|
a:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
hr {
|
|
width: calc(100% - 24px);
|
|
border: none;
|
|
border-top: 1px solid var(--quinary-content);
|
|
color: var(--quaternary-content);
|
|
overflow: visible;
|
|
text-align: center;
|
|
height: 5px;
|
|
font-weight: 600;
|
|
font-size: var(--font-size-body);
|
|
line-height: 24px;
|
|
margin: 0 12px;
|
|
}
|
|
|
|
summary {
|
|
font-size: var(--font-size-body);
|
|
}
|
|
|
|
details > :not(summary) {
|
|
margin-left: var(--font-size-body);
|
|
}
|
|
|
|
details[open] > summary {
|
|
margin-bottom: var(--font-size-body);
|
|
}
|
|
|
|
#root > [data-overlay-container] {
|
|
position: relative;
|
|
height: 100%;
|
|
}
|