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
Render widget groups in the back end with CSS grid #7087
Conversation
Questionable if we'd need other classes than Tbh, @m-vo's PR was flawless, it just needed some love and some edge-cases. |
Co-authored-by: Martin Auswöger <martin@auswoeger.com>
- do not use column-gap on handhelds (overflow issue) - do not use !important for .clr
Co-authored-by: Fritz Michael Gschwantner <fmg@inspiredminds.at>
- added `--widget-col-amount` - added `--widget-cols`
I think this PR is finished if the solution mentioned in #7087 (comment) is fine. The last commit Use custom properties for backend widgets and introduce w16-class introduces custom properties so people can modify their backend grid based on the following custom properties (This doesn't have to apply to the whole backend and can be controlled by adding a specific class to a parent).
|
On that note, may be it should be changed to mobile first? This would simplify the grid CSS even more. |
Could do that for the grid. I'd prefer having |
- also introduce `--widget-gap-rows` and `--widget-gap-cols`
I did the CS and did the following changes: Media queriesGrouped all media-queries so it's mobile first (not the split-button tho, doesn't make sense for that one) Custom propertiesAdded the following ones for more customization, see initial description for the other ones
|
- consider sub-palettes - consider `non-width` classes (always 100% width) - reset cbx styles properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice 👍
Approving tentatively (haven't tested everything exhaustively.)
79b6216
to
1ec3509
Compare
I like the concept a lot. Well done! |
- Also sort BC css
Co-authored-by: leofeyer <1192057+leofeyer@users.noreply.github.com>
Thank you @zoglo. |
🎉 |
Description ----------- Follow-up on #7087 ### Before <img width="847" alt="" src="https://github.com/contao/contao/assets/1192057/0acc60fa-e73b-4bc1-9a4f-57f49bc0e69c"> ### After <img width="782" alt="" src="https://github.com/contao/contao/assets/1192057/52deebc2-9863-45ca-af14-ad46c1ac7234"> Commits ------- c008fe2 Fix the `.nogrid` backwards compatibility layer b1eb3bc Use the :is() selector c23109b Convert `*:not` to `:not`
Reviving #2053 with this for Contao ^5.3 and the new introduced classes (w25, w33, w50, w66, w75).
Could be merged with additional changes and would be BC-compatible due to the
widget-group
wrapper.Keep in mind this is the reworked CSS-Grid based on @m-vo's solution for the backend widgets as discussed in the contao call for #1024.
Rewrite
Also grouped most media-queries so it's mobile first (not the split-button tho, doesn't make sense for that one)
Additional classes
Introcuded
.w16
on that occasionCustom properties
Following custom properties were added:
--widget-col-amount
(Defaults to 12)
--widget-cols
(Can be used to create more specific widget classes)
--widget-gap-rows
--widget-gap-cols