matrix-bot/src/skins/vector/css/_common.scss

301 lines
6.8 KiB
SCSS
Raw Normal View History

/*
2016-01-07 05:17:56 +01:00
Copyright 2015, 2016 OpenMarket Ltd
2017-02-13 17:15:27 +01:00
Copyright 2017 Vector Creations 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.
*/
2015-10-11 18:50:24 +02:00
html {
2015-10-11 19:04:01 +02:00
/* hack to stop overscroll bounce on OSX and iOS.
N.B. Breaks things when we have legitimate horizontal overscroll */
2015-10-11 18:50:24 +02:00
height: 100%;
overflow: hidden;
}
body {
/* Open Sans lacks combining diacritics, so these will fall through
to the next font. Helevetica's diacritics however do not combine
nicely with Open Sans (on OSX, at least) and result in a huge
horizontal mess. Arial empirically gets it right, hence prioritising
Arial here. */
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
font-size: 15px;
background-color: $primary-bg-color;
color: $primary-fg-color;
border: 0px;
margin: 0px;
/* This should render the fonts the same accross browsers */
-webkit-font-smoothing: subpixel-antialiased;
}
2015-06-11 19:23:02 +02:00
div.error {
color: red;
}
2015-07-13 02:51:24 +02:00
h2 {
color: $primary-fg-color;
2015-07-13 02:51:24 +02:00
font-weight: 400;
font-size: 18px;
2015-07-13 02:51:24 +02:00
margin-top: 16px;
margin-bottom: 16px;
}
2016-07-14 18:08:25 +02:00
a:hover,
a:link,
a:visited {
color: $accent-color;
}
2017-01-20 03:22:11 +01:00
input[type=text], input[type=password], textarea {
2017-01-18 21:05:18 +01:00
background-color: transparent;
2016-12-31 15:27:44 +01:00
color: $primary-fg-color;
}
input[type=text].error, input[type=password].error {
2016-12-31 15:27:44 +01:00
border: 1px solid $warning-color;
}
2016-01-15 17:32:23 +01:00
input[type=text]:focus, textarea:focus {
border: 1px solid $accent-color;
2015-12-11 02:35:05 +01:00
outline: none;
box-shadow: none;
}
/* Required by Firefox */
textarea {
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
}
/* 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;
2017-01-16 20:00:44 +01:00
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;
}
2016-08-07 22:35:41 +02:00
/* Expand thumbs on hoverover */
.gm-scrollbar {
border-radius: 5px ! important;
}
.gm-scrollbar.-vertical {
2016-08-07 22:35:41 +02:00
width: 6px;
transition: width 120ms ease-out ! important;
}
.gm-scrollbar.-vertical:hover,
.gm-scrollbar.-vertical:active {
width: 8px;
transition: width 120ms ease-out ! important;
}
.gm-scrollbar.-horizontal {
height: 6px;
transition: height 120ms ease-out ! important;
}
.gm-scrollbar.-horizontal:hover,
.gm-scrollbar.-horizontal:active {
height: 8px;
transition: height 120ms ease-out ! important;
}
.mx_Dialog_wrapper {
position: fixed;
z-index: 4000;
top: 0;
left: 0;
width: 100%;
height: 100%;
2015-07-23 10:33:10 +02:00
display: flex;
align-items: center;
justify-content: center;
}
/* Spinner Dialog overide */
2016-07-17 22:20:11 +02:00
.mx_Dialog_wrapper.mx_Dialog_spinner .mx_Dialog {
width: auto;
border-radius: 8px;
2017-03-03 14:54:26 +01:00
padding: 0px;
box-shadow: none;
}
/* View Source Dialog overide */
.mx_Dialog_wrapper.mx_Dialog_viewsource .mx_Dialog {
padding-left: 10px;
padding-right: 10px;
2016-07-17 22:20:11 +02:00
}
.mx_Dialog {
background-color: $primary-bg-color;
color: $light-fg-color;
2015-11-14 01:14:41 +01:00
z-index: 4010;
2015-07-22 01:48:55 +02:00
font-weight: 300;
font-size: 15px;
position: relative;
2016-07-14 17:55:41 +02:00
padding-left: 58px;
padding-bottom: 36px;
2016-07-14 17:55:41 +02:00
width: 60%;
max-width: 704px;
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2);
2016-09-01 17:06:45 +02:00
max-height: 80%;
2016-09-02 15:39:38 +02:00
overflow-y: auto;
2015-07-23 10:33:10 +02:00
}
.mx_Dialog_background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
2017-01-16 03:10:45 +01:00
background-color: $dialog-background-bg-color;
2016-07-14 16:41:23 +02:00
opacity: 0.8;
}
2015-10-26 00:33:28 +01:00
.mx_Dialog_lightbox .mx_Dialog_background {
opacity: 0.85;
2017-01-16 03:10:45 +01:00
background-color: $lightbox-background-bg-color;
2015-10-26 00:33:28 +01:00
}
.mx_Dialog_lightbox .mx_Dialog {
border-radius: 0px;
2015-10-27 02:39:19 +01:00
background-color: transparent;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
2015-10-29 01:39:12 +01:00
pointer-events: none;
}
.mx_Dialog_cancelButton {
float: right;
margin-top: 5px;
margin-right: 5px;
cursor: pointer;
}
2015-07-22 01:48:55 +02:00
.mx_Dialog_content {
2016-07-14 17:55:41 +02:00
margin: 24px 58px 68px 0;
font-size: 14px;
color: $primary-fg-color;
2016-07-14 17:55:41 +02:00
word-wrap: break-word;
2015-07-22 01:48:55 +02:00
}
.mx_Dialog button, .mx_Dialog input[type="submit"] {
2015-07-22 01:48:55 +02:00
border: 0px;
height: 36px;
border-radius: 40px;
border: solid 1px $accent-color;
font-weight: 600;
font-size: 14px;
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
2016-07-14 17:55:41 +02:00
margin-left: 0px;
2015-07-22 02:02:06 +02:00
margin-right: 8px;
2016-07-14 17:55:41 +02:00
padding-left: 1.5em;
padding-right: 1.5em;
outline: none;
cursor: pointer;
color: $accent-color;
background-color: $primary-bg-color;
/* align images in buttons (eg spinners) */
vertical-align: middle;
}
.mx_Dialog button.mx_Dialog_primary, .mx_Dialog input[type="submit"].mx_Dialog_primary {
color: $accent-fg-color;
background-color: $accent-color;
2015-07-22 01:48:55 +02:00
}
.mx_Dialog button.danger, .mx_Dialog input[type="submit"].danger {
background-color: $warning-color;
border: solid 1px $warning-color;
}
.mx_Dialog button:disabled, .mx_Dialog input[type="submit"]:disabled {
background-color: $light-fg-color;
border: solid 1px $light-fg-color;
opacity: 0.7;
}
.mx_Dialog_title {
min-height: 16px;
2016-07-14 17:55:41 +02:00
padding-top: 40px;
font-weight: bold;
2016-07-14 17:55:41 +02:00
font-size: 22px;
line-height: 1.4;
color: $primary-fg-color;
}
.mx_Dialog_title.danger {
color: $warning-color;
}
.mx_TextInputDialog_label {
text-align: left;
padding-bottom: 12px;
}
.mx_TextInputDialog_input {
font-size: 15px;
2016-02-15 18:37:19 +01:00
border-radius: 3px;
border: 1px solid $input-border-color;
2016-02-15 18:37:19 +01:00
padding: 9px;
color: $primary-fg-color;
background-color: $primary-bg-color;
}
2016-04-01 02:52:13 +02:00
2016-08-28 00:59:15 +02:00
.mx_emojione {
2016-04-01 02:52:13 +02:00
height: 1em;
vertical-align: middle;
}
2016-05-28 08:50:21 +02:00
::-moz-selection {
background-color: $accent-color;
2017-01-17 03:00:34 +01:00
color: $selection-fg-color;
2016-05-28 08:50:21 +02:00
}
::selection {
background-color: $accent-color;
2017-01-17 03:00:34 +01:00
color: $selection-fg-color;
2016-05-28 08:50:21 +02:00
}
2016-08-01 14:46:14 +02:00
/** green button with rounded corners */
2016-08-28 00:59:15 +02:00
.mx_textButton {
color: $accent-fg-color;
background-color: $accent-color;
2016-08-01 14:46:14 +02:00
border-radius: 17px;
text-align: center;
padding-left: 1em;
padding-right: 1em;
cursor: pointer;
display: inline;
}
2016-11-02 18:48:47 +01:00
.mx_button_row {
margin-top: 69px;
}
2016-11-02 18:48:47 +01:00
.changelog_text {
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
}