Skip to content
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

High specificity breaks two column layout between mobile and large viewports #33996

Closed
scheinercc opened this issue Aug 11, 2021 · 1 comment
Closed
Labels
CSS Styling Related to editor and front end styles, CSS-specific issues. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended

Comments

@scheinercc
Copy link
Contributor

flex-basis: calc(50% - 1em) !important;

Here I set the width of the image container on the left to 100px
image

Once I hit the above linked break point the 100px gets overwritten by 50% - 1em which does not work at all:
image

I get why !important is used here, but it makes it impossible to counter this in a sustainable way.

@sparklingrobots sparklingrobots added [Type] Bug An existing feature does not function as intended CSS Styling Related to editor and front end styles, CSS-specific issues. Needs Testing Needs further testing to be confirmed. labels Aug 11, 2021
@stacimc stacimc added [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed and removed Needs Testing Needs further testing to be confirmed. labels Aug 28, 2021
@stacimc
Copy link
Contributor

stacimc commented Aug 28, 2021

Thanks for reporting this, @scheinercc. To give you some context, this behavior at mid-range viewports is currently necessary in order to avoid issues with column wrapping -- but adding the ability to customize column widths at different viewports is being very actively discussed.

You can check out this existing issue: #13363, where column behavior in particular is discussed. There's also #19909 along the same lines.

I'm going to close this issue as a duplicate, as it appears the linked issues cover this specific well.

@stacimc stacimc closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Styling Related to editor and front end styles, CSS-specific issues. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants