Hi, I have a major problem using breakpoints to manage adaptive stylings for my pages. Usually I try to open the XS view, activate the brush so (in theory) the CSS should only affect this size. I choose the item I want to style add the breakpoint and look out it’s displayed in the style tab. When I start styling it ALWAYS changes in the wrong sized windows or in both even if the breakpoint is specifically chosen for the XS view or at least for the size where it should be active. I don’t know what to do. Any suggestions?
Sorry for your troubles. Can you post a video? Or at least some screenshots?
Welcome to the forum @NotAnotherName.
Your general description sounds relative and reminds me of this previous thread regarding workflow.
Hey, here are some screenshots. The media query affects the small size BUT it also changes the font of the large size and it does not change back whatsoever.
Can you also post just one more screenshot? With everything the same as the last screenshot, scroll back up to the very top of the visual editor.
Just had an AhhHaa moment. Guess I needed to sleep on it.
You text changing at the larger screen size isn’t the result of adding styling to the larger screen, but rather taking styling away.
I’m assuming that you are creating the breakpoint styling by clicking on the ruleset -
.blog-header-logo and then within the Visual Editor clicking on the “Media Query” button and selecting the “smaller than 576” button. That has the effect of removing that styling from the logo on the larger screen. When you click the “Media Query” button Pinegrow doesn’t duplicate the rule, it just adds the media query to the rule. If you look at the header logo on a large screen you will see that it has a computed size of 16px - this is inherited from the 1rem set on the body.
So the correct way to do this is to first right-click the rule-set that you want to modify with your media query and select “duplicate” from the context menu.
Then choose the first rule from the list (this maintains cascade order on the stylesheet) and select your breakpoint. Style away and it will only impact the page you expect!
Let me know if this was helpful/solved your problem,
Cool, it worked, thanks!
Still have to ponder exactly why, but anyway thanks for the support.