Comments (4)
Ok, instead of deleting the rule I have now inserted
& > div:has(> div.hidden) {
display: none;
}
i.e. I closed the parenthesis )
. Right? I never worked with SASS before, and I donβt fully understand the purpose of this rule, but for the picture upload widget in djangocms-blog it works like this. I just created a PR with this change.
from djangocms-admin-style.
The div
reserves the space for an input field. If the input field is hidden, then there should not be space reserved for it. The rule is supposed to hide the div
if it has a direct child, which is hidden. Unfortunately, the space-reserving div
does not have a class or any other means of selecting it.
The closing parenthesis is correct. This rule only works on modern browsers, on older browsers it has no effect.
from djangocms-admin-style.
@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 & > div:has(> div.hidden
works for you?
from djangocms-admin-style.
Could you not use visibility: hidden? This does not remove the element from the flow
from djangocms-admin-style.
Related Issues (20)
- Django 3.1+ sidebar issues in django CMS modals HOT 1
- Server Error 500 when opened on localhost and debug is set to False HOT 1
- CommandError: App 'djangocms_admin_style' does not have migrations. HOT 1
- [feature] Switch to github actions
- Disable dark theme HOT 7
- djangocms-admin-style #nav-sidebar styles unreadable in dark mode HOT 8
- Gulp pipeline upgrade HOT 1
- Bumpversion isn't using brackets around the release date.
- Header box-shadow missing (CSS variables do not work in rgba) HOT 3
- djangocms-admin-style and django-admin-shortcuts
- Release 3.2.7 which add support for [email protected] HOT 4
- Documentation for building with gulp not working HOT 4
- Button layout/sizes with Django 4.2 and CMS 3.11 HOT 4
- "Django administration > Logout user" leads to a 405 error (Method Not Allowed (GET): /en/admin/logout/) HOT 3
- Help text for checkboxes not aligned/spaced properly HOT 3
- Documentation proposal for installation error of frontend packages HOT 3
- Sync pre-commit checks with django-cms HOT 2
- [bug] History summary row has no left padding HOT 1
- Add RTL support to django-admin-style modal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djangocms-admin-style.