2019-04-16 23:52:31 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2019-2024 New Vector Ltd.
|
2019-04-16 23:52:31 +08:00
|
|
|
|
2024-09-09 21:57:16 +08: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-04-16 23:52:31 +08:00
|
|
|
*/
|
|
|
|
|
2019-04-24 16:42:52 +08:00
|
|
|
.mx_Validation {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2019-04-16 23:52:31 +08:00
|
|
|
.mx_Validation_details {
|
2019-04-17 01:49:03 +08:00
|
|
|
padding-left: 20px;
|
|
|
|
margin: 0;
|
2019-04-16 23:52:31 +08:00
|
|
|
}
|
|
|
|
|
2019-04-19 04:22:37 +08:00
|
|
|
.mx_Validation_description + .mx_Validation_details {
|
|
|
|
margin: 1em 0 0;
|
|
|
|
}
|
|
|
|
|
2019-04-16 23:52:31 +08:00
|
|
|
.mx_Validation_detail {
|
2019-04-17 01:49:03 +08:00
|
|
|
position: relative;
|
2019-04-16 23:52:31 +08:00
|
|
|
font-weight: normal;
|
2019-04-17 01:49:03 +08:00
|
|
|
list-style: none;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
|
2019-04-19 04:22:37 +08:00
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2019-04-17 01:49:03 +08:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
top: 0;
|
|
|
|
left: -18px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
2019-04-16 23:52:31 +08:00
|
|
|
|
|
|
|
&.mx_Validation_valid {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $accent;
|
2019-04-17 01:49:03 +08:00
|
|
|
|
|
|
|
&::before {
|
2024-10-18 21:51:54 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/check.svg");
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2019-04-17 01:49:03 +08:00
|
|
|
}
|
2019-04-16 23:52:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Validation_invalid {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $alert;
|
2019-04-17 01:49:03 +08:00
|
|
|
|
|
|
|
&::before {
|
2024-10-02 18:06:17 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $alert;
|
2019-04-17 01:49:03 +08:00
|
|
|
}
|
2019-04-16 23:52:31 +08:00
|
|
|
}
|
|
|
|
}
|