Possibility to alter values over breakpoints upwards AND downwards
-
“Mobile first” is the established pattern for responsive web design and progressive web apps.
Greenshift on the other hand defines it the other way round, a “Desktop down” design approach. A block’s attribute by default is valid for the maximum breakpoint (Desktop) and all lower breakpoints. Then for lower resolutions you define the layout/style deviations. Or set values to a concrete value which on Desktop were unset (empty field).
- It is somehow ok to adapt oneself to that design workflow.
- But could you make it at least possible to also work the other way round, when one needs it?
Problem and proposed solution (4:52 video with audio):
?? Possibility to alter values over breakpoints upwards AND downwards Concept as text
Let’s say that I define my block source order (in the document outline) like this:
headline
img1
p1
img2
p2
img3
p3Then a web spider, a terminal web browser “see” them in a continuous stream and on mobile the user sees it pretty much that way too, all stacked above each other. If no flexbox or css-grid order attribute gets applied, then exactly as in source code order. That’s ideal, the semantic most truthful representation. But on higher breakpoints other presentation orders would be benefitial for the P blocks which describe what’s going on in the corresponding IMG blocks.
On MobileLandscape+ I want it:
headline
img1 p1
img2 p2
img3 p3On Desktop I want it:
headline
img1 img2 img3
p–1 p–2 p–3So I could easily achieve the spans by setting the headline column start to 1 and end to -1 to always span full width and setting the grid-container to 2 columns for MobileLandscape+ and 3 columns for Desktop. Easy cheesy.
But I want to also achieve the custom order for MobileLandscape+ with minimal editing effort, especially that you recently added support for negative order numbers too. Hence I wanted to do this:
Those native IMG and native P blocks are each are wrapped in a Greenshift container block acting as a grid item in their parent grid-container (because so far the Greenshift Image block and Advanced Text block do yet not have grid-item controls which would spare me that wrapping).
On Desktop I give those grid items a custom order which is different to the source order.
Then on MobileLandscape I wanted to erase the order num-field, and hoped that this sets the value on MobileLandscape to “unset” and in consequence also to all other breakpoints below that.
But sadly that’s not possible. Greenshifts’s business logic seems to insist strictly only a “Desktop down” design approach, and there is no workaround.
Could you consider to allow that an attribute can get a value, and on a lower breakpoint if you delete the value it is unset for its own breakpoint and all lower breakpoints, unless a lower breakpoint again sets a value?
Because without this you are forcing your users to BAD practices regarding semantic HTML and SEO:
- I need to make my HTML element source order like presented on Desktop (which in some layouts is NOT as a spider should see it!) and have the order attributes empty and give the smaller breakpoints their concrete values.
- A lot of extra effort.
- And bad code/semantics.
I hope that you will make this other approach possible. A concrete or null value should be possible all breakpoints downwards OR upwards until it encounters the next breakpoint with a concrete or null value.
- The topic ‘Possibility to alter values over breakpoints upwards AND downwards’ is closed to new replies.