2018-04-12 01:23:35 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
|
|
|
Copyright 2019-2023 The Matrix.org Foundation C.I.C
|
|
|
|
Copyright 2017-2019 New Vector Ltd
|
2018-04-12 01:23:35 +02:00
|
|
|
Copyright 2017 Vector Creations Ltd
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2018-04-12 01:23:35 +02:00
|
|
|
|
2024-09-09 15:57:16 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2018-04-12 01:23:35 +02:00
|
|
|
*/
|
|
|
|
|
2024-02-13 15:07:58 +01:00
|
|
|
@import url("@vector-im/compound-design-tokens/assets/web/css/compound-design-tokens.css") layer(compound);
|
2023-08-02 15:03:04 +02:00
|
|
|
@import url("@vector-im/compound-web/dist/style.css");
|
2022-07-15 15:53:23 +02:00
|
|
|
@import "./_font-sizes.pcss";
|
|
|
|
@import "./_animations.pcss";
|
|
|
|
@import "./_spacing.pcss";
|
2021-12-06 10:45:12 +01:00
|
|
|
@import url("maplibre-gl/dist/maplibre-gl.css");
|
2020-03-31 16:26:23 +02:00
|
|
|
|
2020-03-30 19:18:10 +02:00
|
|
|
:root {
|
2023-05-03 11:24:41 +02:00
|
|
|
--container-border-width: 8px;
|
|
|
|
--container-gap-width: 8px; /* only even numbers should be used because otherwise we get 0.5px margin values. */
|
2022-12-12 12:24:14 +01:00
|
|
|
--transition-short: 0.1s;
|
|
|
|
--transition-standard: 0.3s;
|
2023-03-30 11:11:16 +02:00
|
|
|
--buttons-dialog-gap-row: $spacing-8;
|
|
|
|
--buttons-dialog-gap-column: $spacing-8;
|
2023-05-09 23:06:19 +02:00
|
|
|
--MBody-border-radius: 8px;
|
2023-05-26 15:28:29 +02: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 12:05:45 +02:00
|
|
|
}
|
|
|
|
|
2023-12-19 18:19:54 +01:00
|
|
|
#matrixchat {
|
|
|
|
/* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */
|
|
|
|
contain: strict;
|
|
|
|
}
|
2024-01-08 13:11:44 +01:00
|
|
|
#mx_ContextualMenu_Container,
|
|
|
|
#mx_PersistedElement_container,
|
|
|
|
#mx_Dialog_Container,
|
|
|
|
#mx_Dialog_StaticContainer {
|
2024-01-02 10:21:53 +01:00
|
|
|
/* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */
|
|
|
|
isolation: isolate;
|
|
|
|
}
|
2023-12-19 18:19:54 +01:00
|
|
|
|
2023-07-03 10:48:42 +02:00
|
|
|
/**
|
2023-07-03 17:07:30 +02:00
|
|
|
* We need to increase the specificity of the selector to override the
|
2023-07-03 10:48:42 +02: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 12:05:45 +02:00
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
:root {
|
|
|
|
--transition-short: 0;
|
|
|
|
--transition-standard: 0;
|
|
|
|
}
|
2020-03-30 19:18:10 +02:00
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02: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 15:39:29 +02:00
|
|
|
/* Stop similar overscroll bounce in Firefox Nightly for macOS */
|
2021-05-25 12:29:54 +02:00
|
|
|
overscroll-behavior: none;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-body-md);
|
2023-07-13 16:17:55 +02: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-02 19:56:39 +01:00
|
|
|
font-feature-settings:
|
|
|
|
"kern" 1,
|
|
|
|
"liga" 1,
|
|
|
|
"calt" 1;
|
2023-06-29 12:30:25 +02:00
|
|
|
|
2021-08-12 11:10:47 +02:00
|
|
|
background-color: $background;
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2018-04-12 01:23:35 +02:00
|
|
|
border: 0px;
|
|
|
|
margin: 0px;
|
2019-11-27 01:45:46 +01:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* needed to match the designs correctly on macOS */
|
|
|
|
/* see https://github.com/vector-im/element-web/issues/11425 */
|
2019-11-27 01:45:46 +01:00
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
pre,
|
|
|
|
code {
|
2019-05-19 18:41:18 +02:00
|
|
|
font-family: $monospace-font-family;
|
2019-05-22 11:35:09 +02:00
|
|
|
font-size: 100% !important;
|
2019-05-19 18:41:18 +02:00
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
.error,
|
|
|
|
.warning,
|
|
|
|
.text-error,
|
|
|
|
.text-warning {
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $alert;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2020-03-07 01:43:10 +01:00
|
|
|
.text-success {
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $accent;
|
2020-03-07 01:43:10 +01:00
|
|
|
}
|
|
|
|
|
2020-11-19 20:06:24 +01:00
|
|
|
.text-muted {
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
|
|
|
|
2023-09-01 11:45:50 +02:00
|
|
|
.text-primary {
|
|
|
|
color: $primary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-secondary {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
2023-08-31 13:06:14 +02:00
|
|
|
.mx_Verified {
|
|
|
|
color: $e2e-verified-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Untrusted {
|
|
|
|
color: $e2e-warning-color;
|
|
|
|
}
|
|
|
|
|
2019-04-12 16:05:07 +02:00
|
|
|
b {
|
2022-07-27 15:39:29 +02: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 16:05:07 +02:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
h2 {
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-heading-lg-regular);
|
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-heading-lg);
|
2018-04-12 01:23:35 +02:00
|
|
|
margin-top: 16px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover,
|
|
|
|
a:link,
|
|
|
|
a:visited {
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $accent-alt;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2024-07-08 11:57:41 +02: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 11:39:10 +01:00
|
|
|
padding: 9px;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-semibold);
|
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2019-02-13 11:39:10 +01:00
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
input[type="text"].mx_textinput_icon,
|
|
|
|
input[type="search"].mx_textinput_icon {
|
2019-02-13 11:39:10 +01:00
|
|
|
padding-left: 36px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 10px center;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* FIXME THEME - Tint by CSS rather than referencing a duplicate asset */
|
2022-07-15 15:53:23 +02:00
|
|
|
input[type="text"].mx_textinput_icon.mx_textinput_search,
|
|
|
|
input[type="search"].mx_textinput_icon.mx_textinput_search {
|
2024-11-11 18:27:22 +01:00
|
|
|
background-image: url("@vector-im/compound-design-tokens/icons/search.svg");
|
2019-02-13 11:39:10 +01:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* dont search UI as not all browsers support it, */
|
|
|
|
/* we implement it ourselves where needed instead */
|
2022-07-15 15:53:23 +02: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 11:39:10 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Override Firefox's UA style so we get a consistent look across browsers */
|
2019-02-13 11:39:10 +01:00
|
|
|
input::placeholder,
|
|
|
|
textarea::placeholder {
|
|
|
|
opacity: initial;
|
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
textarea {
|
2018-04-12 01:23:35 +02:00
|
|
|
background-color: transparent;
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Required by Firefox */
|
|
|
|
textarea {
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
input[type="text"]:focus,
|
|
|
|
input[type="password"]:focus,
|
|
|
|
textarea:focus {
|
2019-07-10 17:55:03 +02:00
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02: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 13:52:26 +02:00
|
|
|
*:focus:not(:focus-visible) {
|
2019-05-17 23:25:17 +02:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* override defaults */
|
2021-12-09 18:44:22 +01:00
|
|
|
fieldset {
|
|
|
|
display: inline-block;
|
|
|
|
margin-inline: unset;
|
|
|
|
padding-block: unset;
|
|
|
|
padding-inline: unset;
|
|
|
|
min-inline-size: unset;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2022-11-28 18:09:21 +01:00
|
|
|
summary {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-12-09 18:44:22 +01:00
|
|
|
legend {
|
|
|
|
padding-inline: unset;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02: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 14:43:18 +01:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_Dialog,
|
|
|
|
.mx_MatrixChat_wrapper {
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_textinput > input[type="text"],
|
|
|
|
.mx_textinput > input[type="search"] {
|
2019-07-10 17:55:03 +02:00
|
|
|
border: none;
|
|
|
|
flex: 1;
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2019-07-10 17:55:03 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02: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 14:43:18 +01:00
|
|
|
.mx_textinput {
|
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: transparent;
|
|
|
|
color: $input-darker-fg-color;
|
|
|
|
border-radius: 4px;
|
2023-07-12 19:46:49 +02:00
|
|
|
border: 1px solid $secondary-hairline-color;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* these things should probably not be defined globally */
|
2019-02-18 14:43:18 +01:00
|
|
|
margin: 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_textinput {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02: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 14:43:18 +01:00
|
|
|
.mx_textinput input::placeholder {
|
2023-07-12 19:46:49 +02:00
|
|
|
color: $input-placeholder;
|
2019-02-18 14:43:18 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
/* Prevent ugly dotted highlight around selected elements in Firefox */
|
|
|
|
::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02: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 01:23:35 +02:00
|
|
|
#mx_theme_accentColor {
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $accent;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#mx_theme_secondaryAccentColor {
|
|
|
|
color: $secondary-accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_wrapper {
|
|
|
|
position: fixed;
|
2023-05-26 15:28:29 +02:00
|
|
|
z-index: var(--dialog-zIndex-wrapper-default);
|
2018-04-12 01:23:35 +02:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2024-03-13 14:38:32 +01:00
|
|
|
.mx_Dialog_border {
|
|
|
|
z-index: var(--dialog-zIndex-standard);
|
|
|
|
position: relative;
|
2024-06-11 10:31:17 +02:00
|
|
|
width: 100%;
|
2024-06-13 00:35:02 +02:00
|
|
|
max-width: fit-content;
|
2024-06-11 10:31:17 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
max-height: calc(100% - var(--cpd-space-6x));
|
2024-03-13 14:38:32 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-03-14 16:33:43 +01: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 14:38:32 +01:00
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
.mx_Dialog {
|
2021-08-12 11:10:47 +02:00
|
|
|
background-color: $background;
|
2018-04-12 01:23:35 +02:00
|
|
|
color: $light-fg-color;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-15px;
|
2018-04-12 01:23:35 +02:00
|
|
|
position: relative;
|
2024-03-13 14:38:32 +01:00
|
|
|
padding: var(--cpd-space-8x) var(--cpd-space-10x);
|
|
|
|
box-sizing: border-box;
|
2018-04-12 01:23:35 +02:00
|
|
|
overflow-y: auto;
|
2022-06-07 22:20:32 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
.mx_Dialog_staticWrapper & {
|
|
|
|
z-index: var(--dialog-zIndex-static);
|
|
|
|
contain: content;
|
2022-06-07 22:20:32 +02:00
|
|
|
}
|
|
|
|
|
2023-05-26 15:28:29 +02: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-07 22:20:32 +02:00
|
|
|
}
|
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
/* Styles copied/inspired by GroupLayout, ReplyTile, and EventTile variants. */
|
|
|
|
.markdown-body {
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-regular) !important;
|
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-body-md);
|
2023-07-03 17:07:30 +02:00
|
|
|
font-family: inherit !important;
|
|
|
|
white-space: normal !important;
|
|
|
|
line-height: inherit !important;
|
2024-06-17 18:20:18 +02:00
|
|
|
background-color: inherit;
|
2023-05-26 15:28:29 +02: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-07 22:20:32 +02:00
|
|
|
|
2023-05-26 15:28:29 +02: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-07 22:20:32 +02:00
|
|
|
}
|
|
|
|
|
2023-05-26 15:28:29 +02: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-07 22:20:32 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
> * {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
2022-06-07 22:20:32 +02:00
|
|
|
}
|
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-family: inherit !important;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2022-06-07 22:20:32 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
/* Make h1 and h2 the same size as h3. */
|
|
|
|
h1,
|
|
|
|
h2 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
border-bottom: none !important; /* override GFM */
|
|
|
|
}
|
2022-06-07 22:20:32 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
a {
|
|
|
|
color: $accent-alt;
|
|
|
|
}
|
2022-06-07 22:20:32 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
blockquote {
|
|
|
|
border-left: 2px solid $blockquote-bar-color;
|
2023-07-21 14:16:33 +02:00
|
|
|
color: $secondary-content;
|
2023-05-26 15:28:29 +02:00
|
|
|
border-radius: 2px;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
}
|
2022-06-07 22:20:32 +02:00
|
|
|
}
|
|
|
|
|
2019-04-03 17:27:45 +02:00
|
|
|
.mx_Dialog_fixedWidth {
|
2019-04-03 18:53:38 +02:00
|
|
|
width: 60vw;
|
2019-04-08 14:37:29 +02:00
|
|
|
max-width: 704px;
|
2019-04-03 17:27:45 +02:00
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
.mx_Dialog_background {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-01-19 04:09:23 +01:00
|
|
|
background-color: $dialog-backdrop-color;
|
2023-05-26 15:28:29 +02:00
|
|
|
z-index: var(--dialog-zIndex-standard-background);
|
2019-02-28 23:55:58 +01:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
&.mx_Dialog_staticBackground {
|
|
|
|
z-index: var(--dialog-zIndex-static-background);
|
|
|
|
}
|
2018-04-12 01:23:35 +02:00
|
|
|
|
2023-05-26 15:28:29 +02: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 01:23:35 +02:00
|
|
|
|
2023-05-26 15:28:29 +02: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 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2020-01-22 12:44:47 +01:00
|
|
|
.mx_Dialog_titleImage {
|
2020-06-24 17:12:46 +02:00
|
|
|
vertical-align: sub;
|
2020-01-22 12:44:47 +01:00
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
margin-left: -2px;
|
|
|
|
margin-right: 4px;
|
2021-12-15 17:05:58 +01:00
|
|
|
margin-bottom: 2px;
|
2020-01-22 12:44:47 +01:00
|
|
|
}
|
|
|
|
|
2019-01-29 15:34:58 +01:00
|
|
|
.mx_Dialog_title {
|
2019-04-03 17:27:45 +02:00
|
|
|
color: $dialog-title-fg-color;
|
2021-12-15 17:05:58 +01:00
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2024-02-16 15:23:33 +01:00
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-heading-lg);
|
2019-01-29 15:34:58 +01:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
&.danger {
|
|
|
|
color: $alert;
|
|
|
|
}
|
2020-05-28 17:48:50 +02:00
|
|
|
}
|
2019-01-29 15:34:58 +01:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
.mx_Dialog_header {
|
|
|
|
position: relative;
|
2024-03-13 14:38:32 +01:00
|
|
|
padding: 0;
|
|
|
|
padding-inline-end: 20px; /* Reserve room for the close button */
|
|
|
|
margin-bottom: var(--cpd-space-2x);
|
2023-03-12 21:22:30 +01:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
&.mx_Dialog_headerWithButton > .mx_Dialog_title {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-01-29 15:34:58 +01:00
|
|
|
}
|
|
|
|
|
2022-05-07 21:08:00 +02:00
|
|
|
@define-mixin customisedCancelButton {
|
2019-01-29 15:34:58 +01:00
|
|
|
cursor: pointer;
|
2024-03-05 05:25:47 +01: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 11:51:21 +02:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2024-03-05 05:25:47 +01: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-07 21:08:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_cancelButton {
|
|
|
|
@mixin customisedCancelButton;
|
2019-01-29 15:34:58 +01:00
|
|
|
position: absolute;
|
2024-03-13 14:38:32 +01:00
|
|
|
top: var(--cpd-space-4x);
|
|
|
|
right: var(--cpd-space-4x);
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_content {
|
2018-10-26 14:15:16 +02:00
|
|
|
margin: 24px 0 68px;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2018-04-12 01:23:35 +02:00
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2018-10-19 23:33:23 +02:00
|
|
|
.mx_Dialog_buttons {
|
2022-05-11 14:33:21 +02:00
|
|
|
margin-top: $spacing-20;
|
|
|
|
margin-inline-start: auto;
|
2018-10-19 23:33:23 +02:00
|
|
|
text-align: right;
|
2020-11-19 20:06:24 +01:00
|
|
|
|
|
|
|
.mx_Dialog_buttons_additive {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* The consumer is responsible for positioning their elements. */
|
2020-11-19 20:06:24 +01:00
|
|
|
float: left;
|
|
|
|
}
|
2018-10-19 23:33:23 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
.mx_Dialog_buttons_row {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-end;
|
|
|
|
text-align: initial;
|
|
|
|
margin-inline-start: auto;
|
2022-05-11 14:33:21 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
/* default gap among elements */
|
|
|
|
column-gap: var(--buttons-dialog-gap-column);
|
|
|
|
row-gap: var(--buttons-dialog-gap-row);
|
2022-05-11 14:33:21 +02:00
|
|
|
|
2023-05-26 15:28:29 +02:00
|
|
|
button {
|
|
|
|
margin: 0 !important; /* override the margin settings */
|
|
|
|
}
|
2022-05-11 14:33:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-12 14:49:12 +02:00
|
|
|
@define-mixin mx_DialogButton {
|
|
|
|
/* align images in buttons (eg spinners) */
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0px;
|
2024-03-05 05:25:47 +01:00
|
|
|
border-radius: 24px;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2023-04-12 14:49:12 +02:00
|
|
|
color: $button-fg-color;
|
2024-03-05 05:25:47 +01:00
|
|
|
background-color: var(--cpd-color-bg-action-primary-rest);
|
2023-04-12 14:49:12 +02:00
|
|
|
width: auto;
|
|
|
|
padding: 7px;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
|
2023-09-28 13:52:26 +02:00
|
|
|
&:not(:focus-visible) {
|
2023-04-12 14:49:12 +02:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-24 20:11:57 +01: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 15:54:45 +01: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-24 20:11:57 +01:00
|
|
|
*/
|
2024-06-06 15:56:38 +02:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 16:58:20 +02:00
|
|
|
.mx_UserProfileSettings button
|
2024-08-16 14:16:06 +02:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):not(.mx_UnpinAllDialog button),
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog input[type="submit"],
|
2022-01-07 10:40:53 +01:00
|
|
|
.mx_Dialog_buttons button:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton),
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog_buttons input[type="submit"] {
|
2018-04-12 01:23:35 +02:00
|
|
|
@mixin mx_DialogButton;
|
|
|
|
margin-left: 0px;
|
2023-03-30 11:11:16 +02:00
|
|
|
margin-right: var(--buttons-dialog-gap-column);
|
2021-12-09 10:41:33 +01:00
|
|
|
margin-bottom: 5px;
|
2018-04-12 01:23:35 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* flip colours for the secondary ones */
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2024-03-05 05:25:47 +01:00
|
|
|
border: 1px solid var(--cpd-color-border-interactive-secondary);
|
|
|
|
color: var(--cpd-color-text-primary);
|
2023-07-12 19:46:49 +02:00
|
|
|
background-color: transparent;
|
2021-03-21 13:11:45 +01:00
|
|
|
font-family: inherit;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2024-06-06 15:56:38 +02:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 16:58:20 +02:00
|
|
|
.mx_UserProfileSettings button
|
2024-08-16 14:16:06 +02:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):not(.mx_UnpinAllDialog button):last-child {
|
2019-04-03 17:27:45 +02:00
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
|
2024-06-06 15:56:38 +02:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 16:58:20 +02:00
|
|
|
.mx_UserProfileSettings button
|
2024-08-16 14:16:06 +02:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):not(.mx_UnpinAllDialog button):focus,
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog input[type="submit"]:focus,
|
2022-01-07 10:40:53 +01:00
|
|
|
.mx_Dialog_buttons button:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):focus,
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog_buttons input[type="submit"]:focus {
|
2018-04-12 01:23:35 +02:00
|
|
|
filter: brightness($focus-brightness);
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_Dialog button.mx_Dialog_primary:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]),
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog input[type="submit"].mx_Dialog_primary,
|
2024-06-06 15:56:38 +02:00
|
|
|
.mx_Dialog_buttons
|
2024-06-07 16:58:20 +02:00
|
|
|
button.mx_Dialog_primary:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):not(
|
|
|
|
.mx_UserProfileSettings button
|
2024-08-16 14:16:06 +02:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):not(.mx_UnpinAllDialog button),
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog_buttons input[type="submit"].mx_Dialog_primary {
|
2024-03-05 05:25:47 +01: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 17:27:45 +02:00
|
|
|
min-width: 156px;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_Dialog button.danger:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]),
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog input[type="submit"].danger,
|
2024-06-06 15:56:38 +02:00
|
|
|
.mx_Dialog_buttons
|
2024-06-26 17:47:01 +02:00
|
|
|
button.danger:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):not(.mx_UserProfileSettings button):not(
|
|
|
|
.mx_ThemeChoicePanel_CustomTheme button
|
2024-08-16 14:16:06 +02:00
|
|
|
):not(.mx_UnpinAllDialog button),
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog_buttons input[type="submit"].danger {
|
2024-03-05 05:25:47 +01: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 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_Dialog button.warning:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]),
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog input[type="submit"].warning {
|
2024-03-18 16:47:55 +01:00
|
|
|
border: solid 1px var(--cpd-color-border-critical-subtle);
|
2024-03-05 05:25:47 +01:00
|
|
|
color: var(--cpd-color-text-critical-primary);
|
2020-01-27 15:28:43 +01:00
|
|
|
}
|
|
|
|
|
2024-06-06 15:56:38 +02:00
|
|
|
.mx_Dialog
|
|
|
|
button:not(.mx_Dialog_nonDialogButton):not([class|="maplibregl"]):not(.mx_AccessibleButton):not(
|
2024-06-07 16:58:20 +02:00
|
|
|
.mx_UserProfileSettings button
|
2024-08-16 14:16:06 +02:00
|
|
|
):not(.mx_ThemeChoicePanel_CustomTheme button):not(.mx_UnpinAllDialog button):disabled,
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog input[type="submit"]:disabled,
|
2022-01-07 10:40:53 +01:00
|
|
|
.mx_Dialog_buttons button:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):disabled,
|
2021-11-02 06:44:42 +01:00
|
|
|
.mx_Dialog_buttons input[type="submit"]:disabled {
|
2018-04-12 01:23:35 +02:00
|
|
|
background-color: $light-fg-color;
|
|
|
|
border: solid 1px $light-fg-color;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
2019-07-10 17:55:03 +02:00
|
|
|
/* Spinner Dialog overide */
|
2024-03-25 18:36:00 +01: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-24 23:14:41 +02:00
|
|
|
|
2024-03-25 18:36:00 +01:00
|
|
|
/* Don't show scroll-bars on spinner dialogs */
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2019-07-10 17:55:03 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02: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-04 21:25:26 +01:00
|
|
|
.mx_GeneralButton {
|
|
|
|
@mixin mx_DialogButton;
|
|
|
|
display: inline;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
.mx_TextInputDialog_label {
|
|
|
|
text-align: left;
|
|
|
|
padding-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TextInputDialog_input {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-15px;
|
2018-04-12 01:23:35 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid $input-border-color;
|
|
|
|
padding: 9px;
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2021-08-12 11:10:47 +02:00
|
|
|
background-color: $background;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_button_row {
|
|
|
|
margin-top: 69px;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* username colors */
|
|
|
|
/* used by SenderProfile & RoomPreviewBar */
|
2019-04-17 10:21:30 +02: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 14:22:15 +02:00
|
|
|
.mx_AppWarning,
|
|
|
|
.mx_AppPermission {
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-06-26 15:02:36 +02:00
|
|
|
@define-mixin ProgressBarColour $colour {
|
|
|
|
color: $colour;
|
|
|
|
&::-moz-progress-bar {
|
|
|
|
background-color: $colour;
|
|
|
|
}
|
|
|
|
&::-webkit-progress-value {
|
|
|
|
background-color: $colour;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-05 22:14:43 +01:00
|
|
|
@define-mixin ProgressBarBgColour $colour {
|
|
|
|
background-color: $colour;
|
|
|
|
&::-webkit-progress-bar {
|
|
|
|
background-color: $colour;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-26 15:02:36 +02: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 17:08:25 +02: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 10:40:53 +01: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 08:34:39 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
@define-mixin LegacyCallButton {
|
2022-04-04 08:34:39 +02:00
|
|
|
box-sizing: border-box;
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-04-04 08:34:39 +02:00
|
|
|
height: $font-24px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-04-04 08:34:39 +02:00
|
|
|
display: inline-block;
|
|
|
|
background-color: $button-fg-color;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-20 10:14:24 +02:00
|
|
|
|
2022-07-04 21:07:50 +02:00
|
|
|
@define-mixin ThreadRepliesAmount {
|
2022-04-29 13:03:39 +02:00
|
|
|
color: $secondary-content;
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-04-29 13:03:39 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
position: relative;
|
|
|
|
padding: 0 $spacing-12 0 $spacing-8;
|
|
|
|
}
|
|
|
|
|
2022-07-04 21:07:50 +02:00
|
|
|
@define-mixin ThreadSummaryIcon {
|
2022-04-29 13:03:39 +02:00
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
2024-07-23 11:12:07 +02:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/threads.svg");
|
2022-04-29 13:03:39 +02:00
|
|
|
mask-position: center;
|
2022-07-04 21:07:50 +02:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
2022-04-29 13:03:39 +02:00
|
|
|
height: 18px;
|
|
|
|
min-width: 18px;
|
2023-07-12 19:46:49 +02:00
|
|
|
background-color: $icon-button-color !important;
|
2022-04-29 13:03:39 +02:00
|
|
|
}
|
2022-11-14 19:31:20 +01:00
|
|
|
|
|
|
|
@define-mixin composerButtonHighLight {
|
2024-03-05 05:25:47 +01:00
|
|
|
background: var(--cpd-color-bg-subtle-primary);
|
2022-11-14 19:31:20 +01:00
|
|
|
&::before {
|
2024-03-05 05:25:47 +01:00
|
|
|
background-color: var(--cpd-color-icon-primary) !important;
|
2022-11-14 19:31:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-12 19:46:49 +02:00
|
|
|
@define-mixin composerButton $border-radius, $hover-color, $hover-bg {
|
2022-11-14 19:31:20 +01: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 {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-11-14 19:31:20 +01:00
|
|
|
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-12 19:46:49 +02:00
|
|
|
z-index: 2;
|
2022-11-14 19:31:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-11-14 19:31:20 +01:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: 0;
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::after {
|
2023-07-12 19:46:49 +02:00
|
|
|
background: $hover-bg;
|
2022-11-14 19:31:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-20 15:30:37 +02:00
|
|
|
|
|
|
|
.mx_lineClamp {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: var(--mx-line-clamp, 1);
|
|
|
|
overflow: hidden;
|
|
|
|
}
|