-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS rule hides picture upload widget in blog #522
Comments
@MacLake Well spotted. It seems I introduced this... 🤦♂️ Can you create a PR? I think this needs a more specific selector that the hidden div is a direct child of the div. Can you check if |
Ok, instead of deleting the rule I have now inserted & > div:has(> div.hidden) {
display: none;
} i.e. I closed the parenthesis |
The The closing parenthesis is correct. This rule only works on modern browsers, on older browsers it has no effect. |
Could you not use visibility: hidden? This does not remove the element from the flow |
I use django-cms==3.11.5. With the CSS rules of djangocms-admin-style==3.3.0 the picture upload widget in the blog entries in djangocms-blog==2.0.7 are hidden.
The culprit is in djangocms_admin_style/sass/components/_forms.scss:
display: none;
hides the picture widget.I have created a fix in my fork, which just removes a
display: hidden;
but I don’t know if it breaks anything else, because I don’t know the idea of this rule.The text was updated successfully, but these errors were encountered: