bundle update
.bundle exec jekyll build
.I'd like to know how to adjust the width of the content such that the code blocks seen on this page show more content without scrolling.
Ironically, if I shrink the width of the browser window until it gets to the large and medium breakpoints, you can see a lot more of the text without scrolling. However, the x-large view is both a narrower column of text and bigger font, resulting in a hard to read post.
I found in _variables.scss
, that it has a series of $right-sidebar-width
variables, however, lowering those, which did help increase the content width, also seemed to negatively affect the left-sidebar (making it more squished) and I don't want to affect the left-sidebar, as it is fine the way it is.
Example page: http://devblog.members1st.org/dotnet-core-rest-api-in-about-30-minutes/
Repo: https://github.com/Members1stFCU/Members1stFCU.github.io
Steps to reproduce:
_config.yml
, _data/navigation.yml
, and some other non-style related changesHave a search through the closed issues, I've covered this one a few times before.
You need to alter the CSS some. If you look through _sass/_page.scss
you'll see I'm applying some negative margins on the right. That's "faking" some space to make sure an optional right sidebar fits. If you want the main content to expand into that space, removing the margins will do it.
.page {
width: calc(100% - #{$right-sidebar-width-narrow});
}
Thanks that is much better! I saw a mention about removing the sidebar padding, but thought that meant changing the sidebar width values in _variables.scss.
Most helpful comment
Have a search through the closed issues, I've covered this one a few times before.
You need to alter the CSS some. If you look through
_sass/_page.scss
you'll see I'm applying some negative margins on the right. That's "faking" some space to make sure an optional right sidebar fits. If you want the main content to expand into that space, removing the margins will do it.