How to change the max-width of distill posts? #2646
Replies: 3 comments 3 replies
-
The distill layout is not that simple to modify. It is not only about changing _sass/_distill.scss, but also some variables inside assets/js/distillpub/overrides.js, assets/js/distillpub/template.v2.js, and/or assets/js/distillpub/transforms.v2.js. And the template source is not well documented. So, tbh, you'll have to do a lot of trial and error to find where exactly this change can be made and if it doesn't mess the overall layout of the post. But this would be a very good addition to our template if you manage to solve it and would be willing to submit a PR. |
Beta Was this translation helpful? Give feedback.
-
So I had a quick look at how the template handles the width of the content and it seems that it is all based on a grid system The Depending on the width of your screen, the allocation of the column changes. That's what the rules here describe: This all seems to be defined in the Now I'm really not a CSS guy, I'm not sure how all of that can be tweaked into a user controllable width but maybe you can have some ideas of how to approach things. |
Beta Was this translation helpful? Give feedback.
-
I could successfully save the CSS file that is applied to my distill blog post by clicking the ìnline` button here: And then saving the style: I can then add that stylesheet to my blog post, effectively overriding the default distill style. Then modifying the serie of So maybe "all" there's is to do for al-folio is to have a way to override that |
Beta Was this translation helpful? Give feedback.
-
This issue mentions that a way to change the width of distill posts (since they do not respond to the global website's
max-width
) is to:I'd like to make my distill posts larger but I'm not sure how. I tried to fiddle with the
width
parameters of_distill.scss
but this did not give the expected result (either no change or the whole page was pushed to the left i.e. was not centered anymore).How can we change the width of distill posts?
Beta Was this translation helpful? Give feedback.
All reactions