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