2019-01-23 04:28:23 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-01-28 01:27:11 +03:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2019 New Vector Ltd
|
2019-01-23 04:28:23 +03:00
|
|
|
|
2024-09-09 16:57:16 +03:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-01-23 04:28:23 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_AuthBody {
|
2020-05-27 20:33:55 +03:00
|
|
|
width: 500px;
|
2022-11-25 10:49:11 +03:00
|
|
|
font-size: $font-12px;
|
|
|
|
color: $authpage-secondary-color;
|
2021-11-08 14:50:53 +03:00
|
|
|
background-color: $background;
|
2019-01-23 04:28:23 +03:00
|
|
|
border-radius: 0 4px 4px 0;
|
2022-11-25 10:49:11 +03:00
|
|
|
padding: 25px 60px;
|
2019-01-23 04:28:23 +03:00
|
|
|
box-sizing: border-box;
|
2022-11-22 09:58:37 +03:00
|
|
|
|
|
|
|
b {
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-11-22 09:58:37 +03:00
|
|
|
}
|
2019-01-23 22:11:01 +03:00
|
|
|
|
2022-05-13 17:10:22 +03:00
|
|
|
&.mx_AuthBody_flex {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2022-08-01 10:31:14 +03:00
|
|
|
h1 {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-24px;
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-11-25 10:49:11 +03:00
|
|
|
margin-top: $spacing-8;
|
2019-03-06 19:33:15 +03:00
|
|
|
color: $authpage-primary-color;
|
|
|
|
}
|
2019-01-26 00:08:28 +03:00
|
|
|
|
2022-08-01 10:31:14 +03:00
|
|
|
h2 {
|
2023-06-29 13:30:25 +03:00
|
|
|
font: var(--cpd-font-body-md-semibold);
|
2021-01-29 16:04:05 +03:00
|
|
|
color: $authpage-secondary-color;
|
2019-03-06 19:33:15 +03:00
|
|
|
}
|
2019-02-13 17:24:03 +03:00
|
|
|
|
2022-08-01 10:31:14 +03:00
|
|
|
h2.mx_AuthBody_centered {
|
2020-11-24 15:09:11 +03:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2019-03-06 19:33:15 +03:00
|
|
|
a:link,
|
|
|
|
a:hover,
|
|
|
|
a:visited {
|
2023-05-05 12:01:54 +03:00
|
|
|
color: $accent;
|
|
|
|
text-decoration: none;
|
2019-03-06 19:33:15 +03:00
|
|
|
}
|
2019-02-13 17:24:03 +03:00
|
|
|
|
2022-11-22 09:58:37 +03:00
|
|
|
fieldset {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_icon {
|
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_lockIcon {
|
2023-03-08 13:11:01 +03:00
|
|
|
color: $secondary-content;
|
|
|
|
height: 32px;
|
2024-01-02 21:56:39 +03:00
|
|
|
margin-bottom: -3px; /* tweak to align all icons on different forgot password steps */
|
2022-11-22 09:58:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_text {
|
|
|
|
margin-bottom: $spacing-48;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"] {
|
2019-03-06 19:33:15 +03:00
|
|
|
color: $authpage-primary-color;
|
|
|
|
}
|
2019-02-13 17:24:03 +03:00
|
|
|
|
2022-11-25 10:49:11 +03:00
|
|
|
.mx_Field label {
|
|
|
|
color: $authpage-secondary-color;
|
|
|
|
}
|
|
|
|
|
2019-03-06 19:33:15 +03:00
|
|
|
.mx_Field input,
|
|
|
|
.mx_Field select {
|
|
|
|
color: $authpage-primary-color;
|
2021-11-08 14:50:53 +03:00
|
|
|
background-color: $background;
|
2019-03-06 19:33:15 +03:00
|
|
|
}
|
|
|
|
|
2019-07-10 18:55:03 +03:00
|
|
|
.mx_Field_labelAlwaysTopLeft label,
|
2019-07-11 15:14:20 +03:00
|
|
|
.mx_Field select + label /* Always show a select's label on top to not collide with the value */,
|
2019-03-06 19:28:09 +03:00
|
|
|
.mx_Field input:focus + label,
|
|
|
|
.mx_Field input:not(:placeholder-shown) + label,
|
|
|
|
.mx_Field textarea:focus + label,
|
2019-07-10 18:55:03 +03:00
|
|
|
.mx_Field textarea:not(:placeholder-shown) + label {
|
2021-11-08 14:50:53 +03:00
|
|
|
background-color: $background;
|
2019-03-06 19:28:09 +03:00
|
|
|
}
|
2019-01-26 00:08:28 +03:00
|
|
|
|
2019-03-06 19:33:15 +03:00
|
|
|
input.error {
|
2021-11-11 16:37:29 +03:00
|
|
|
color: $alert;
|
2019-03-06 19:33:15 +03:00
|
|
|
}
|
|
|
|
|
2022-11-22 09:58:37 +03:00
|
|
|
.mx_Login_submit {
|
2022-11-25 10:49:11 +03:00
|
|
|
height: 32px;
|
2022-11-22 09:58:37 +03:00
|
|
|
margin-top: $spacing-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ErrorMessage {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
|
2019-03-06 19:33:15 +03:00
|
|
|
.mx_Field input {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2019-03-06 19:43:04 +03:00
|
|
|
|
2019-03-07 17:57:58 +03:00
|
|
|
.mx_Field_select::before {
|
|
|
|
background-color: $authpage-primary-color;
|
|
|
|
}
|
|
|
|
|
2019-03-06 20:53:44 +03:00
|
|
|
.mx_Dropdown {
|
|
|
|
color: $authpage-primary-color;
|
|
|
|
}
|
|
|
|
|
2019-03-06 19:43:04 +03:00
|
|
|
.mx_Dropdown_arrow {
|
|
|
|
background: $authpage-primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dropdown_menu {
|
2021-11-08 14:50:53 +03:00
|
|
|
background-color: $background;
|
2019-03-06 19:43:04 +03:00
|
|
|
|
|
|
|
.mx_Dropdown_option_highlight {
|
|
|
|
background-color: $authpage-focus-bg-color;
|
|
|
|
}
|
|
|
|
}
|
2019-02-21 17:41:42 +03:00
|
|
|
}
|
|
|
|
|
2022-11-25 10:49:11 +03:00
|
|
|
/* specialisation for password reset views */
|
2022-12-06 12:01:25 +03:00
|
|
|
.mx_AuthBody.mx_AuthBody_forgot-password {
|
2023-06-29 13:30:25 +03:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2022-11-25 10:49:11 +03:00
|
|
|
color: $primary-content;
|
|
|
|
padding: 50px 32px;
|
|
|
|
min-height: 600px;
|
|
|
|
|
|
|
|
h1 {
|
2022-12-06 12:01:25 +03:00
|
|
|
margin: $spacing-24 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_button-container {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Login_submit {
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-12-06 12:01:25 +03:00
|
|
|
margin: 0 0 $spacing-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_text {
|
|
|
|
margin-bottom: $spacing-32;
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0 0 $spacing-8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_sign-in-instead-button {
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-12-06 12:01:25 +03:00
|
|
|
padding: $spacing-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_fieldRow {
|
|
|
|
margin-bottom: $spacing-24;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton.mx_AccessibleButton_hasKind {
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: default;
|
2022-12-12 14:24:14 +03:00
|
|
|
opacity: 0.4;
|
2022-12-06 12:01:25 +03:00
|
|
|
}
|
2022-11-25 10:49:11 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-22 09:58:37 +03:00
|
|
|
.mx_AuthBody_did-not-receive {
|
|
|
|
align-items: center;
|
|
|
|
color: $secondary-content;
|
|
|
|
display: flex;
|
|
|
|
gap: $spacing-8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_resend-button {
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: $accent;
|
|
|
|
display: flex;
|
|
|
|
gap: $spacing-4;
|
2022-12-06 12:01:25 +03:00
|
|
|
padding: $spacing-4;
|
2022-11-22 09:58:37 +03:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $system;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_emailPromptIcon {
|
|
|
|
width: 57px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_emailPromptIcon--shifted {
|
2024-01-02 21:56:39 +03:00
|
|
|
margin-bottom: -17px; /* Prevent layout jump by relative positioning. */
|
2022-11-22 09:58:37 +03:00
|
|
|
position: relative;
|
2024-01-02 21:56:39 +03:00
|
|
|
top: -17px; /* This icon is higher than the other icons. Shift up to prevent icon jumping. */
|
2022-11-22 09:58:37 +03:00
|
|
|
width: 57px;
|
|
|
|
}
|
|
|
|
|
2019-01-30 21:46:40 +03:00
|
|
|
.mx_AuthBody_fieldRow {
|
2019-01-30 00:52:12 +03:00
|
|
|
display: flex;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2019-03-01 17:39:09 +03:00
|
|
|
.mx_AuthBody_fieldRow > .mx_Field {
|
2019-01-30 00:52:12 +03:00
|
|
|
margin: 0 5px;
|
|
|
|
}
|
|
|
|
|
2019-03-06 14:11:24 +03:00
|
|
|
.mx_AuthBody_fieldRow > .mx_Field:first-child {
|
2019-01-30 00:52:12 +03:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2019-03-06 14:11:24 +03:00
|
|
|
.mx_AuthBody_fieldRow > .mx_Field:last-child {
|
2019-01-30 00:52:12 +03:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-04-15 14:21:49 +03:00
|
|
|
.mx_AuthBody_paddedFooter {
|
2022-07-27 16:39:29 +03:00
|
|
|
height: 80px; /* height of the submit button + register link */
|
2020-04-15 14:21:49 +03:00
|
|
|
padding-top: 28px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.mx_AuthBody_paddedFooter_title {
|
2022-12-06 12:01:25 +03:00
|
|
|
margin-top: $spacing-16;
|
2020-04-15 14:21:49 +03:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2020-07-15 12:44:20 +03:00
|
|
|
|
|
|
|
.mx_InlineSpinner img {
|
|
|
|
vertical-align: sub;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2020-04-15 14:21:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AuthBody_paddedFooter_subtitle {
|
2022-12-06 12:01:25 +03:00
|
|
|
margin-top: $spacing-8;
|
2020-04-15 14:21:49 +03:00
|
|
|
font-size: $font-10px;
|
|
|
|
line-height: $font-14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-30 21:46:40 +03:00
|
|
|
.mx_AuthBody_changeFlow {
|
2019-01-23 23:30:09 +03:00
|
|
|
display: block;
|
|
|
|
text-align: center;
|
2020-11-23 14:28:49 +03:00
|
|
|
|
|
|
|
> a {
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2020-11-23 14:28:49 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-24 15:09:11 +03:00
|
|
|
.mx_SSOButtons + .mx_AuthBody_changeFlow {
|
2022-12-06 12:01:25 +03:00
|
|
|
margin-top: $spacing-24;
|
2019-01-23 23:30:09 +03:00
|
|
|
}
|
2019-02-27 14:21:35 +03:00
|
|
|
|
|
|
|
.mx_AuthBody_spinner {
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
2020-01-30 13:18:14 +03:00
|
|
|
|
2020-05-27 20:33:55 +03:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_AuthBody {
|
|
|
|
border-radius: 4px;
|
|
|
|
width: auto;
|
|
|
|
max-width: 500px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
2020-01-30 13:18:14 +03:00
|
|
|
}
|