2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
Copyright 2017 Vector Creations Ltd
|
2021-12-06 17:45:12 +08:00
|
|
|
Copyright 2017 - 2019 New Vector Ltd
|
2023-06-29 18:30:25 +08:00
|
|
|
Copyright 2019 - 2023 The Matrix.org Foundation C.I.C
|
2018-04-12 07:23:35 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2024-02-13 22:07:58 +08:00
|
|
|
@import url("@vector-im/compound-design-tokens/assets/web/css/compound-design-tokens.css") layer(compound);
|
2023-08-02 21:03:04 +08:00
|
|
|
@import url("@vector-im/compound-web/dist/style.css");
|
2022-07-15 21:53:23 +08:00
|
|
|
@import "./_font-sizes.pcss";
|
|
|
|
@import "./_animations.pcss";
|
|
|
|
@import "./_spacing.pcss";
|
2021-12-06 17:45:12 +08:00
|
|
|
@import url("maplibre-gl/dist/maplibre-gl.css");
|
2020-03-31 22:26:23 +08:00
|
|
|
|
2020-03-31 01:18:10 +08:00
|
|
|
:root {
|
2023-05-03 17:24:41 +08:00
|
|
|
--container-border-width: 8px;
|
|
|
|
--container-gap-width: 8px; /* only even numbers should be used because otherwise we get 0.5px margin values. */
|
2021-04-08 18:05:45 +08:00
|
|
|
--transition-short: 0.1s;
|
|
|
|
--transition-standard: 0.3s;
|
2023-03-30 17:11:16 +08:00
|
|
|
--buttons-dialog-gap-row: $spacing-8;
|
|
|
|
--buttons-dialog-gap-column: $spacing-8;
|
2023-05-10 05:06:19 +08:00
|
|
|
--MBody-border-radius: 8px;
|
2023-05-26 21:28:29 +08:00
|
|
|
|
|
|
|
/* Expected z-indexes for dialogs:
|
|
|
|
4000 - Default wrapper index
|
|
|
|
4009 - Static dialog background
|
|
|
|
4010 - Static dialog itself
|
|
|
|
4011 - Standard dialog background
|
|
|
|
4012 - Standard dialog itself
|
|
|
|
|
|
|
|
These are set up such that the static dialog always appears
|
|
|
|
underneath the standard dialogs.
|
|
|
|
*/
|
|
|
|
--dialog-zIndex-wrapper-default: 4000;
|
|
|
|
--dialog-zIndex-static-background: 4009;
|
|
|
|
--dialog-zIndex-static: calc(var(--dialog-zIndex-static-background) + 1); /* 4010 */
|
|
|
|
--dialog-zIndex-standard-background: calc(var(--dialog-zIndex-static) + 1); /* 4011 */
|
|
|
|
--dialog-zIndex-standard: calc(var(--dialog-zIndex-standard-background) + 1); /* 4012 */
|
2021-04-08 18:05:45 +08:00
|
|
|
}
|
|
|
|
|
2023-12-20 01:19:54 +08:00
|
|
|
#matrixchat {
|
|
|
|
/* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */
|
|
|
|
contain: strict;
|
|
|
|
}
|
2024-01-08 20:11:44 +08:00
|
|
|
#mx_ContextualMenu_Container,
|
|
|
|
#mx_PersistedElement_container,
|
|
|
|
#mx_Dialog_Container,
|
|
|
|
#mx_Dialog_StaticContainer {
|
2024-01-02 17:21:53 +08:00
|
|
|
/* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */
|
|
|
|
isolation: isolate;
|
|
|
|
}
|
2023-12-20 01:19:54 +08:00
|
|
|
|
2023-07-03 16:48:42 +08:00
|
|
|
/**
|
2023-07-03 23:07:30 +08:00
|
|
|
* We need to increase the specificity of the selector to override the
|
2023-07-03 16:48:42 +08:00
|
|
|
* custom property set by the design tokens package
|
|
|
|
*/
|
|
|
|
[class^="cpd-theme"][class^="cpd-theme"] {
|
|
|
|
/**
|
|
|
|
* The design tokens package currently does not expose the fallback fonts
|
|
|
|
* We want to keep on re-using `$font-family` to not break custom themes
|
|
|
|
* and because we can to use `Twemoji` to display emoji rather than using
|
|
|
|
* system ones
|
|
|
|
*/
|
|
|
|
--cpd-font-family-sans: $font-family;
|
|
|
|
}
|
|
|
|
|
2021-04-08 18:05:45 +08:00
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
:root {
|
|
|
|
--transition-short: 0;
|
|
|
|
--transition-standard: 0;
|
|
|
|
}
|
2020-03-31 01:18:10 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
html {
|
|
|
|
/* hack to stop overscroll bounce on OSX and iOS.
|
|
|
|
N.B. Breaks things when we have legitimate horizontal overscroll */
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Stop similar overscroll bounce in Firefox Nightly for macOS */
|
2021-05-25 18:29:54 +08:00
|
|
|
overscroll-behavior: none;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-body-md);
|
2023-07-13 22:17:55 +08:00
|
|
|
/**
|
|
|
|
* We want to apply Inter Dynamic metrics (https://rsms.me/inter/dynmetrics/)
|
|
|
|
* We need to tweak the `letter-spacing` property and doing so, disables by
|
|
|
|
* default the optional ligatures
|
|
|
|
* `font-feature-settings` allows us to override this behaviour and have the
|
|
|
|
* correct ligatures and the proper dynamic metric spacing.
|
|
|
|
*/
|
2024-01-03 02:56:39 +08:00
|
|
|
font-feature-settings:
|
|
|
|
"kern" 1,
|
|
|
|
"liga" 1,
|
|
|
|
"calt" 1;
|
2023-06-29 18:30:25 +08:00
|
|
|
|
2021-08-12 17:10:47 +08:00
|
|
|
background-color: $background;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2018-04-12 07:23:35 +08:00
|
|
|
border: 0px;
|
|
|
|
margin: 0px;
|
2019-11-27 08:45:46 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* needed to match the designs correctly on macOS */
|
|
|
|
/* see https://github.com/vector-im/element-web/issues/11425 */
|
2019-11-27 08:45:46 +08:00
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2019-05-20 17:09:19 +08:00
|
|
|
pre,
|
|
|
|
code {
|
2019-05-20 00:41:18 +08:00
|
|
|
font-family: $monospace-font-family;
|
2019-05-22 17:35:09 +08:00
|
|
|
font-size: 100% !important;
|
2019-05-20 00:41:18 +08:00
|
|
|
}
|
|
|
|
|
2020-03-07 08:43:10 +08:00
|
|
|
.error,
|
|
|
|
.warning,
|
|
|
|
.text-error,
|
|
|
|
.text-warning {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $alert;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-03-07 08:43:10 +08:00
|
|
|
.text-success {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $accent;
|
2020-03-07 08:43:10 +08:00
|
|
|
}
|
|
|
|
|
2020-11-20 03:06:24 +08:00
|
|
|
.text-muted {
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
|
|
|
|
2023-09-01 17:45:50 +08:00
|
|
|
.text-primary {
|
|
|
|
color: $primary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-secondary {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
2023-08-31 19:06:14 +08:00
|
|
|
.mx_Verified {
|
|
|
|
color: $e2e-verified-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Untrusted {
|
|
|
|
color: $e2e-warning-color;
|
|
|
|
}
|
|
|
|
|
2019-04-12 22:05:07 +08:00
|
|
|
b {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* On Firefox, the default weight for `<b>` is `bolder` which results in no bold */
|
|
|
|
/* effect since we only have specific weights of our fonts available. */
|
2019-04-12 22:05:07 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
h2 {
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-heading-lg-regular);
|
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-heading-lg);
|
2018-04-12 07:23:35 +08:00
|
|
|
margin-top: 16px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover,
|
|
|
|
a:link,
|
|
|
|
a:visited {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $accent-alt;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2024-07-08 17:57:41 +08:00
|
|
|
:not(.mx_no_textinput):not(.mx_textinput):not(.mx_Field) > input[type="text"],
|
|
|
|
:not(.mx_no_textinput):not(.mx_textinput):not(.mx_Field) > input[type="search"],
|
|
|
|
:not(.mx_no_textinput):not(.mx_textinput):not(.mx_Field) > input[type="password"] {
|
2019-02-13 18:39:10 +08:00
|
|
|
padding: 9px;
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-md-semibold);
|
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2019-02-13 18:39:10 +08:00
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
input[type="text"].mx_textinput_icon,
|
|
|
|
input[type="search"].mx_textinput_icon {
|
2019-02-13 18:39:10 +08:00
|
|
|
padding-left: 36px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 10px center;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* FIXME THEME - Tint by CSS rather than referencing a duplicate asset */
|
2022-07-15 21:53:23 +08:00
|
|
|
input[type="text"].mx_textinput_icon.mx_textinput_search,
|
|
|
|
input[type="search"].mx_textinput_icon.mx_textinput_search {
|
2019-02-27 18:42:05 +08:00
|
|
|
background-image: url("$(res)/img/feather-customised/search-input.svg");
|
2019-02-13 18:39:10 +08:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* dont search UI as not all browsers support it, */
|
|
|
|
/* we implement it ourselves where needed instead */
|
2022-07-15 21:53:23 +08:00
|
|
|
input[type="search"]::-webkit-search-decoration,
|
|
|
|
input[type="search"]::-webkit-search-cancel-button,
|
|
|
|
input[type="search"]::-webkit-search-results-button,
|
|
|
|
input[type="search"]::-webkit-search-results-decoration {
|
2019-02-13 18:39:10 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Override Firefox's UA style so we get a consistent look across browsers */
|
2019-02-13 18:39:10 +08:00
|
|
|
input::placeholder,
|
|
|
|
textarea::placeholder {
|
|
|
|
opacity: initial;
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
textarea {
|
2018-04-12 07:23:35 +08:00
|
|
|
background-color: transparent;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Required by Firefox */
|
|
|
|
textarea {
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
input[type="text"]:focus,
|
|
|
|
input[type="password"]:focus,
|
|
|
|
textarea:focus {
|
2019-07-10 23:55:03 +08:00
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* This is used to hide the standard outline added by browsers for */
|
|
|
|
/* accessible (focusable) components. Not intended for buttons, but */
|
|
|
|
/* should be used on things like focusable containers where the outline */
|
|
|
|
/* is usually not helping anyone. */
|
2023-09-28 19:52:26 +08:00
|
|
|
*:focus:not(:focus-visible) {
|
2019-05-18 05:25:17 +08:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* override defaults */
|
2021-12-10 01:44:22 +08:00
|
|
|
fieldset {
|
|
|
|
display: inline-block;
|
|
|
|
margin-inline: unset;
|
|
|
|
padding-block: unset;
|
|
|
|
padding-inline: unset;
|
|
|
|
min-inline-size: unset;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2022-11-29 01:09:21 +08:00
|
|
|
summary {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-12-10 01:44:22 +08:00
|
|
|
legend {
|
|
|
|
padding-inline: unset;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* .mx_textinput is a container for a text input */
|
|
|
|
/* + some other controls like buttons, ... */
|
|
|
|
/* it has the appearance of a text box so the controls */
|
|
|
|
/* appear to be part of the input */
|
2019-02-18 21:43:18 +08:00
|
|
|
|
2021-08-18 01:56:10 +08:00
|
|
|
.mx_Dialog,
|
|
|
|
.mx_MatrixChat_wrapper {
|
2022-07-15 21:53:23 +08:00
|
|
|
.mx_textinput > input[type="text"],
|
|
|
|
.mx_textinput > input[type="search"] {
|
2019-07-10 23:55:03 +08:00
|
|
|
border: none;
|
|
|
|
flex: 1;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2019-07-10 23:55:03 +08:00
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type="text"],
|
|
|
|
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type="search"],
|
2019-02-18 21:43:18 +08:00
|
|
|
.mx_textinput {
|
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: transparent;
|
|
|
|
color: $input-darker-fg-color;
|
|
|
|
border-radius: 4px;
|
2023-07-13 01:46:49 +08:00
|
|
|
border: 1px solid $secondary-hairline-color;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* these things should probably not be defined globally */
|
2019-02-18 21:43:18 +08:00
|
|
|
margin: 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_textinput {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type="text"]::placeholder,
|
|
|
|
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type="search"]::placeholder,
|
2019-02-18 21:43:18 +08:00
|
|
|
.mx_textinput input::placeholder {
|
2023-07-13 01:46:49 +08:00
|
|
|
color: $input-placeholder;
|
2019-02-18 21:43:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
/* Prevent ugly dotted highlight around selected elements in Firefox */
|
|
|
|
::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* These are magic constants which are excluded from tinting, to let themes */
|
|
|
|
/* (which only have CSS) tell the app what their non-tinted */
|
|
|
|
/* colourscheme is by inspecting the stylesheet DOM. */
|
|
|
|
/* They are not used for layout!! */
|
2018-04-12 07:23:35 +08:00
|
|
|
#mx_theme_accentColor {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $accent;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#mx_theme_secondaryAccentColor {
|
|
|
|
color: $secondary-accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_wrapper {
|
|
|
|
position: fixed;
|
2023-05-26 21:28:29 +08:00
|
|
|
z-index: var(--dialog-zIndex-wrapper-default);
|
2018-04-12 07:23:35 +08:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2024-03-13 21:38:32 +08:00
|
|
|
.mx_Dialog_border {
|
|
|
|
z-index: var(--dialog-zIndex-standard);
|
|
|
|
position: relative;
|
2024-06-11 16:31:17 +08:00
|
|
|
width: 100%;
|
2024-06-13 06:35:02 +08:00
|
|
|
max-width: fit-content;
|
2024-06-11 16:31:17 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
max-height: calc(100% - var(--cpd-space-6x));
|
2024-03-13 21:38:32 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-03-14 23:33:43 +08:00
|
|
|
|
|
|
|
.mx_Dialog_lightbox & {
|
|
|
|
/* The lightbox isn't so much of a dialog as a fullscreen overlay. We
|
|
|
|
don't want the glass border. */
|
|
|
|
display: contents;
|
|
|
|
}
|
2024-03-13 21:38:32 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_Dialog {
|
2021-08-12 17:10:47 +08:00
|
|
|
background-color: $background;
|
2018-04-12 07:23:35 +08:00
|
|
|
color: $light-fg-color;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-15px;
|
2018-04-12 07:23:35 +08:00
|
|
|
position: relative;
|
2024-03-13 21:38:32 +08:00
|
|
|
padding: var(--cpd-space-8x) var(--cpd-space-10x);
|
|
|
|
box-sizing: border-box;
|
2018-04-12 07:23:35 +08:00
|
|
|
overflow-y: auto;
|
2022-06-08 04:20:32 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
.mx_Dialog_staticWrapper & {
|
|
|
|
z-index: var(--dialog-zIndex-static);
|
|
|
|
contain: content;
|
2022-06-08 04:20:32 +08:00
|
|
|
}
|
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
.mx_Dialog_lightbox & {
|
|
|
|
border-radius: 0px;
|
|
|
|
background-color: transparent;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
pointer-events: none;
|
|
|
|
padding: 0;
|
2022-06-08 04:20:32 +08:00
|
|
|
}
|
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
/* Styles copied/inspired by GroupLayout, ReplyTile, and EventTile variants. */
|
|
|
|
.markdown-body {
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-md-regular) !important;
|
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-body-md);
|
2023-07-03 23:07:30 +08:00
|
|
|
font-family: inherit !important;
|
|
|
|
white-space: normal !important;
|
|
|
|
line-height: inherit !important;
|
2024-06-18 00:20:18 +08:00
|
|
|
background-color: inherit;
|
2023-05-26 21:28:29 +08:00
|
|
|
color: inherit; /* inherit the colour from the dark or light theme by default (but not for code blocks) */
|
|
|
|
|
|
|
|
pre,
|
|
|
|
code {
|
|
|
|
font-family: $monospace-font-family !important;
|
|
|
|
background-color: $codeblock-background-color;
|
|
|
|
}
|
2022-06-08 04:20:32 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
/* this selector wrongly applies to code blocks too but we will unset it in the next one */
|
|
|
|
code {
|
|
|
|
white-space: pre-wrap; /* don't collapse spaces in inline code blocks */
|
2022-06-08 04:20:32 +08:00
|
|
|
}
|
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
pre {
|
|
|
|
/* have to use overlay rather than auto otherwise Linux and Windows */
|
|
|
|
/* Chrome gets very confused about vertical spacing: */
|
|
|
|
/* https://github.com/vector-im/vector-web/issues/754 */
|
|
|
|
overflow-x: overlay;
|
|
|
|
overflow-y: visible;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
white-space: pre; /* we want code blocks to be scrollable and not wrap */
|
2022-06-08 04:20:32 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
> * {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
2022-06-08 04:20:32 +08:00
|
|
|
}
|
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-family: inherit !important;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2022-06-08 04:20:32 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
/* Make h1 and h2 the same size as h3. */
|
|
|
|
h1,
|
|
|
|
h2 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
border-bottom: none !important; /* override GFM */
|
|
|
|
}
|
2022-06-08 04:20:32 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
a {
|
|
|
|
color: $accent-alt;
|
|
|
|
}
|
2022-06-08 04:20:32 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
blockquote {
|
|
|
|
border-left: 2px solid $blockquote-bar-color;
|
2023-07-21 20:16:33 +08:00
|
|
|
color: $secondary-content;
|
2023-05-26 21:28:29 +08:00
|
|
|
border-radius: 2px;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
}
|
2022-06-08 04:20:32 +08:00
|
|
|
}
|
|
|
|
|
2019-04-03 23:27:45 +08:00
|
|
|
.mx_Dialog_fixedWidth {
|
2019-04-04 00:53:38 +08:00
|
|
|
width: 60vw;
|
2019-04-08 20:37:29 +08:00
|
|
|
max-width: 704px;
|
2019-04-03 23:27:45 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_Dialog_background {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-01-19 11:09:23 +08:00
|
|
|
background-color: $dialog-backdrop-color;
|
2023-05-26 21:28:29 +08:00
|
|
|
z-index: var(--dialog-zIndex-standard-background);
|
2019-03-01 06:55:58 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
&.mx_Dialog_staticBackground {
|
|
|
|
z-index: var(--dialog-zIndex-static-background);
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
.mx_Dialog_wrapperWithStaticUnder & {
|
|
|
|
/* Roughly half of what it would normally be - we don't want to black out */
|
|
|
|
/* the app, just make it clear that the dialogs are stacked. */
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
.mx_Dialog_lightbox & {
|
|
|
|
opacity: $lightbox-background-bg-opacity;
|
|
|
|
background-color: $lightbox-background-bg-color;
|
|
|
|
animation-name: mx_Dialog_lightbox_background_keyframes;
|
|
|
|
animation-duration: 300ms;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-01-22 19:44:47 +08:00
|
|
|
.mx_Dialog_titleImage {
|
2020-06-24 23:12:46 +08:00
|
|
|
vertical-align: sub;
|
2020-01-22 19:44:47 +08:00
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
margin-left: -2px;
|
|
|
|
margin-right: 4px;
|
2021-12-16 00:05:58 +08:00
|
|
|
margin-bottom: 2px;
|
2020-01-22 19:44:47 +08:00
|
|
|
}
|
|
|
|
|
2019-01-29 22:34:58 +08:00
|
|
|
.mx_Dialog_title {
|
2019-04-03 23:27:45 +08:00
|
|
|
color: $dialog-title-fg-color;
|
2021-12-16 00:05:58 +08:00
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2024-02-16 22:23:33 +08:00
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-heading-lg);
|
2019-01-29 22:34:58 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
&.danger {
|
|
|
|
color: $alert;
|
|
|
|
}
|
2020-05-28 23:48:50 +08:00
|
|
|
}
|
2019-01-29 22:34:58 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
.mx_Dialog_header {
|
|
|
|
position: relative;
|
2024-03-13 21:38:32 +08:00
|
|
|
padding: 0;
|
|
|
|
padding-inline-end: 20px; /* Reserve room for the close button */
|
|
|
|
margin-bottom: var(--cpd-space-2x);
|
2023-03-13 04:22:30 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
&.mx_Dialog_headerWithButton > .mx_Dialog_title {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-01-29 22:34:58 +08:00
|
|
|
}
|
|
|
|
|
2022-05-08 03:08:00 +08:00
|
|
|
@define-mixin customisedCancelButton {
|
2019-01-29 22:34:58 +08:00
|
|
|
cursor: pointer;
|
2024-03-05 12:25:47 +08:00
|
|
|
position: relative;
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
border-radius: 14px;
|
|
|
|
background-color: var(--cpd-color-bg-subtle-secondary);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--cpd-color-bg-subtle-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
2024-07-05 17:51:21 +08:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2024-03-05 12:25:47 +08:00
|
|
|
position: absolute;
|
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 20px;
|
|
|
|
background-color: var(--cpd-color-icon-secondary);
|
|
|
|
}
|
2022-05-08 03:08:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_cancelButton {
|
|
|
|
@mixin customisedCancelButton;
|
2019-01-29 22:34:58 +08:00
|
|
|
position: absolute;
|
2024-03-13 21:38:32 +08:00
|
|
|
top: var(--cpd-space-4x);
|
|
|
|
right: var(--cpd-space-4x);
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_content {
|
2018-10-26 20:15:16 +08:00
|
|
|
margin: 24px 0 68px;
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2018-04-12 07:23:35 +08:00
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2018-10-20 05:33:23 +08:00
|
|
|
.mx_Dialog_buttons {
|
2022-05-11 20:33:21 +08:00
|
|
|
margin-top: $spacing-20;
|
|
|
|
margin-inline-start: auto;
|
2018-10-20 05:33:23 +08:00
|
|
|
text-align: right;
|
2020-11-20 03:06:24 +08:00
|
|
|
|
|
|
|
.mx_Dialog_buttons_additive {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* The consumer is responsible for positioning their elements. */
|
2020-11-20 03:06:24 +08:00
|
|
|
float: left;
|
|
|
|
}
|
2018-10-20 05:33:23 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
.mx_Dialog_buttons_row {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-end;
|
|
|
|
text-align: initial;
|
|
|
|
margin-inline-start: auto;
|
2022-05-11 20:33:21 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
/* default gap among elements */
|
|
|
|
column-gap: var(--buttons-dialog-gap-column);
|
|
|
|
row-gap: var(--buttons-dialog-gap-row);
|
2022-05-11 20:33:21 +08:00
|
|
|
|
2023-05-26 21:28:29 +08:00
|
|
|
button {
|
|
|
|
margin: 0 !important; /* override the margin settings */
|
|
|
|
}
|
2022-05-11 20:33:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-12 20:49:12 +08:00
|
|
|
@define-mixin mx_DialogButton {
|
|
|
|
/* align images in buttons (eg spinners) */
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0px;
|
2024-03-05 12:25:47 +08:00
|
|
|
border-radius: 24px;
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2023-04-12 20:49:12 +08:00
|
|
|
color: $button-fg-color;
|
2024-03-05 12:25:47 +08:00
|
|
|
background-color: var(--cpd-color-bg-action-primary-rest);
|
2023-04-12 20:49:12 +08:00
|
|
|
width: auto;
|
|
|
|
padding: 7px;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
|
2023-09-28 19:52:26 +08:00
|
|
|
&:not(:focus-visible) {
|
2023-04-12 20:49:12 +08:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-25 03:11:57 +08:00
|
|
|
/* XXX: Our button style are a mess: buttons that happen to appear in dialogs get special styles applied
|
|
|
|
* to them that no button anywhere else in the app gets by default. In practice, buttons in other places
|
|
|
|
* in the app look the same by being AccessibleButtons, or possibly by having explict button classes.
|
|
|
|
* We should go through and have one consistent set of styles for buttons throughout the app.
|
|
|
|
* For now, I am duplicating the selectors here for mx_Dialog and mx_DialogButtons.
|
2022-01-07 22:54:45 +08:00
|
|
|
*
|
|
|
|
* Elements that should not be styled like a dialog button are mentioned in a :not() pseudo-class.
|
|
|
|
* For the widest browser support, we use multiple :not pseudo-classes instead of :not(.a, .b).
|
2020-01-25 03:11:57 +08:00
|
|
|
*/
|
2024-06-06 21:56:38 +08:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 22:58:20 +08:00
|
|
|
.mx_UserProfileSettings button
|
2024-06-26 23:47:01 +08:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button),
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog input[type="submit"],
|
2022-01-07 17:40:53 +08:00
|
|
|
.mx_Dialog_buttons button:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton),
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog_buttons input[type="submit"] {
|
2018-04-12 07:23:35 +08:00
|
|
|
@mixin mx_DialogButton;
|
|
|
|
margin-left: 0px;
|
2023-03-30 17:11:16 +08:00
|
|
|
margin-right: var(--buttons-dialog-gap-column);
|
2021-12-09 17:41:33 +08:00
|
|
|
margin-bottom: 5px;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* flip colours for the secondary ones */
|
2023-06-29 18:30:25 +08:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2024-03-05 12:25:47 +08:00
|
|
|
border: 1px solid var(--cpd-color-border-interactive-secondary);
|
|
|
|
color: var(--cpd-color-text-primary);
|
2023-07-13 01:46:49 +08:00
|
|
|
background-color: transparent;
|
2021-03-21 20:11:45 +08:00
|
|
|
font-family: inherit;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2024-06-06 21:56:38 +08:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 22:58:20 +08:00
|
|
|
.mx_UserProfileSettings button
|
2024-06-26 23:47:01 +08:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):last-child {
|
2019-04-03 23:27:45 +08:00
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
|
2024-06-06 21:56:38 +08:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 22:58:20 +08:00
|
|
|
.mx_UserProfileSettings button
|
2024-06-26 23:47:01 +08:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):focus,
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog input[type="submit"]:focus,
|
2022-01-07 17:40:53 +08:00
|
|
|
.mx_Dialog_buttons button:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):focus,
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog_buttons input[type="submit"]:focus {
|
2018-04-12 07:23:35 +08:00
|
|
|
filter: brightness($focus-brightness);
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
.mx_Dialog button.mx_Dialog_primary:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]),
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog input[type="submit"].mx_Dialog_primary,
|
2024-06-06 21:56:38 +08:00
|
|
|
.mx_Dialog_buttons
|
2024-06-07 22:58:20 +08:00
|
|
|
button.mx_Dialog_primary:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):not(
|
|
|
|
.mx_UserProfileSettings button
|
2024-06-26 23:47:01 +08:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button),
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog_buttons input[type="submit"].mx_Dialog_primary {
|
2024-03-05 12:25:47 +08:00
|
|
|
color: var(--cpd-color-text-on-solid-primary);
|
|
|
|
background-color: var(--cpd-color-bg-action-primary-rest);
|
|
|
|
border-color: var(--cpd-color-bg-action-primary-rest);
|
2019-04-03 23:27:45 +08:00
|
|
|
min-width: 156px;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
.mx_Dialog button.danger:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]),
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog input[type="submit"].danger,
|
2024-06-06 21:56:38 +08:00
|
|
|
.mx_Dialog_buttons
|
2024-06-26 23:47:01 +08:00
|
|
|
button.danger:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):not(.mx_UserProfileSettings button):not(
|
|
|
|
.mx_ThemeChoicePanel_CustomTheme button
|
|
|
|
),
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog_buttons input[type="submit"].danger {
|
2024-03-05 12:25:47 +08:00
|
|
|
background-color: var(--cpd-color-bg-critical-primary);
|
|
|
|
border: solid 1px var(--cpd-color-bg-critical-primary);
|
|
|
|
color: var(--cpd-color-text-on-solid-primary);
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
.mx_Dialog button.warning:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]),
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog input[type="submit"].warning {
|
2024-03-18 23:47:55 +08:00
|
|
|
border: solid 1px var(--cpd-color-border-critical-subtle);
|
2024-03-05 12:25:47 +08:00
|
|
|
color: var(--cpd-color-text-critical-primary);
|
2020-01-27 22:28:43 +08:00
|
|
|
}
|
|
|
|
|
2024-06-06 21:56:38 +08:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 22:58:20 +08:00
|
|
|
.mx_UserProfileSettings button
|
2024-06-26 23:47:01 +08:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):disabled,
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog input[type="submit"]:disabled,
|
2022-01-07 17:40:53 +08:00
|
|
|
.mx_Dialog_buttons button:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):disabled,
|
2021-11-02 13:44:42 +08:00
|
|
|
.mx_Dialog_buttons input[type="submit"]:disabled {
|
2018-04-12 07:23:35 +08:00
|
|
|
background-color: $light-fg-color;
|
|
|
|
border: solid 1px $light-fg-color;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
2019-07-10 23:55:03 +08:00
|
|
|
/* Spinner Dialog overide */
|
2024-03-26 01:36:00 +08:00
|
|
|
.mx_Dialog_wrapper.mx_Dialog_spinner {
|
|
|
|
/* This is not a real dialog, so we shouldn't show a glass border */
|
|
|
|
.mx_Dialog_border {
|
|
|
|
display: contents;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog {
|
|
|
|
inline-size: auto;
|
|
|
|
block-size: auto;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 8px;
|
|
|
|
box-shadow: none;
|
2020-04-25 05:14:41 +08:00
|
|
|
|
2024-03-26 01:36:00 +08:00
|
|
|
/* Don't show scroll-bars on spinner dialogs */
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2019-07-10 23:55:03 +08:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* TODO: Review mx_GeneralButton usage to see if it can use a different class */
|
|
|
|
/* These classes were brought in from the old UserSettings and are included here to avoid */
|
|
|
|
/* breaking the app. */
|
|
|
|
/* Ref: https://github.com/vector-im/element-web/issues/8420 */
|
2019-02-05 04:25:26 +08:00
|
|
|
.mx_GeneralButton {
|
|
|
|
@mixin mx_DialogButton;
|
|
|
|
display: inline;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_TextInputDialog_label {
|
|
|
|
text-align: left;
|
|
|
|
padding-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TextInputDialog_input {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-15px;
|
2018-04-12 07:23:35 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid $input-border-color;
|
|
|
|
padding: 9px;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2021-08-12 17:10:47 +08:00
|
|
|
background-color: $background;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_button_row {
|
|
|
|
margin-top: 69px;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* username colors */
|
|
|
|
/* used by SenderProfile & RoomPreviewBar */
|
2019-04-17 16:21:30 +08:00
|
|
|
.mx_Username_color1 {
|
|
|
|
color: $username-variant1-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Username_color2 {
|
|
|
|
color: $username-variant2-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Username_color3 {
|
|
|
|
color: $username-variant3-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Username_color4 {
|
|
|
|
color: $username-variant4-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Username_color5 {
|
|
|
|
color: $username-variant5-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Username_color6 {
|
|
|
|
color: $username-variant6-color;
|
|
|
|
}
|
|
|
|
|
2023-06-15 20:22:15 +08:00
|
|
|
.mx_AppWarning,
|
|
|
|
.mx_AppPermission {
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-06-26 21:02:36 +08:00
|
|
|
@define-mixin ProgressBarColour $colour {
|
|
|
|
color: $colour;
|
|
|
|
&::-moz-progress-bar {
|
|
|
|
background-color: $colour;
|
|
|
|
}
|
|
|
|
&::-webkit-progress-value {
|
|
|
|
background-color: $colour;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-06 05:14:43 +08:00
|
|
|
@define-mixin ProgressBarBgColour $colour {
|
|
|
|
background-color: $colour;
|
|
|
|
&::-webkit-progress-bar {
|
|
|
|
background-color: $colour;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-26 21:02:36 +08:00
|
|
|
@define-mixin ProgressBarBorderRadius $radius {
|
|
|
|
border-radius: $radius;
|
|
|
|
&::-moz-progress-bar {
|
|
|
|
border-radius: $radius;
|
|
|
|
}
|
|
|
|
&::-webkit-progress-bar,
|
|
|
|
&::-webkit-progress-value {
|
|
|
|
border-radius: $radius;
|
|
|
|
}
|
|
|
|
}
|
2020-07-28 23:08:25 +08:00
|
|
|
|
|
|
|
@define-mixin unreal-focus {
|
|
|
|
outline-width: 2px;
|
|
|
|
outline-style: solid;
|
|
|
|
outline-color: Highlight;
|
|
|
|
|
|
|
|
/* WebKit gets its native focus styles. */
|
|
|
|
@media (-webkit-min-device-pixel-ratio: 0) {
|
|
|
|
outline-color: -webkit-focus-ring-color;
|
|
|
|
outline-style: auto;
|
|
|
|
}
|
|
|
|
}
|
2022-01-07 17:40:53 +08:00
|
|
|
|
|
|
|
@define-mixin ButtonResetDefault {
|
|
|
|
appearance: none;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
font-size: inherit;
|
|
|
|
font-family: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2022-04-04 14:34:39 +08:00
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
@define-mixin LegacyCallButton {
|
2022-04-04 14:34:39 +08:00
|
|
|
box-sizing: border-box;
|
2023-06-29 18:30:25 +08:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-04-04 14:34:39 +08:00
|
|
|
height: $font-24px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
background-color: $button-fg-color;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-20 16:14:24 +08:00
|
|
|
|
2022-07-05 03:07:50 +08:00
|
|
|
@define-mixin ThreadRepliesAmount {
|
2022-04-29 19:03:39 +08:00
|
|
|
color: $secondary-content;
|
2023-06-29 18:30:25 +08:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-04-29 19:03:39 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
position: relative;
|
|
|
|
padding: 0 $spacing-12 0 $spacing-8;
|
|
|
|
}
|
|
|
|
|
2022-07-05 03:07:50 +08:00
|
|
|
@define-mixin ThreadSummaryIcon {
|
2022-04-29 19:03:39 +08:00
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
2024-07-23 17:12:07 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/threads.svg");
|
2022-04-29 19:03:39 +08:00
|
|
|
mask-position: center;
|
2022-07-05 03:07:50 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
2022-04-29 19:03:39 +08:00
|
|
|
height: 18px;
|
|
|
|
min-width: 18px;
|
2023-07-13 01:46:49 +08:00
|
|
|
background-color: $icon-button-color !important;
|
2022-04-29 19:03:39 +08:00
|
|
|
}
|
2022-11-15 02:31:20 +08:00
|
|
|
|
|
|
|
@define-mixin composerButtonHighLight {
|
2024-03-05 12:25:47 +08:00
|
|
|
background: var(--cpd-color-bg-subtle-primary);
|
2022-11-15 02:31:20 +08:00
|
|
|
&::before {
|
2024-03-05 12:25:47 +08:00
|
|
|
background-color: var(--cpd-color-icon-primary) !important;
|
2022-11-15 02:31:20 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-13 01:46:49 +08:00
|
|
|
@define-mixin composerButton $border-radius, $hover-color, $hover-bg {
|
2022-11-15 02:31:20 +08:00
|
|
|
--size: 26px;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
height: var(--size);
|
|
|
|
line-height: var(--size);
|
|
|
|
width: auto;
|
|
|
|
padding-left: var(--size);
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 3px;
|
|
|
|
left: 3px;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
background-color: $icon-button-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
2023-07-13 01:46:49 +08:00
|
|
|
z-index: 2;
|
2022-11-15 02:31:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: 0;
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::after {
|
2023-07-13 01:46:49 +08:00
|
|
|
background: $hover-bg;
|
2022-11-15 02:31:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-20 21:30:37 +08:00
|
|
|
|
|
|
|
.mx_lineClamp {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: var(--mx-line-clamp, 1);
|
|
|
|
overflow: hidden;
|
|
|
|
}
|