Files
element-web/res/css/views/elements/_Validation.pcss
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-04-16 16:52:31 +01:00
/*
2024-09-09 14:57:16 +01:00
Copyright 2019-2024 New Vector Ltd.
2019-04-16 16:52:31 +01:00
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
2024-09-09 14:57:16 +01:00
Please see LICENSE files in the repository root for full details.
2019-04-16 16:52:31 +01:00
*/
2019-04-24 09:42:52 +01:00
.mx_Validation {
position: relative;
max-width: 200px;
2019-04-24 09:42:52 +01:00
}
2019-04-16 16:52:31 +01:00
.mx_Validation_details {
padding-left: 20px;
margin: 0;
2019-04-16 16:52:31 +01:00
}
2019-04-18 21:22:37 +01:00
.mx_Validation_description + .mx_Validation_details {
margin: 1em 0 0;
}
2019-04-16 16:52:31 +01:00
.mx_Validation_detail {
position: relative;
2019-04-16 16:52:31 +01:00
font-weight: normal;
list-style: none;
margin-bottom: 0.5em;
2019-04-18 21:22:37 +01:00
&:last-child {
margin-bottom: 0;
}
&::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 16:52:31 +01:00
&.mx_Validation_valid {
2021-11-11 14:37:29 +01:00
color: $accent;
&::before {
mask-image: url("@vector-im/compound-design-tokens/icons/check.svg");
2021-11-11 14:37:29 +01:00
background-color: $accent;
}
2019-04-16 16:52:31 +01:00
}
&.mx_Validation_invalid {
2021-11-11 14:37:29 +01:00
color: $alert;
&::before {
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
2021-11-11 14:37:29 +01:00
background-color: $alert;
}
2019-04-16 16:52:31 +01:00
}
}