Wow-what a difference a 3 week holiday makes haha.
Not sure where this topic should go but feel free to move it @timmse.
I have just had a chance to have a quick play with 1.5 and I am not overly sure why the root margin and padding settings have been removed from theme styles as it now adds unnecessary clicks and moves it backwards IMO, perhaps I am overlooking something or not seeing the new logic.
Example basic structure comparison
Full-width container with one inner container and then another section using a container (not full-width).
On 1.4<
Themestyles:
Root Margin 7.5 REM Top & Bottom (For consistent spacing between sections
Root Padding 2.5 REM Left & Right (To provide a gutter so the content does not touch the sides on lower breakpoints)
Container width set to 1300px
Workflow
Add Root Container (1 action / 1 click)
Set to full width - via stretch (1 action / 1 click)
Add inner container - 1300px - (+/- 1 action as an use the little helper to add the inner container when adding the root container)
Container - 1300px (1 action / 1 click)
Total 3 to 4 actions & 3 to 4 clicks to achieve basic structure.
On 1.5
Themestyles
Section Element
- Margin set to 7.5 REM (Top & Bottom)
- Padding set to 2.5 REM (Left & Right)
Container Element - Width 1300px
- Unable to add margin and padding in theme styles due to it applying to both inner and root
Structure
Add Section element which adds inner container (1 action / 1 click)
Add Container for the second section as do not need full width (1 action / 1 click)
Add container padding (1 action / 4 clicks)
Add Container Margin (1 action / 4 clicks)
Total 3 to 4 actions & 10 clicks to achieve basic structure.
I am guessing some would say why not use two section elements, but that just adds unnecessary full-width div which on large pages goes back to divception
I don’t mind the 2 new elements and think there is a benefit. I just do not understand why the root settings inside theme styles have been omitted and use the same logic that if it is a root element the root margin and padding apply and if it is not a root element then the theme element settings apply?
Again not sure I am overlooking something as it was a quick test…and interested to hear your thoughts on how I can get back to the more streamlined approach in 1.4 with the new elements of 1.5
Thanks
Mick