2019-01-23 09:28:23 +08:00
|
|
|
/*
|
|
|
|
Copyright 2019 New Vector Ltd
|
2020-01-28 06:27:11 +08:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
2019-01-23 09:28:23 +08: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_AuthBody {
|
2020-05-28 01:33:55 +08:00
|
|
|
width: 500px;
|
2022-11-22 14:58:37 +08:00
|
|
|
font-size: $font-14px;
|
|
|
|
color: $primary-content;
|
2021-11-08 19:50:53 +08:00
|
|
|
background-color: $background;
|
2019-01-23 09:28:23 +08:00
|
|
|
border-radius: 0 4px 4px 0;
|
2022-11-22 14:58:37 +08:00
|
|
|
padding: 50px 32px;
|
2019-01-23 09:28:23 +08:00
|
|
|
box-sizing: border-box;
|
2022-11-22 14:58:37 +08:00
|
|
|
min-height: 600px;
|
|
|
|
|
|
|
|
b {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
2019-01-24 03:11:01 +08:00
|
|
|
|
2022-05-13 22:10:22 +08:00
|
|
|
&.mx_AuthBody_flex {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2022-08-01 15:31:14 +08:00
|
|
|
h1 {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-24px;
|
2022-08-01 15:31:14 +08:00
|
|
|
font-weight: $font-semi-bold;
|
2022-11-22 14:58:37 +08:00
|
|
|
margin-bottom: $spacing-20;
|
|
|
|
margin-top: $spacing-24;
|
2019-03-07 00:33:15 +08:00
|
|
|
color: $authpage-primary-color;
|
|
|
|
}
|
2019-01-26 05:08:28 +08:00
|
|
|
|
2022-08-01 15:31:14 +08:00
|
|
|
h2 {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-14px;
|
2022-08-01 15:31:14 +08:00
|
|
|
font-weight: $font-semi-bold;
|
2021-01-29 21:04:05 +08:00
|
|
|
color: $authpage-secondary-color;
|
2019-03-07 00:33:15 +08:00
|
|
|
}
|
2019-02-13 22:24:03 +08:00
|
|
|
|
2022-08-01 15:31:14 +08:00
|
|
|
h2.mx_AuthBody_centered {
|
2020-11-24 20:09:11 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2019-03-07 00:33:15 +08:00
|
|
|
a:link,
|
|
|
|
a:hover,
|
|
|
|
a:visited {
|
2019-08-29 22:20:14 +08:00
|
|
|
@mixin mx_Dialog_link;
|
2019-03-07 00:33:15 +08:00
|
|
|
}
|
2019-02-13 22:24:03 +08:00
|
|
|
|
2022-11-22 14:58:37 +08:00
|
|
|
fieldset {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_icon {
|
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_lockIcon {
|
|
|
|
height: 29px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_text {
|
|
|
|
margin-bottom: $spacing-48;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"] {
|
2019-03-07 00:33:15 +08:00
|
|
|
color: $authpage-primary-color;
|
|
|
|
}
|
2019-02-13 22:24:03 +08:00
|
|
|
|
2019-03-07 00:33:15 +08:00
|
|
|
.mx_Field input,
|
|
|
|
.mx_Field select {
|
|
|
|
color: $authpage-primary-color;
|
2021-11-08 19:50:53 +08:00
|
|
|
background-color: $background;
|
2019-03-07 00:33:15 +08:00
|
|
|
}
|
|
|
|
|
2019-07-10 23:55:03 +08:00
|
|
|
.mx_Field_labelAlwaysTopLeft label,
|
2019-07-11 20:14:20 +08:00
|
|
|
.mx_Field select + label /* Always show a select's label on top to not collide with the value */,
|
2019-03-07 00:28:09 +08:00
|
|
|
.mx_Field input:focus + label,
|
|
|
|
.mx_Field input:not(:placeholder-shown) + label,
|
|
|
|
.mx_Field textarea:focus + label,
|
2019-07-10 23:55:03 +08:00
|
|
|
.mx_Field textarea:not(:placeholder-shown) + label {
|
2021-11-08 19:50:53 +08:00
|
|
|
background-color: $background;
|
2019-03-07 00:28:09 +08:00
|
|
|
}
|
2019-01-26 05:08:28 +08:00
|
|
|
|
2019-03-07 00:33:15 +08:00
|
|
|
input.error {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $alert;
|
2019-03-07 00:33:15 +08:00
|
|
|
}
|
|
|
|
|
2022-11-22 14:58:37 +08:00
|
|
|
.mx_Login_submit {
|
|
|
|
height: 33px;
|
|
|
|
margin-top: $spacing-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ErrorMessage {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
|
2019-03-07 00:33:15 +08:00
|
|
|
.mx_Field input {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2019-03-07 00:43:04 +08:00
|
|
|
|
2019-03-07 22:57:58 +08:00
|
|
|
.mx_Field_select::before {
|
|
|
|
background-color: $authpage-primary-color;
|
|
|
|
}
|
|
|
|
|
2019-03-07 01:53:44 +08:00
|
|
|
.mx_Dropdown {
|
|
|
|
color: $authpage-primary-color;
|
|
|
|
}
|
|
|
|
|
2019-03-07 00:43:04 +08:00
|
|
|
.mx_Dropdown_arrow {
|
|
|
|
background: $authpage-primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dropdown_menu {
|
2021-11-08 19:50:53 +08:00
|
|
|
background-color: $background;
|
2019-03-07 00:43:04 +08:00
|
|
|
|
|
|
|
.mx_Dropdown_option_highlight {
|
|
|
|
background-color: $authpage-focus-bg-color;
|
|
|
|
}
|
|
|
|
}
|
2019-02-21 22:41:42 +08:00
|
|
|
}
|
|
|
|
|
2022-11-22 14:58:37 +08:00
|
|
|
.mx_AuthBody_did-not-receive {
|
|
|
|
align-items: center;
|
|
|
|
color: $secondary-content;
|
|
|
|
display: flex;
|
|
|
|
gap: $spacing-8;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
margin-top: $spacing-24;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_did-not-receive--centered {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_resend-button {
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: $accent;
|
|
|
|
display: flex;
|
|
|
|
gap: $spacing-4;
|
|
|
|
padding: 4px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $system;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_emailPromptIcon {
|
|
|
|
width: 57px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_emailPromptIcon--shifted {
|
|
|
|
margin-bottom: -17px; // Prevent layout jump by relative positioning.
|
|
|
|
position: relative;
|
|
|
|
top: -17px; // This icon is higher than the other icons. Shift up to prevent icon jumping.
|
|
|
|
width: 57px;
|
|
|
|
}
|
|
|
|
|
2019-01-31 02:46:40 +08:00
|
|
|
.mx_AuthBody_fieldRow {
|
2019-01-30 05:52:12 +08:00
|
|
|
display: flex;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2019-03-01 22:39:09 +08:00
|
|
|
.mx_AuthBody_fieldRow > .mx_Field {
|
2019-01-30 05:52:12 +08:00
|
|
|
margin: 0 5px;
|
|
|
|
}
|
|
|
|
|
2019-03-06 19:11:24 +08:00
|
|
|
.mx_AuthBody_fieldRow > .mx_Field:first-child {
|
2019-01-30 05:52:12 +08:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2019-03-06 19:11:24 +08:00
|
|
|
.mx_AuthBody_fieldRow > .mx_Field:last-child {
|
2019-01-30 05:52:12 +08:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-04-15 19:21:49 +08:00
|
|
|
.mx_AuthBody_paddedFooter {
|
2022-07-27 21:39:29 +08:00
|
|
|
height: 80px; /* height of the submit button + register link */
|
2020-04-15 19:21:49 +08:00
|
|
|
padding-top: 28px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.mx_AuthBody_paddedFooter_title {
|
|
|
|
margin-top: 16px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2020-07-15 17:44:20 +08:00
|
|
|
|
|
|
|
.mx_InlineSpinner img {
|
|
|
|
vertical-align: sub;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2020-04-15 19:21:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_paddedFooter_subtitle {
|
|
|
|
margin-top: 8px;
|
|
|
|
font-size: $font-10px;
|
|
|
|
line-height: $font-14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-31 02:46:40 +08:00
|
|
|
.mx_AuthBody_changeFlow {
|
2019-01-24 04:30:09 +08:00
|
|
|
display: block;
|
|
|
|
text-align: center;
|
2020-11-23 19:28:49 +08:00
|
|
|
|
|
|
|
> a {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-24 20:09:11 +08:00
|
|
|
.mx_SSOButtons + .mx_AuthBody_changeFlow {
|
|
|
|
margin-top: 24px;
|
2019-01-24 04:30:09 +08:00
|
|
|
}
|
2019-02-27 19:21:35 +08:00
|
|
|
|
|
|
|
.mx_AuthBody_spinner {
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
2020-01-30 18:18:14 +08:00
|
|
|
|
2020-05-28 01:33:55 +08:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_AuthBody {
|
|
|
|
border-radius: 4px;
|
|
|
|
width: auto;
|
|
|
|
max-width: 500px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
2020-01-30 18:18:14 +08:00
|
|
|
}
|