Help with getting wider post content #1373
-
Environment informations
Expected behaviorI'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 Steps to reproduce the behaviorExample page: http://devblog.members1st.org/dotnet-core-rest-api-in-about-30-minutes/ Steps to reproduce:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
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 .page {
width: calc(100% - #{$right-sidebar-width-narrow});
} |
Beta Was this translation helpful? Give feedback.
-
See #1265 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
FYI: I followed the guide in this page and it worked perfectly: Add property bellow to the main.scss file:
Of course, we can specify any other value for the See #2093 |
Beta Was this translation helpful? Give feedback.
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.