mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 01:45:19 +03:00
d5db131eef
* Spike AXE A11Y testing in Cypress * Fix NewRoomIntro breaking html/aria list rules * Fix HeaderButtons breaking aria role semantics rules * missing type * Switch left panel from aside to nav and include space panel * Give the page a main heading of the room name when viewing a room * Use header landmark on RoomHeader * Improve aria attributes on composer when autocomplete is closed * Fix aria-owns on RoomHeader * Give Spinner an aria role * Give server picker help button an aria label * Improve auth aria attributes and semantics * Improve heading semantics in use case selection screen * Fix autocomplete attribute to be valid * Fix heading semantics on login page * Improve Cypress axe testing * Add axe tests * Stop synapse after the timeline tests * Await spinners to fade before percy snapshotting timeline tests * Improve naming of plugin * Update snapshots * Fix accidental heading change * Fix double synapse stoppage * Fix Cypress timeline avatar assertions to be DPI agnostic * Fix aria attributes on date separators * delint * Update snapshots * Revert style change * Skip redundant call
168 lines
3.6 KiB
Text
168 lines
3.6 KiB
Text
/*
|
|
Copyright 2019 New Vector Ltd
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
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.
|
|
*/
|
|
|
|
.mx_AuthBody {
|
|
width: 500px;
|
|
font-size: $font-12px;
|
|
color: $authpage-secondary-color;
|
|
background-color: $background;
|
|
border-radius: 0 4px 4px 0;
|
|
padding: 25px 60px;
|
|
box-sizing: border-box;
|
|
|
|
&.mx_AuthBody_flex {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
h1 {
|
|
font-size: $font-24px;
|
|
font-weight: $font-semi-bold;
|
|
margin-top: 8px;
|
|
color: $authpage-primary-color;
|
|
}
|
|
|
|
h2 {
|
|
font-size: $font-14px;
|
|
font-weight: $font-semi-bold;
|
|
color: $authpage-secondary-color;
|
|
}
|
|
|
|
h2.mx_AuthBody_centered {
|
|
text-align: center;
|
|
}
|
|
|
|
a:link,
|
|
a:hover,
|
|
a:visited {
|
|
@mixin mx_Dialog_link;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
color: $authpage-primary-color;
|
|
}
|
|
|
|
.mx_Field input,
|
|
.mx_Field select {
|
|
color: $authpage-primary-color;
|
|
background-color: $background;
|
|
}
|
|
|
|
.mx_Field_labelAlwaysTopLeft label,
|
|
.mx_Field select + label /* Always show a select's label on top to not collide with the value */,
|
|
.mx_Field input:focus + label,
|
|
.mx_Field input:not(:placeholder-shown) + label,
|
|
.mx_Field textarea:focus + label,
|
|
.mx_Field textarea:not(:placeholder-shown) + label {
|
|
background-color: $background;
|
|
}
|
|
|
|
input.error {
|
|
color: $alert;
|
|
}
|
|
|
|
.mx_Field input {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.mx_Field_select::before {
|
|
background-color: $authpage-primary-color;
|
|
}
|
|
|
|
.mx_Dropdown {
|
|
color: $authpage-primary-color;
|
|
}
|
|
|
|
.mx_Dropdown_arrow {
|
|
background: $authpage-primary-color;
|
|
}
|
|
|
|
.mx_Dropdown_menu {
|
|
background-color: $background;
|
|
|
|
.mx_Dropdown_option_highlight {
|
|
background-color: $authpage-focus-bg-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_AuthBody_fieldRow {
|
|
display: flex;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.mx_AuthBody_fieldRow > .mx_Field {
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.mx_AuthBody_fieldRow > .mx_Field:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.mx_AuthBody_fieldRow > .mx_Field:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.mx_AuthBody_paddedFooter {
|
|
height: 80px; /* height of the submit button + register link */
|
|
padding-top: 28px;
|
|
text-align: center;
|
|
|
|
.mx_AuthBody_paddedFooter_title {
|
|
margin-top: 16px;
|
|
font-size: $font-15px;
|
|
line-height: $font-24px;
|
|
|
|
.mx_InlineSpinner img {
|
|
vertical-align: sub;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.mx_AuthBody_paddedFooter_subtitle {
|
|
margin-top: 8px;
|
|
font-size: $font-10px;
|
|
line-height: $font-14px;
|
|
}
|
|
}
|
|
|
|
.mx_AuthBody_changeFlow {
|
|
display: block;
|
|
text-align: center;
|
|
|
|
> a {
|
|
font-weight: $font-semi-bold;
|
|
}
|
|
}
|
|
|
|
.mx_SSOButtons + .mx_AuthBody_changeFlow {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.mx_AuthBody_spinner {
|
|
margin: 1em 0;
|
|
}
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
.mx_AuthBody {
|
|
border-radius: 4px;
|
|
width: auto;
|
|
max-width: 500px;
|
|
padding: 10px;
|
|
}
|
|
}
|