-
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
Add wide
variant to single layout
#1516
Conversation
the "single" layout that puts the right sidebar on top.
I am just going to close this and some diligent github user might read it later. |
The elegant approach here is to utilize the For a page you'd want the wide variant of you'd do something like: ---
layout: single
classes: wide
--- Which would put a .wide {
.page {
// override right padding and width's to make wide
}
.sidebar__right {
// override negative margin, width, positioning, etc.
}
// any other overrides needed for a wide `.page`
} |
If you want to take a stab at this I'll review it and see about getting it merged in. |
Looks good @peterahrens, thanks for making the change and resubmitting. |
wide
variant to single layout
Thanks for the tips @mmistakes! |
Do you guys have a live demo for this? |
Nice! |
…single" layout. (mmistakes#1516) Add `wide` variant to single layout
…single" layout. (mmistakes#1516) Add `wide` variant to single layout
…single" layout. (mmistakes#1516) Add `wide` variant to single layout
This pull request adds a new layout called "queen." It is a wider version of "single" (yes like the mattress sizes). It puts the right sidebar on top (if you asked for a right sidebar) so that you can get that sweet sweet wide display you've been craving for your programming blog post (80 characters or bust!), without cramping your style in your more literary blog posts. I don't really know if this layout is really worth merging, but I thought I would put it here so somebody might copy what I did instead of bugging mmistakes about widening the margins again.