-
Notifications
You must be signed in to change notification settings - Fork 25.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wider text area in the blog posts/pages #74
Comments
Take a look at the |
Is main.css auto-generated or can I modify this? I'm looking here in the main.scss file
I'm not sure I get what grid etc is doing and how it affects the width. Please elaborate. On Fri, Aug 15, 2014 at 2:24 AM, Michael Rose notifications@github.com
-Florian Rosenberg |
No you can't edit Basically I'm using a 12 column grid. The |
Cool thanks. I got it now. On Fri, Aug 15, 2014 at 1:00 PM, Michael Rose notifications@github.com
-Florian Rosenberg |
Sorry to zombie an old post, but I wanted to clarify something. (I'm also a Jekyll and css noob, sorry :(.) Is changing variable Or do we also need to update all the If I just change I sort of just gave up and reverted everything back. Would be great to fully understand how to shift the width. Thanks! |
Changing You need to play with the grid mixins found in
There's also some media queries mixed in there to change the amount of columns You'll see below it goes from 10 columns on mobile to 6 columns, to 5 columns at the largest screen size. I did this to make the typographic measure shorter since long lines of text are harder for the eye to track and read. #main {
counter-reset: captions;
@include container;
@include clearfix;
clear: both;
margin-top: 2em;
h1 {
margin-top: 0;
}
.post,
.page {
@include container;
@include grid(12,10);
@include prefix(12,1);
@include suffix(12,1);
margin-bottom: 2em;
@media #{$small} {
@include grid(12,8);
@include prefix(12,0);
@include suffix(12,0);
}
@media #{$large} {
@include grid(12,6); // increase 6 if you want to make it wider
}
@media #{$x-large} {
@include grid(12,5); // increase 5 if you want to make it wider
}
}
} The
|
Pretty sure I understand. I decided to try running my site locally (following your amazing instructions) since I had not done so upgrading to OS X 10.11. But what is frustrating is that, while I feel like I understand, I still find that, while running the server locally and making the following changes to ...
@media #{$large} {
@include grid(12,10); // increased to 10
}
@media #{$x-large} {
@include grid(12,9); // increase to 9
} ...I see no noticeable changes to a post even though I can see the changes being regenerated in terminal. But the more odd thing I noticed is that the text DOES get wider as I make my browser screen thinner. It only shrinks when I get to a certain browser window width. You can see a video of here. So I'm at a loss. I've fiddled with the variables but have seen no significant changes. I also noticed, as seen in the video, that the width of a post is wider at thinner browser widths but then breaks as I take the browser with to full screen. My guess is that it has something to do with the $micro : "only screen and (min-width: 30em)";
$small : "only screen and (min-width: 37.5em)";
$medium : "only screen and (min-width: 48em)";
$large : "only screen and (min-width: 62em)";
$x-large : "only screen and (min-width: 86.375em)"; But, when I fiddled with this, I just got errors. So I left them alone. Anyway, sorry to take your time. I just got that itch where I'm obsessed with why the hell something doesn't seem to be working and can figure it out (I need to stop and move on---my site looks more than great thanks to your work!). |
I just did a quick test with the grid changes you made and it sort of works, but is 1 column too wide so things stack weird. If you decrease by one like so: ...
@media #{$large} {
@include grid(12,9);
}
@media #{$x-large} {
@include grid(12,8);
} You'll get this. I would probably knock it down another value and add The fact that your CSS isn't changing tells me you probably have Be sure to restart the Jekyll server after making any Another thing I'd suggest is firing up your browser's web developer tools. Once enabled you'll be able to right click any element and inspect it's CSS properties. You can also tinker with the declarations in real time to figure out what changes you might want to make. The line numbers won't match up exactly but should give you a good idea on what classes or elements you need to target to get things laid out how you'd like. PS: I'm working on a complete rewrite of the theme which should make customizing things a bit easier. I was never happy with the column placement on the current version. You're not the first person to run into problems trying to widen the main content container or shift things around. Probably won't launch for a bit but I'm getting closer as I build out the documentation. |
Sweet. Got it to work. And you were correct, I didn't change the url. While I was looking at the correct html file, my guess is that, since I wasn't using the local port, things just weren't update correctly. Thanks so much. That one failure (not changing the url) was really the biggest issue. Now that I can play around and see things in real time, I should be in much better shape! |
added theme jekyll masonry
How should I change with latest code? |
@adityaatluri #1373 |
I was playing with
But the problem is, it scales the same for left and right. When I make everything |
No, it can't be done by just altering those variables. You need to remove the right margin just how I have it in that other issue linked above. Overriding the CSS is the only way to widen the page how you want. |
So, here is what I did, I removed the padding variable in the file you mentioned. And it worked. Quick question, how to make dark theme more darker? |
Override these colors. |
Thank you! |
Add tag options
…/prettier-2.7.1 chore(deps-dev): bump prettier from 2.6.2 to 2.7.1
Great theme!! Is there an easy way to make the text area in the blog posts a litt wider and reduce the "white borders". I'm not a CSS expert and my attempts failed so far ;). Any hint appreciated.
The text was updated successfully, but these errors were encountered: