-
Notifications
You must be signed in to change notification settings - Fork 2
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
Switch to Grid and Footer #97
Conversation
Still have the: - original header to deal with - clean up the footer for real - check no js - animate the hide/show
} | ||
|
||
@media (min-width: 800px) { | ||
.frqcy-header { | ||
padding: 0 80px; | ||
padding: 0 62px; |
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.
This helps align the Frequency logo by default with the sidebar
@@ -604,66 +604,3 @@ function playground_text(playground, hidden = true) { | |||
document.scrollingElement.scrollTo({ top: 0, behavior: "smooth" }); | |||
}); | |||
})(); | |||
|
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 don't want to do any of this anymore. Perhaps we'll bring back the scrolling header disappearing later.
@@ -2,6 +2,53 @@ | |||
|
|||
@import "variables.css"; | |||
|
|||
:target { | |||
scroll-margin-top: calc(var(--header-height) + 20px); |
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.
Make it so that the anchor links aren't hidden by the header.
scroll-margin-top: calc(var(--header-height) + 20px); | ||
} | ||
|
||
/* GRID */ |
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.
Had to move to grid to make everything work. No, I didn't want to, but it was the cleanest way.
@@ -34,44 +81,22 @@ a > .hljs { | |||
will want to reposition the viewport in a weird way. | |||
*/ | |||
overflow-x: clip; | |||
transition: 200ms; | |||
} | |||
|
|||
/* Menu Bar */ |
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.
Menu bar changes removed a ton of css.
} | ||
|
||
[dir="rtl"] .sidebar { |
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.
Not currently looking to move the sidebar side for rtl. Would require grid setup
@@ -682,11 +650,11 @@ ul#searchresults span.teaser em { | |||
.theme-popup { | |||
position: absolute; | |||
left: 10px; | |||
top: var(--menu-bar-height); | |||
top: 0; |
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.
This way the theme popup is with the icon
|
||
<div id="page-wrapper" class="page-wrapper"> | ||
|
||
<div class="page"> |
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.
Removed this extra div, but otherwise most of these are moving things around.
|
||
<div class="page"> | ||
<div id="menu-bar-hover-placeholder"></div> | ||
<div id="menu-bar" class="menu-bar sticky"> |
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.
Moved outside to the grid structure
|
||
<div style="clear: both"></div> | ||
</nav> | ||
<div id="page-wrapper" class="page-wrapper"> |
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.
Here's the content wrapper now
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.
Looks good to me, ran locally
The inner container seems to be sizing in and out based on content. readability is not consistent, suggestion would be to pin the forward and back button pin to bottom of page, or pin footer
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.
Problem
Needed to do the footer, but had to change a good amount to make it work.
Closes #83
Solution
Screenshots (optional):
Here are a few, but you really have pull and run locally