0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 13:10:14 +01:00
wagtail/client/scss/layouts/_account.scss
Lovelyfin00 b336536015 User - Reimplement Gravatar switching without JS
- Resolves #9972
- Avoids inline script for a solution that can be CSS/HTML only
- Use translatable alt text for when the default avatar is selected
- Relates to #1288 & #5247 (CSP compliance)
2023-02-07 21:18:31 +10:00

23 lines
456 B
SCSS

.avatar-panel {
&__image {
// do not display the user image if the clearing image is checked
.avatar-clear:checked ~ .avatar.avatar-span {
display: none;
}
// do not display the gravatar image when the input is not checked
.avatar-clear:not(:checked) ~ .avatar.gravatar {
display: none;
}
}
&__form {
label {
display: block;
padding: 0;
width: unset;
margin-bottom: 10px;
}
}
}