-
Notifications
You must be signed in to change notification settings - Fork 26
updated navbar styles and added home link #131
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,13 +11,18 @@ | |
| /> | ||
| </a> | ||
| </div> | ||
| <button type="button" class="usa-menu-btn">Menu</button> | ||
| <button type="button" id="navbar-hamburger-menu" class="usa-menu-btn">Menu</button> | ||
| </div> | ||
| <nav aria-label="Primary navigation" class="usa-nav"> | ||
| <button type="button" class="usa-nav__close"> | ||
| <img src="/assets/img/usa-icons/close.svg" role="img" alt="Close" /> | ||
| </button> | ||
| <ul class="usa-nav__primary usa-accordion"> | ||
| <li class="usa-nav__primary-item"> | ||
| <a class="usa-nav__link" href="{{ site.baseurl }}/"> | ||
| <span>Home</span> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like the addition of the home page to the menu 👍 |
||
| </a> | ||
| </li> | ||
| <li class="usa-nav__primary-item"> | ||
| <a class="usa-nav__link" href="{{ site.baseurl }}/partners"> | ||
| <span>Partners</span> | ||
|
|
@@ -51,4 +56,4 @@ | |
| </ul> | ||
| </nav> | ||
| </div> | ||
| </header> | ||
| </header> | ||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,15 +7,16 @@ body { | |
| flex-shrink: 0; | ||
| } | ||
|
|
||
|
|
||
| .ctdc_logo > img { | ||
| padding-top: 0.5rem; | ||
| padding-bottom: 0.5rem; | ||
| max-height: 4rem; | ||
| } | ||
|
|
||
| @media only screen and (min-width: 1024px) { | ||
| .ctdc_logo > img { | ||
| max-height: 8rem; | ||
| .ctdc_logo>img { | ||
| max-height: 4rem; | ||
|
Comment on lines
+18
to
+19
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes the too small. I prefer to keep it at 8rem Perhaps we should align the menu lower with the top of the hero image instead of centered between the top of the screen and the hero image |
||
| } | ||
| } | ||
|
|
||
|
|
@@ -49,6 +50,10 @@ body { | |
| opacity: 0.75; | ||
| } | ||
|
|
||
| #navbar-hamburger-menu { | ||
| margin-right: 10px; | ||
| } | ||
|
|
||
| @media only screen and (min-width: 1024px) { | ||
| .hero-text { | ||
| width: 35%; | ||
|
|
@@ -62,4 +67,4 @@ body { | |
|
|
||
| .usa-header--basic .usa-nav-container { | ||
| align-items: center; | ||
| } | ||
| } | ||
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.
Can you please explain what the intention here is and how to test it? I checked out this branch and couldn't visually see the 10px right margin. Perhaps a before/after screenshot?