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
|
|
|
|
Copyright 2019 - 2021 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.
|
|
|
|
*/
|
|
|
|
|
2020-03-31 14:26:23 +00:00
|
|
|
@import "./_font-sizes.scss";
|
2020-11-03 13:21:33 +00:00
|
|
|
@import "./_font-weights.scss";
|
2021-08-10 16:38:38 +00:00
|
|
|
@import "./_animations.scss";
|
2022-05-11 12:33:21 +00:00
|
|
|
@import "./_spacing.scss";
|
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-09-24 14:23:06 +00:00
|
|
|
$hover-transition: 0.08s cubic-bezier(.46, .03, .52, .96); // quadratic
|
|
|
|
|
2021-10-20 15:33:23 +00:00
|
|
|
$selected-message-border-width: 4px;
|
2021-01-31 10:11:34 +00:00
|
|
|
|
|
|
|
$MessageTimestamp_width: 46px; /* 8 + 30 (avatar) + 8 */
|
2021-10-20 15:33:23 +00:00
|
|
|
$MessageTimestamp_width_hover: calc($MessageTimestamp_width - 2 * $selected-message-border-width);
|
2021-01-31 10:11:34 +00:00
|
|
|
|
2021-10-20 12:41:27 +00:00
|
|
|
$slider-dot-size: 1em;
|
|
|
|
$slider-selection-dot-size: 2.4em;
|
|
|
|
|
2021-11-16 14:43:18 +00:00
|
|
|
$container-border-width: 8px;
|
2021-12-06 12:10:52 +00:00
|
|
|
$container-gap-width: 8px; // only even numbers should be used because otherwise we get 0.5px margin values.
|
2021-11-16 14:43:18 +00:00
|
|
|
|
2021-11-21 17:56:25 +00:00
|
|
|
$timeline-image-border-radius: 8px;
|
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
|
|
|
|
|
|
|
--transition-short: .1s;
|
|
|
|
--transition-standard: .3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@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;
|
2021-05-25 10:29:54 +00:00
|
|
|
// Stop similar overscroll bounce in Firefox Nightly for macOS
|
|
|
|
overscroll-behavior: none;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: $font-family;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-15px;
|
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
|
|
|
|
|
|
|
// needed to match the designs correctly on macOS
|
2020-08-03 15:02:26 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2019-04-12 14:05:07 +00:00
|
|
|
b {
|
|
|
|
// 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.
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
h2 {
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2018-04-11 23:23:35 +00:00
|
|
|
font-weight: 400;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-18px;
|
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
|
|
|
}
|
|
|
|
|
2019-02-13 10:39:10 +00:00
|
|
|
input[type=text],
|
|
|
|
input[type=search],
|
|
|
|
input[type=password] {
|
2021-06-26 07:16:24 +00:00
|
|
|
font-family: inherit;
|
2019-02-13 10:39:10 +00:00
|
|
|
padding: 9px;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2019-02-13 10:39:10 +00:00
|
|
|
font-weight: 600;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=text].mx_textinput_icon,
|
|
|
|
input[type=search].mx_textinput_icon {
|
|
|
|
padding-left: 36px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 10px center;
|
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME THEME - Tint by CSS rather than referencing a duplicate asset
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
// dont search UI as not all browsers support it,
|
|
|
|
// we implement it ourselves where needed instead
|
|
|
|
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 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Override Firefox's UA style so we get a consistent look across browsers
|
|
|
|
input::placeholder,
|
|
|
|
textarea::placeholder {
|
|
|
|
opacity: initial;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
input[type=text], input[type=password], textarea {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
input[type=text]:focus, input[type=password]:focus, textarea:focus {
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2019-05-21 02:41:48 +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.
|
2019-10-10 13:13:29 +00:00
|
|
|
*:focus:not(.focus-visible) {
|
2019-05-17 21:25:17 +00:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2021-12-09 17:44:22 +00:00
|
|
|
// override defaults
|
|
|
|
fieldset {
|
|
|
|
display: inline-block;
|
|
|
|
margin-inline: unset;
|
|
|
|
padding-block: unset;
|
|
|
|
padding-inline: unset;
|
|
|
|
min-inline-size: unset;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
legend {
|
|
|
|
padding-inline: unset;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2019-02-18 13:43:18 +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
|
|
|
|
|
2021-08-17 17:56:10 +00:00
|
|
|
.mx_Dialog, .mx_MatrixChat_wrapper {
|
2019-07-10 15:55:03 +00:00
|
|
|
.mx_textinput > input[type=text],
|
|
|
|
.mx_textinput > input[type=search] {
|
|
|
|
border: none;
|
|
|
|
flex: 1;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2019-07-10 15:55:03 +00:00
|
|
|
}
|
|
|
|
|
2019-02-18 13:43:18 +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],
|
|
|
|
.mx_textinput {
|
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: transparent;
|
|
|
|
color: $input-darker-fg-color;
|
|
|
|
border-radius: 4px;
|
2021-08-12 09:27:12 +00:00
|
|
|
border: 1px solid rgba($primary-content, .1);
|
2020-07-13 22:23:21 +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;
|
|
|
|
}
|
|
|
|
|
|
|
|
: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,
|
|
|
|
.mx_textinput input::placeholder {
|
2020-07-16 14:46:06 +00:00
|
|
|
color: rgba($input-darker-fg-color, .75);
|
2019-02-18 13:43:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*** panels ***/
|
|
|
|
.dark-panel {
|
2019-02-18 13:50:17 +00:00
|
|
|
background-color: $dark-panel-bg-color;
|
2019-02-18 13:43:18 +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],
|
|
|
|
.mx_textinput {
|
|
|
|
color: $input-darker-fg-color;
|
2021-08-12 09:10:47 +00:00
|
|
|
background-color: $background;
|
2019-02-18 13:43:18 +00:00
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.light-panel {
|
|
|
|
: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],
|
|
|
|
.mx_textinput {
|
2021-11-08 11:50:53 +00:00
|
|
|
color: $input-darker-fg-color;
|
2019-02-18 13:43:18 +00:00
|
|
|
background-color: $input-lighter-bg-color;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
/* Prevent ugly dotted highlight around selected elements in Firefox */
|
|
|
|
::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// These are magic constants which are excluded from tinting, to let themes
|
2022-03-28 21:17:40 +00:00
|
|
|
// (which only have CSS) tell the app what their non-tinted
|
2018-04-11 23:23:35 +00:00
|
|
|
// colourscheme is by inspecting the stylesheet DOM.
|
|
|
|
//
|
|
|
|
// They are not used for layout!!
|
|
|
|
#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;
|
|
|
|
}
|
|
|
|
|
2019-02-28 22:55:58 +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.
|
|
|
|
*/
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_Dialog_wrapper {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 4000;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2019-02-28 22:55:58 +00:00
|
|
|
z-index: 4012;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-15px;
|
2018-04-11 23:23:35 +00:00
|
|
|
position: relative;
|
2020-10-06 13:48:43 +00:00
|
|
|
padding: 24px;
|
2018-04-11 23:23:35 +00:00
|
|
|
max-height: 80%;
|
2019-04-03 15:27:45 +00:00
|
|
|
box-shadow: 2px 15px 30px 0 $dialog-shadow-color;
|
2020-07-13 20:56:48 +00:00
|
|
|
border-radius: 8px;
|
2018-04-11 23:23:35 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2022-06-07 20:20:32 +00:00
|
|
|
// Styles copied/inspired by GroupLayout, ReplyTile, and EventTile variants.
|
|
|
|
.mx_Dialog .markdown-body {
|
|
|
|
font-family: inherit !important;
|
|
|
|
white-space: normal !important;
|
|
|
|
line-height: inherit !important;
|
|
|
|
color: inherit; // inherit the colour from the dark or light theme by default (but not for code blocks)
|
|
|
|
font-size: $font-14px;
|
|
|
|
|
|
|
|
pre,
|
|
|
|
code {
|
|
|
|
font-family: $monospace-font-family !important;
|
|
|
|
background-color: $codeblock-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
white-space: pre; // we want code blocks to be scrollable and not wrap
|
|
|
|
|
|
|
|
>* {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog .markdown-body h1,
|
|
|
|
.mx_Dialog .markdown-body h2,
|
|
|
|
.mx_Dialog .markdown-body h3,
|
|
|
|
.mx_Dialog .markdown-body h4,
|
|
|
|
.mx_Dialog .markdown-body h5,
|
|
|
|
.mx_Dialog .markdown-body h6 {
|
|
|
|
font-family: inherit !important;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make h1 and h2 the same size as h3. */
|
|
|
|
.mx_Dialog .markdown-body h1,
|
|
|
|
.mx_Dialog .markdown-body h2 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
border-bottom: none !important; // override GFM
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog .markdown-body a {
|
|
|
|
color: $accent-alt;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog .markdown-body blockquote {
|
|
|
|
border-left: 2px solid $blockquote-bar-color;
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-02-28 22:55:58 +00:00
|
|
|
.mx_Dialog_staticWrapper .mx_Dialog {
|
|
|
|
z-index: 4010;
|
2021-06-01 10:21:59 +00:00
|
|
|
contain: content;
|
2019-02-28 22:55:58 +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;
|
2018-04-11 23:23:35 +00:00
|
|
|
opacity: 0.8;
|
2019-02-28 22:55:58 +00:00
|
|
|
z-index: 4011;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_background.mx_Dialog_staticBackground {
|
|
|
|
z-index: 4009;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_wrapperWithStaticUnder .mx_Dialog_background {
|
|
|
|
// 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
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_lightbox .mx_Dialog_background {
|
2021-04-02 07:07:36 +00:00
|
|
|
opacity: $lightbox-background-bg-opacity;
|
2018-04-11 23:23:35 +00:00
|
|
|
background-color: $lightbox-background-bg-color;
|
2021-07-22 19:24:24 +00:00
|
|
|
animation-name: mx_Dialog_lightbox_background_keyframes;
|
2021-07-23 06:00:51 +00:00
|
|
|
animation-duration: 300ms;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_lightbox .mx_Dialog {
|
|
|
|
border-radius: 0px;
|
|
|
|
background-color: transparent;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
pointer-events: none;
|
2021-02-24 11:52:08 +00:00
|
|
|
padding: 0;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 14:34:58 +00:00
|
|
|
.mx_Dialog_header {
|
|
|
|
position: relative;
|
2021-12-15 16:05:58 +00:00
|
|
|
padding: 3px 0;
|
2019-09-11 13:36:59 +00:00
|
|
|
margin-bottom: 10px;
|
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;
|
2019-01-29 14:34:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_header.mx_Dialog_headerWithButton > .mx_Dialog_title {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2021-12-15 16:05:58 +00:00
|
|
|
.mx_Dialog_header.mx_Dialog_headerWithCancel {
|
|
|
|
padding-right: 20px; // leave space for the 'X' cancel button
|
2020-05-28 15:48:50 +00:00
|
|
|
}
|
2019-01-29 14:34:58 +00:00
|
|
|
|
|
|
|
.mx_Dialog_title.danger {
|
2021-11-11 13:37:29 +00:00
|
|
|
color: $alert;
|
2019-01-29 14:34:58 +00:00
|
|
|
}
|
|
|
|
|
2022-05-07 19:08:00 +00:00
|
|
|
@define-mixin customisedCancelButton {
|
2019-02-27 10:42:05 +00:00
|
|
|
mask: url('$(res)/img/feather-customised/cancel.svg');
|
2019-01-29 14:34:58 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2019-04-03 15:27:45 +00:00
|
|
|
mask-size: cover;
|
|
|
|
background-color: $dialog-close-fg-color;
|
2019-01-29 14:34:58 +00:00
|
|
|
cursor: pointer;
|
2022-05-07 19:08:00 +00:00
|
|
|
position: unset;
|
|
|
|
width: unset;
|
|
|
|
height: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_cancelButton {
|
|
|
|
@mixin customisedCancelButton;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2019-01-29 14:34:58 +00:00
|
|
|
position: absolute;
|
2020-11-03 13:18:18 +00:00
|
|
|
top: 10px;
|
|
|
|
right: 0;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_content {
|
2018-10-26 12:15:16 +00:00
|
|
|
margin: 24px 0 68px;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
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 {
|
|
|
|
// The consumer is responsible for positioning their elements.
|
|
|
|
float: left;
|
|
|
|
}
|
2018-10-19 21:33:23 +00:00
|
|
|
}
|
|
|
|
|
2022-05-11 12:33:21 +00:00
|
|
|
.mx_Dialog_buttons_row {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-end;
|
|
|
|
text-align: initial;
|
|
|
|
margin-inline-start: auto;
|
|
|
|
|
|
|
|
// default gap among elements
|
|
|
|
column-gap: $spacing-8; // See margin-right below inside the button style
|
|
|
|
row-gap: 5px; // See margin-bottom below inside the button style
|
|
|
|
|
|
|
|
button {
|
|
|
|
margin: 0 !important; // override the margin settings
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
*/
|
2022-01-12 09:19:26 +00:00
|
|
|
.mx_Dialog button:not(.mx_Dialog_nonDialogButton):not([class|=maplibregl]):not(.mx_AccessibleButton),
|
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;
|
|
|
|
margin-right: 8px;
|
2021-12-09 09:41:33 +00:00
|
|
|
margin-bottom: 5px;
|
2018-04-11 23:23:35 +00:00
|
|
|
|
|
|
|
// flip colours for the secondary ones
|
|
|
|
font-weight: 600;
|
2021-11-11 13:37:29 +00:00
|
|
|
border: 1px solid $accent;
|
|
|
|
color: $accent;
|
2019-02-12 15:40:06 +00:00
|
|
|
background-color: $button-secondary-bg-color;
|
2021-03-21 12:11:45 +00:00
|
|
|
font-family: inherit;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2022-01-12 09:19:26 +00:00
|
|
|
.mx_Dialog button:not(.mx_Dialog_nonDialogButton):not([class|=maplibregl]):not(.mx_AccessibleButton):last-child {
|
2019-04-03 15:27:45 +00:00
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
|
2022-01-12 09:19:26 +00:00
|
|
|
.mx_Dialog button:not(.mx_Dialog_nonDialogButton):not([class|=maplibregl]):not(.mx_AccessibleButton):hover,
|
2021-11-02 05:44:42 +00:00
|
|
|
.mx_Dialog input[type="submit"]:hover,
|
2022-01-07 09:40:53 +00:00
|
|
|
.mx_Dialog_buttons button:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton):hover,
|
2021-11-02 05:44:42 +00:00
|
|
|
.mx_Dialog_buttons input[type="submit"]:hover {
|
2018-04-11 23:23:35 +00:00
|
|
|
@mixin mx_DialogButton_hover;
|
|
|
|
}
|
|
|
|
|
2022-01-12 09:19:26 +00:00
|
|
|
.mx_Dialog button:not(.mx_Dialog_nonDialogButton):not([class|=maplibregl]):not(.mx_AccessibleButton):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-01-12 09:19:26 +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,
|
2022-01-12 09:19:26 +00:00
|
|
|
.mx_Dialog_buttons button.mx_Dialog_primary:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton),
|
2021-11-02 05:44:42 +00:00
|
|
|
.mx_Dialog_buttons input[type="submit"].mx_Dialog_primary {
|
2018-04-11 23:23:35 +00:00
|
|
|
color: $accent-fg-color;
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $accent;
|
2019-04-03 15:27:45 +00:00
|
|
|
min-width: 156px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2022-01-12 09:19:26 +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,
|
2022-01-12 09:19:26 +00:00
|
|
|
.mx_Dialog_buttons button.danger:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton),
|
2021-11-02 05:44:42 +00:00
|
|
|
.mx_Dialog_buttons input[type="submit"].danger {
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $alert;
|
|
|
|
border: solid 1px $alert;
|
2018-04-27 11:38:49 +00:00
|
|
|
color: $accent-fg-color;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2022-01-12 09:19:26 +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 {
|
2021-11-11 13:37:29 +00:00
|
|
|
border: solid 1px $alert;
|
|
|
|
color: $alert;
|
2020-01-27 14:28:43 +00:00
|
|
|
}
|
|
|
|
|
2022-01-12 09:19:26 +00:00
|
|
|
.mx_Dialog button:not(.mx_Dialog_nonDialogButton):not([class|=maplibregl]):not(.mx_AccessibleButton):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 */
|
|
|
|
.mx_Dialog_wrapper.mx_Dialog_spinner .mx_Dialog {
|
|
|
|
width: auto;
|
|
|
|
border-radius: 8px;
|
2021-12-16 12:28:21 +00:00
|
|
|
padding: 8px;
|
2019-07-10 15:55:03 +00:00
|
|
|
box-shadow: none;
|
2020-04-24 21:14:41 +00:00
|
|
|
|
|
|
|
/* Don't show scroll-bars on spinner dialogs */
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
2019-07-10 15:55:03 +00:00
|
|
|
}
|
|
|
|
|
2021-11-30 18:08:46 +00:00
|
|
|
.mx_DialogDesignChanges_wrapper .mx_Dialog_fixedWidth {
|
|
|
|
max-width: 636px; // match splash image width
|
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
font-size: inherit;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-04 20:25:26 +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.
|
2020-08-03 15:02:26 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_GeneralButton:hover {
|
|
|
|
@mixin mx_DialogButton_hover;
|
|
|
|
}
|
|
|
|
|
2018-11-20 13:11:58 +00:00
|
|
|
.mx_linkButton {
|
|
|
|
cursor: pointer;
|
2021-11-11 13:37:29 +00:00
|
|
|
color: $accent;
|
2018-11-20 13:11:58 +00:00
|
|
|
}
|
|
|
|
|
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_textButton {
|
2018-12-20 12:46:43 +00:00
|
|
|
@mixin mx_DialogButton_small;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_textButton:hover {
|
|
|
|
@mixin mx_DialogButton_hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_button_row {
|
|
|
|
margin-top: 69px;
|
|
|
|
}
|
|
|
|
|
2019-04-17 08:21:30 +00:00
|
|
|
// username colors
|
|
|
|
// used by SenderProfile & RoomPreviewBar
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Username_color7 {
|
|
|
|
color: $username-variant7-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Username_color8 {
|
|
|
|
color: $username-variant8-color;
|
|
|
|
}
|
2019-08-13 11:53:14 +00:00
|
|
|
|
2019-11-15 21:25:53 +00:00
|
|
|
@define-mixin mx_Tooltip_dark {
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: $tooltip-timeline-bg-color;
|
|
|
|
color: $tooltip-timeline-fg-color;
|
|
|
|
border: none;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 6px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is a workaround for our mixins not supporting child selectors
|
|
|
|
.mx_Tooltip_dark {
|
|
|
|
.mx_Tooltip_chevron::after {
|
|
|
|
border-right-color: $tooltip-timeline-bg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
@define-mixin CallButton {
|
|
|
|
box-sizing: border-box;
|
|
|
|
font-weight: 600;
|
|
|
|
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;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
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;
|
|
|
|
background-color: $secondary-content !important;
|
|
|
|
}
|