-
Notifications
You must be signed in to change notification settings - Fork 0
Updates styles for sidebar and cleans up CSS #513
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
Conversation
docMap.json
Outdated
| "name": "guides/recipes", | ||
| "title": "recipes", | ||
| "type": "page", | ||
| "type": "page recipes", |
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.
I don’t think this file should’ve changed.
Also add smooth-scroll to the left sidebar.
static/sidebar.less
Outdated
| border-radius: 5px; | ||
| box-shadow: 0 0 5px @link-color; | ||
| a.page.recipes + ul { | ||
| padding-left: 5px; |
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.
I removed the Recipes page and updated the docMap on this branch, so I think this can probably be removed now.
This switches from flexbox to CSS grid for the layout of the header, sidebar, and content. This still allows the left sidebar and content to scroll independently while also fixing some scrolling issues. Fixes #507
| transition: padding-bottom @transition-speed ease; | ||
| display:-ms-grid; | ||
| display: grid; | ||
| -ms-grid-columns: 300px 1fr; |
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.
What does this look like when it’s cut off?
| display:-ms-grid; | ||
| display: grid; | ||
| -ms-grid-columns: 300px 1fr; | ||
| grid-template-columns: max-content 1fr; |
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.
I just realized max-content isn’t supported by Edge. Maybe we should also add a rule for fit-content(50%) or something else that would work? https://developer.mozilla.org/en-US/docs/Web/CSS/fit-content
static/layout.less
Outdated
| position: relative; | ||
| .sticky; | ||
| margin: 53px 0 0; | ||
| height: calc(~"100vh - 53px");// 53px header |
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.
We should use a variable wherever we have 53px
Closes #505