-
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
Header and Footer Cleanups #105
Conversation
.content { | ||
padding: 0 2px; | ||
} | ||
min-height: 100vh; |
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 sure the footer is off-screen at start, even for short pages
@@ -155,15 +155,7 @@ h6:target::before { | |||
|
|||
.content { | |||
overflow-y: auto; | |||
padding: 30px 15px; |
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 this to tailwind classes to easily handle responsive breaks
@@ -69,22 +69,6 @@ | |||
@apply opacity-100; | |||
transform: translate3d(0, 0, 0); | |||
} | |||
|
|||
/* Form common styles*/ |
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.
No form styles needed
@@ -97,6 +81,11 @@ | |||
margin: 0.67em 0; | |||
} | |||
|
|||
/* Reset the margins for the first header in the contents */ | |||
.content h1:first-of-type { |
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 to be closer to the thing it is modifying
@@ -15,6 +15,17 @@ | |||
url("../fonts/Newake-Font-Regular.svg#filename") format("svg"); | |||
} | |||
|
|||
@font-face { |
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.
Added Bold and rearranged as needed for @font-face
@@ -202,21 +202,21 @@ | |||
}); | |||
</script> | |||
|
|||
<div id="content" class="content"> | |||
<div id="content" class="content pt-8 pb-32 pl-[6px] pr-[45px]"> |
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.
Handles the left nav buttons better
<!-- Mobile navigation buttons --> | ||
{{#previous}} | ||
<a rel="prev" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter: {{title}}" aria-keyshortcuts="Left"> | ||
<a rel="prev" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters previous mb-6 w-full md:w-auto" title="Previous chapter" aria-label="Previous chapter: {{title}}" aria-keyshortcuts="Left"> |
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.
Go full width on mobile and margins for stacking
@@ -227,7 +227,7 @@ | |||
</div> | |||
|
|||
<!-- Custom Footer Start --> | |||
<footer id="footer" class="bg-white px-6 md:px-[10%] max-w-[100vw]"> | |||
<footer id="footer" class="bg-white pt-6 px-6 md:px-[10%] max-w-[100vw]"> |
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.
Slight top padding to separate the nav bar from the footer border
d5f891f
to
6f2184e
Compare
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.
Tried it locally, looks good to me
Problem ======= Various small layout issues addressed (one of a few PRs for this sort of stuff) Closes #101 Closes #104 Closes #86 Part of #87 Solution ======== - Fix font issue with Bold - Remove dead styles - Fix content margins to handle the left nav buttons with centering - Fix the previous/next buttons on mobile - Add a margin to the footer to fix the footer border from hitting the side nav (slight design break)
Problem
Various small layout issues addressed (one of a few PRs for this sort of stuff)
Closes #101
Closes #104
Closes #86
Part of #87
Solution
Screenshots (optional):