mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 13:10:14 +01:00
b336536015
- 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)
23 lines
456 B
SCSS
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;
|
|
}
|
|
}
|
|
}
|