Closed tisto closed 6 months ago
I think we actually need 3 image sizes (not counting small, medium):
We actually need this in all our EEA themes, it was recently brought to my attention, and I think it's a generic enough use case that it should be solved in Volto, but of course, I may be wrong.
@tisto I'm going to start looking at how to implement this, I am on Plone's slack channel and discord if anybody wants to follow up or help with this.
//styleName: button/bm; font-family: Metropolis; font-size: 16px; font-style: normal; font-weight: 500; line-height: 24px; letter-spacing: 0.006em; text-align: left;
The Quanta text container has a width of 660px:
@sneridagh @ichim-david @tiberiuichim I just pasted the Quanta Typography and Text-Container width in the comment above.
@sneridagh @tiberiuichim @ichim-david I played around a bit and set the width to 660px, font-size to 16px and line-height to 24px:
Does not look bad IMHO. We have to check how it looks with the Metropolis font.
@sneridagh @tisto it's impossible to fake the text container by simply doing something like this: .content-area { h1, h2, h3, h4, h5, h6, p, ol, ul { max-width: 660px; margin-left: auto !important; margin-right: auto !important; } } There are plenty of examples where having rules for the "text tags" will break several layouts. For example:
What is feasible is the following:
@ichim-david thanks for working on this. Here are my thoughts:
Having feedback from our previous and current projects, we got to develop a layout that we think that is modern and follows current trends and could be the default for Plone 6 Volto.
> *
rule.This was implemented as an addon: https://github.com/kitconcept/volto-light-theme/
Is your feature request related to a problem? Please describe.
The default width of a text block in Volto is 1127px (exact width depends on device of course). This means that something like 150-160 characters per line is shown.
The recommended line length is between 45-75 characters for readability and accessibility.
See e.g.:
In addition, it seems 16px is considered the min font size for accessibility and readability these days (I need to make a bit more research on this). See:
This is how a default page in Volto looks like today:
-> 156 characters per line
When we increase the font size to 16px. The page looks like this:
-> 137 characters per line
When we set the width of the text block to 650px, in addition to using 16px font size, we get:
-> 73 characters per line
This would bring us to a text-line length that is considered readable and accessible.
We actually did this for all our client projects. Just because allowing editors to create text over the full page with will lead to unreadable text.
Describe the solution you'd like
Increase the body text font size to 16px (increase headlines and line-height accordingly) and restrict the text width to 650px (or less on mobile devices).
Describe alternatives you've considered
Wordpress uses the narrow text width by default and in addition, allows to set the text width to wide and even full-width. We could make this possible in Volto as well. Though, as said, personally I wouldn't allow options that lead to pages with text that is hard to read and not accessible.
Additional context
We have to take into account that pages might want to use portlets or sidebars. Though, since we currently do not support these in Volto, we can take care of this when we add slots.
We are currently experimenting with making sidebars work with narrowed text blocks in a client project. One option is to attach the sidebar to the right side. Though, that won't solve the collision problems when you use full-width elements (pages, slideshows, carousels, parallax) on pages with a sidebar.
As said, those are problems we can solve when we add slots to Volto.
Screenshot Full Page (16px, 650px text container)
Quanta Typography
//styleName: button/bm; font-family: Metropolis; font-size: 16px; font-style: normal; font-weight: 500; line-height: 24px; letter-spacing: 0.006em; text-align: left;
Quanta Text Container
The Quanta text container has a width of 660px: