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