Skip to content
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

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Conversation

wilwade
Copy link
Contributor

@wilwade wilwade commented Nov 13, 2024

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)

Screenshots (optional):

image image image image

@wilwade wilwade requested a review from a team November 13, 2024 15:43
.content {
padding: 0 2px;
}
min-height: 100vh;
Copy link
Contributor Author

@wilwade wilwade Nov 13, 2024

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;
Copy link
Contributor Author

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*/
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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]">
Copy link
Contributor Author

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">
Copy link
Contributor Author

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]">
Copy link
Contributor Author

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

@wilwade wilwade mentioned this pull request Nov 13, 2024
18 tasks
@wilwade wilwade force-pushed the dp/header-footer-fixes branch from d5f891f to 6f2184e Compare November 13, 2024 17:57
Copy link
Contributor

@saraswatpuneet saraswatpuneet left a 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

@wilwade wilwade merged commit 5a4685e into developer-portal Nov 13, 2024
1 check passed
@wilwade wilwade deleted the dp/header-footer-fixes branch November 13, 2024 20:30
wilwade added a commit that referenced this pull request Nov 19, 2024
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants