-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make content wider (now back to centered) #183
Conversation
Noting that this is currently targeting |
Not sure what the future of this PR is, but if we're maybe diving into the #170 -
|
Feel free to file this as a separate issue! |
It's filed, I linked the issue! Just trying to intrude to add it to this one, bad Stephanie. |
edited the description to add a link to the preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @dvenprasad gets last say
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On board with the wide content space. I think it should be centered for balance
I kind of agree, but sadly that makes it much harder to pin the version selector box to the bottom of the window. I'm sure the javascript jockeys can make it work, but it can't be done in css. 😢 |
The bottom left is a blind spot for majority of users and link RTD isn't an important link. i.e., most people won't notice/be worried about - especially if they are looking for information. I'm not worried about it. If we want to increase the width for content and center it (with the RTD button hanging out in the corner), we can make that change. |
Maybe we can restyle the RTD version box so it isn't a such a contrasty grey. I think that would appease my eyes. |
Hey @jashapiro ! We can accomplish this by using the position Just in case I wanted to share this with you for some ideas 💡! (*I tested this using the developer tool in FF via the link you provided) body {
margin: 0 auto;
position: relative;
width: 1200px;
}
@media (min-width: 950px) {
body {
width: 100%;
}
}
.rst-versions {
position: sticky;
top: calc(100% - 45px);
}
/* make the side nav scrollable when expanded */
.wy-nav-side {
background: linear-gradient(0deg,#fdfdfd 0%,#edf7fd 100%);
max-height: calc(100% - 45px);
overflow: auto
}
|
This reverts commit bf506e8.
I didn't quite get @nozomione's suggestion to work as it was, but learning about I also added an Should be ready for another look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woo looks good!
🦈 🦈 🦈
I was bothered by the version selector not being lined up with the nav bar, and the only way I could see to fix it was to move the nav bar all the way to the left by removing the
position: relative
fromwy-grid-for-nav
. But I like it that way anyway?I also made the body content just a bit larger.
As this was a pretty minor change, I am happy to be overruled, but I thought I would submit for comment at least.
Preview: https://scpca--183.org.readthedocs.build/en/183/