2018-04-12 02:23:35 +03:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
Copyright 2017 Vector Creations Ltd
|
|
|
|
Copyright 2017 New Vector Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
html {
|
|
|
|
/* hack to stop overscroll bounce on OSX and iOS.
|
|
|
|
N.B. Breaks things when we have legitimate horizontal overscroll */
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: $font-family;
|
|
|
|
font-size: 15px;
|
|
|
|
background-color: $primary-bg-color;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
border: 0px;
|
|
|
|
margin: 0px;
|
2019-11-27 03:45:46 +03:00
|
|
|
|
|
|
|
// needed to match the designs correctly on macOS
|
|
|
|
// see https://github.com/vector-im/riot-web/issues/11425
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-05-20 12:09:19 +03:00
|
|
|
pre, code {
|
2019-05-19 19:41:18 +03:00
|
|
|
font-family: $monospace-font-family;
|
2019-05-22 12:35:09 +03:00
|
|
|
font-size: 100% !important;
|
2019-05-19 19:41:18 +03:00
|
|
|
}
|
|
|
|
|
2018-12-13 18:55:48 +03:00
|
|
|
.error, .warning {
|
2018-04-12 02:23:35 +03:00
|
|
|
color: $warning-color;
|
|
|
|
}
|
|
|
|
|
2019-04-12 17:05:07 +03: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-12 02:23:35 +03:00
|
|
|
h2 {
|
|
|
|
color: $primary-fg-color;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 18px;
|
|
|
|
margin-top: 16px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover,
|
|
|
|
a:link,
|
|
|
|
a:visited {
|
2018-12-20 15:46:43 +03:00
|
|
|
color: $accent-color-alt;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-02-13 13:39:10 +03:00
|
|
|
input[type=text],
|
|
|
|
input[type=search],
|
|
|
|
input[type=password] {
|
|
|
|
padding: 9px;
|
|
|
|
font-family: $font-family;
|
|
|
|
font-size: 14px;
|
|
|
|
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 13:42:05 +03:00
|
|
|
background-image: url('$(res)/img/feather-customised/search-input.svg');
|
2019-02-13 13:39:10 +03: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-12 02:23:35 +03:00
|
|
|
input[type=text], input[type=password], textarea {
|
|
|
|
background-color: transparent;
|
2019-02-13 13:33:30 +03:00
|
|
|
color: $primary-fg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Required by Firefox */
|
|
|
|
textarea {
|
|
|
|
font-family: $font-family;
|
2019-02-13 13:30:38 +03:00
|
|
|
color: $primary-fg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-07-10 18:55:03 +03:00
|
|
|
input[type=text]:focus, input[type=password]:focus, textarea:focus {
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2019-05-21 05:41:48 +03: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 16:13:29 +03:00
|
|
|
*:focus:not(.focus-visible) {
|
2019-05-18 00:25:17 +03:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-02-18 16:43:18 +03: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
|
|
|
|
|
|
|
|
.mx_Dialog, .mx_MatrixChat {
|
2019-07-10 18:55:03 +03:00
|
|
|
.mx_textinput > input[type=text],
|
|
|
|
.mx_textinput > input[type=search] {
|
|
|
|
border: none;
|
|
|
|
flex: 1;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
}
|
|
|
|
|
2019-02-18 16:43:18 +03: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;
|
2019-04-03 18:27:45 +03:00
|
|
|
border: 1px solid $dialog-close-fg-color;
|
2019-02-18 16:43:18 +03:00
|
|
|
// these things should probably not be defined
|
|
|
|
// globally
|
|
|
|
margin: 9px;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
color: $roomsublist-label-fg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*** panels ***/
|
|
|
|
.dark-panel {
|
2019-02-18 16:50:17 +03:00
|
|
|
background-color: $dark-panel-bg-color;
|
2019-02-18 16:43:18 +03: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;
|
2019-09-10 11:59:36 +03:00
|
|
|
background-color: $primary-bg-color;
|
2019-02-18 16:43:18 +03: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 {
|
|
|
|
color: $input-lighter-fg-color;
|
|
|
|
background-color: $input-lighter-bg-color;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
/* Prevent ugly dotted highlight around selected elements in Firefox */
|
|
|
|
::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* applied to side-panels and messagepanel when in RoomSettings */
|
|
|
|
.mx_fadable {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.2s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* XXX: critical hack to GeminiScrollbar to allow them to work in FF 42 and Chrome 48.
|
|
|
|
Stop the scrollbar view from pushing out the container's overall sizing, which causes
|
|
|
|
flexbox to adapt to the new size and cause the view to keep growing.
|
|
|
|
*/
|
|
|
|
.gm-scrollbar-container .gm-scroll-view {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Expand thumbs on hoverover */
|
|
|
|
.gm-scrollbar {
|
2019-07-09 20:15:10 +03:00
|
|
|
border-radius: 5px !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
.gm-scrollbar.-vertical {
|
|
|
|
width: 6px;
|
2019-07-09 20:15:10 +03:00
|
|
|
transition: width 120ms ease-out !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
.gm-scrollbar.-vertical:hover,
|
|
|
|
.gm-scrollbar.-vertical:active {
|
|
|
|
width: 8px;
|
2019-07-09 20:15:10 +03:00
|
|
|
transition: width 120ms ease-out !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
.gm-scrollbar.-horizontal {
|
|
|
|
height: 6px;
|
2019-07-09 20:15:10 +03:00
|
|
|
transition: height 120ms ease-out !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
.gm-scrollbar.-horizontal:hover,
|
|
|
|
.gm-scrollbar.-horizontal:active {
|
|
|
|
height: 8px;
|
2019-07-09 20:15:10 +03:00
|
|
|
transition: height 120ms ease-out !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// These are magic constants which are excluded from tinting, to let themes
|
|
|
|
// (which only have CSS, unlike skins) tell the app what their non-tinted
|
|
|
|
// colourscheme is by inspecting the stylesheet DOM.
|
|
|
|
//
|
|
|
|
// They are not used for layout!!
|
|
|
|
#mx_theme_accentColor {
|
|
|
|
color: $accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mx_theme_secondaryAccentColor {
|
|
|
|
color: $secondary-accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mx_theme_tertiaryAccentColor {
|
|
|
|
color: $roomsublist-label-bg-color;
|
|
|
|
}
|
|
|
|
|
2019-03-01 01:55:58 +03: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-12 02:23:35 +03: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 {
|
|
|
|
background-color: $primary-bg-color;
|
|
|
|
color: $light-fg-color;
|
2019-03-01 01:55:58 +03:00
|
|
|
z-index: 4012;
|
2018-04-12 02:23:35 +03:00
|
|
|
font-weight: 300;
|
|
|
|
font-size: 15px;
|
|
|
|
position: relative;
|
2019-04-03 18:27:45 +03:00
|
|
|
padding: 25px 30px 30px 30px;
|
2018-04-12 02:23:35 +03:00
|
|
|
max-height: 80%;
|
2019-04-03 18:27:45 +03:00
|
|
|
box-shadow: 2px 15px 30px 0 $dialog-shadow-color;
|
|
|
|
border-radius: 4px;
|
2018-04-12 02:23:35 +03:00
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2019-04-03 18:27:45 +03:00
|
|
|
.mx_Dialog_fixedWidth {
|
2019-04-03 19:53:38 +03:00
|
|
|
width: 60vw;
|
2019-04-08 15:37:29 +03:00
|
|
|
max-width: 704px;
|
2019-04-03 18:27:45 +03:00
|
|
|
}
|
|
|
|
|
2019-03-01 01:55:58 +03:00
|
|
|
.mx_Dialog_staticWrapper .mx_Dialog {
|
|
|
|
z-index: 4010;
|
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_Dialog_background {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-01-19 06:09:23 +03:00
|
|
|
background-color: $dialog-backdrop-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
opacity: 0.8;
|
2019-03-01 01:55:58 +03: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-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_lightbox .mx_Dialog_background {
|
|
|
|
opacity: 0.85;
|
|
|
|
background-color: $lightbox-background-bg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_lightbox .mx_Dialog {
|
|
|
|
border-radius: 0px;
|
|
|
|
background-color: transparent;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2019-01-29 17:34:58 +03:00
|
|
|
.mx_Dialog_header {
|
|
|
|
position: relative;
|
2019-09-11 16:36:59 +03:00
|
|
|
margin-bottom: 10px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2020-01-22 14:44:47 +03:00
|
|
|
.mx_Dialog_titleImage {
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
margin-left: -2px;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
2019-01-29 17:34:58 +03:00
|
|
|
.mx_Dialog_title {
|
|
|
|
font-size: 22px;
|
|
|
|
line-height: 36px;
|
2019-04-03 18:27:45 +03:00
|
|
|
color: $dialog-title-fg-color;
|
2019-01-29 17:34:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_header.mx_Dialog_headerWithButton > .mx_Dialog_title {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_title.danger {
|
|
|
|
color: $warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_cancelButton {
|
2019-02-27 13:42:05 +03:00
|
|
|
mask: url('$(res)/img/feather-customised/cancel.svg');
|
2019-01-29 17:34:58 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2019-04-03 18:27:45 +03:00
|
|
|
mask-size: cover;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
background-color: $dialog-close-fg-color;
|
2019-01-29 17:34:58 +03:00
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
2019-04-03 18:27:45 +03:00
|
|
|
top: 4px;
|
|
|
|
right: 0px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog_content {
|
2018-10-26 15:15:16 +03:00
|
|
|
margin: 24px 0 68px;
|
2018-04-12 02:23:35 +03:00
|
|
|
font-size: 14px;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2018-10-20 00:33:23 +03:00
|
|
|
.mx_Dialog_buttons {
|
2019-04-03 18:27:45 +03:00
|
|
|
margin-top: 20px;
|
2018-10-20 00:33:23 +03:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-01-24 22:11:57 +03: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.
|
|
|
|
*/
|
|
|
|
.mx_Dialog button, .mx_Dialog input[type="submit"], .mx_Dialog_buttons button, .mx_Dialog_buttons input[type="submit"] {
|
2018-04-12 02:23:35 +03:00
|
|
|
@mixin mx_DialogButton;
|
|
|
|
margin-left: 0px;
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
|
|
// flip colours for the secondary ones
|
|
|
|
font-weight: 600;
|
2019-08-01 14:45:23 +03:00
|
|
|
border: 1px solid $accent-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
color: $accent-color;
|
2019-02-12 18:40:06 +03:00
|
|
|
background-color: $button-secondary-bg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-04-03 18:27:45 +03:00
|
|
|
.mx_Dialog button:last-child {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
|
2020-01-24 22:11:57 +03:00
|
|
|
.mx_Dialog button:hover, .mx_Dialog input[type="submit"]:hover, .mx_Dialog_buttons button:hover, .mx_Dialog_buttons input[type="submit"]:hover {
|
2018-04-12 02:23:35 +03:00
|
|
|
@mixin mx_DialogButton_hover;
|
|
|
|
}
|
|
|
|
|
2020-01-24 22:11:57 +03:00
|
|
|
.mx_Dialog button:focus, .mx_Dialog input[type="submit"]:focus, .mx_Dialog_buttons button:focus, .mx_Dialog_buttons input[type="submit"]:focus {
|
2018-04-12 02:23:35 +03:00
|
|
|
filter: brightness($focus-brightness);
|
|
|
|
}
|
|
|
|
|
2020-01-24 22:11:57 +03:00
|
|
|
.mx_Dialog button.mx_Dialog_primary, .mx_Dialog input[type="submit"].mx_Dialog_primary, .mx_Dialog_buttons button.mx_Dialog_primary, .mx_Dialog_buttons input[type="submit"].mx_Dialog_primary {
|
2018-04-12 02:23:35 +03:00
|
|
|
color: $accent-fg-color;
|
|
|
|
background-color: $accent-color;
|
2019-04-03 18:27:45 +03:00
|
|
|
min-width: 156px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2020-01-24 22:11:57 +03:00
|
|
|
.mx_Dialog button.danger, .mx_Dialog input[type="submit"].danger, .mx_Dialog_buttons button.danger, .mx_Dialog_buttons input[type="submit"].danger {
|
2018-04-12 02:23:35 +03:00
|
|
|
background-color: $warning-color;
|
|
|
|
border: solid 1px $warning-color;
|
2018-04-27 14:38:49 +03:00
|
|
|
color: $accent-fg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2020-01-27 17:28:43 +03:00
|
|
|
.mx_Dialog button.warning, .mx_Dialog input[type="submit"].warning {
|
|
|
|
border: solid 1px $warning-color;
|
|
|
|
color: $warning-color;
|
|
|
|
}
|
|
|
|
|
2020-01-24 22:11:57 +03:00
|
|
|
.mx_Dialog button:disabled, .mx_Dialog input[type="submit"]:disabled, .mx_Dialog_buttons button:disabled, .mx_Dialog_buttons input[type="submit"]:disabled {
|
2018-04-12 02:23:35 +03:00
|
|
|
background-color: $light-fg-color;
|
|
|
|
border: solid 1px $light-fg-color;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
2019-07-10 18:55:03 +03:00
|
|
|
/* Spinner Dialog overide */
|
|
|
|
.mx_Dialog_wrapper.mx_Dialog_spinner .mx_Dialog {
|
|
|
|
width: auto;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 0px;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2019-02-04 23:25:26 +03: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.
|
2019-02-06 21:06:02 +03:00
|
|
|
// Ref: https://github.com/vector-im/riot-web/issues/8420
|
2019-02-04 23:25:26 +03:00
|
|
|
.mx_GeneralButton {
|
|
|
|
@mixin mx_DialogButton;
|
|
|
|
display: inline;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_GeneralButton:hover {
|
|
|
|
@mixin mx_DialogButton_hover;
|
|
|
|
}
|
|
|
|
|
2018-11-20 16:11:58 +03:00
|
|
|
.mx_linkButton {
|
|
|
|
cursor: pointer;
|
|
|
|
color: $accent-color;
|
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_TextInputDialog_label {
|
|
|
|
text-align: left;
|
|
|
|
padding-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TextInputDialog_input {
|
|
|
|
font-size: 15px;
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid $input-border-color;
|
|
|
|
padding: 9px;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
background-color: $primary-bg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_textButton {
|
2018-12-20 15:46:43 +03:00
|
|
|
@mixin mx_DialogButton_small;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_textButton:hover {
|
|
|
|
@mixin mx_DialogButton_hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_button_row {
|
|
|
|
margin-top: 69px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Beta {
|
|
|
|
color: red;
|
|
|
|
margin-right: 10px;
|
|
|
|
position: relative;
|
|
|
|
top: -3px;
|
|
|
|
background-color: white;
|
|
|
|
padding: 0 4px;
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid darkred;
|
|
|
|
cursor: help;
|
|
|
|
transition-duration: 200ms;
|
|
|
|
font-size: smaller;
|
|
|
|
filter: opacity(0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Beta:hover {
|
|
|
|
color: white;
|
|
|
|
border: 1px solid gray;
|
|
|
|
background-color: darkred;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TintableSvgButton {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TintableSvgButton object {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TintableSvgButton span {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
opacity: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-04-17 11:21:30 +03: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 14:53:14 +03:00
|
|
|
|
2019-11-16 00:25:53 +03: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-13 14:53:14 +03:00
|
|
|
@define-mixin mx_Settings_fullWidthField {
|
2019-08-20 22:20:07 +03:00
|
|
|
margin-right: 100px;
|
2019-08-13 14:53:14 +03:00
|
|
|
}
|
2019-08-20 22:20:07 +03:00
|
|
|
|
|
|
|
@define-mixin mx_Settings_tooltip {
|
|
|
|
// So it fits in the space provided by the page
|
|
|
|
max-width: 120px;
|
2019-08-20 22:24:51 +03:00
|
|
|
}
|