-
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
Layout css, Pages vs Home and Posts #86
Comments
Not sure I'm following. Can you provide a screenshot exactly where the spacing differences are? There are margins and padding on headlines and the feature image blocks. If you don't have a feature image that would explain why the spacing is off. |
That was it, if you remove the images (wich I did) both in home and in a page, the spacing is a bit off. |
In that case you can apply a |
I'm running into this same issue.. would either of you mind clarifying, please? We're talking about page.scss here? I see a line ~299 where h1,h2 are defined, but adding in margin-top: 0; doesn't resolve the issue. There's still that sidebar 'jump', when moving between the 'about' page and the rest of the site. |
@namebrandon Attach a screenshot and indicate which area you're talking about. I'm still not entirely sure we're all talking about the same thing. Sidebar jumping around could me a lot of things. As stated a few comments above, there is some margin on the top of each headline element. If you zero that out it will be flush with the top of the sidebar's top. There also is some margin-bottom applied to the When in doubt fire up Chrome/Safari's web developer tools or Firebug in Firefox and start inspecting elements. It'll show you the CSS being applied and you can play around with edits to figure out where the extra margin and padding is coming from. |
Thanks Michael! You can see the site live here, notice the sidebar jump when switching from about, to the other types of pages. |
I see the problem. The post and page layouts both wrap the main content and sidebar with Wrapping the sidebar and index content with |
Would adding a transparent / white png as a feature image of a certain heigh solve the issue? I'm afraid that's about as creative as I am with html/css... :\ |
That probably won't work all that great because the transparent png's size will be in pixels and the margin on the other pages is set in ems, which could change depending a user's browser settings. The better solution is adding the #main div on the post index page, a class to the article containers, and moving a few styles around. |
- Adjust article styles to correctly display post indexes - Remove top margin from page titles
@namebrandon and @davidelnunes Here are the changes I made to fix the 'jumpy' sidebar. 99d4eee |
You are the man!! Thanks :) |
Works like a charm, thanks! :) |
- Adjust article styles to correctly display post indexes - Remove top margin from page titles
Fix for issue mmistakes#86.
Updating Google Analytics
- Adjust article styles to correctly display post indexes - Remove top margin from page titles
- Adjust article styles to correctly display post indexes - Remove top margin from page titles
…/eslint-plugin-nuxt-4.0.0 chore(deps-dev): bump eslint-plugin-nuxt from 3.2.0 to 4.0.0
v0.2.3 Release Branch
The css for the page "main" div makes so that there is some extra space between the page content and the "bio sidebar" and the navigation menu. This is not consistent with the home and post-index layout.
PS: I've been playing around with your theme, and it is great by the way, good job.
The text was updated successfully, but these errors were encountered: