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