-
-
Notifications
You must be signed in to change notification settings - Fork 105
fix(ui): resolve mobile layout arrangement and responsive navbar comp… #773
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 |
|---|---|---|
|
|
@@ -113,7 +113,7 @@ body { | |
| width: calc(100% - 2rem); | ||
| margin: 0 auto; | ||
| min-height: 3.6rem; | ||
| padding: 0 0.75rem 0 0; | ||
| padding: 0 0.75rem 0 0.25rem; | ||
| border: 1px solid rgba(183, 212, 255, 0.22); | ||
| border-radius: 0.95rem; | ||
| background: linear-gradient(95deg, rgba(8, 22, 44, 0.9), rgba(6, 20, 41, 0.76)); | ||
|
|
@@ -126,9 +126,9 @@ body { | |
| } | ||
|
|
||
| .navbar__brand { | ||
| display: inline-flex; | ||
| display: flex; | ||
| flex: none; | ||
| align-items: center; | ||
| align-self: stretch; | ||
| margin-right: 1.25rem; | ||
| padding: 0 0.9rem; | ||
| border-radius: 0.85rem 0 0 0.85rem; | ||
|
|
@@ -802,9 +802,11 @@ body { | |
| width: calc(100% - 1rem); | ||
| min-height: 3.25rem; | ||
| padding-right: 0.55rem; | ||
| padding-left: 0.55rem; | ||
| } | ||
|
|
||
| .navbar__brand { | ||
| max-width: 45vw; | ||
| margin-right: 0.6rem; | ||
| padding: 0 0.65rem; | ||
| } | ||
|
|
@@ -817,6 +819,10 @@ body { | |
| padding-inline: 0.45rem; | ||
| } | ||
|
|
||
| .navbar-icon-link { | ||
|
Collaborator
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 get the workaround, but this hides the GitHub and OWASP nav links as well. Can you target just the npm icon? Something like |
||
| display: none; | ||
|
Collaborator
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. My original feedback was to remove the
Author
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. |
||
| } | ||
|
|
||
| .navbar-owasp-badge span { | ||
| display: none; | ||
| } | ||
|
|
@@ -906,6 +912,11 @@ body { | |
| padding-right: 0; | ||
| } | ||
|
|
||
| /* hide Docusaurus search hint on narrow viewports */ | ||
| [class*='searchHint_'] { | ||
| display: none; | ||
|
Collaborator
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 targets a Docusaurus CSS module class by substring match, which is fragile - if Docusaurus ever renames this component internally, the rule silently stops working. Can you add a short comment explaining why the search hint needs to be hidden on mobile? Something like
Author
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. |
||
| } | ||
|
|
||
| .site-shell { | ||
| padding-top: 2.2rem; | ||
| } | ||
|
|
@@ -948,6 +959,27 @@ body { | |
| } | ||
| } | ||
|
|
||
| @media (max-width: 640px) { | ||
| .dependabot-callout .callout-banner { | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
| } | ||
| } | ||
|
|
||
| @media (max-width: 480px) { | ||
| .press-bar { | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .command-stack { | ||
| display: flex; | ||
| flex-direction: column; | ||
| min-width: 100%; | ||
| white-space: pre-wrap; | ||
|
Collaborator
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. Minor: |
||
| overflow-x: auto; | ||
| } | ||
| } | ||
|
|
||
| /* Mermaid edge label padding */ | ||
| .edgeLabel .label { | ||
| background-color: #1b2434 !important; | ||
|
|
@@ -985,11 +1017,4 @@ body { | |
|
|
||
| .callout-banner-copy { | ||
| flex: 1; | ||
| } | ||
|
|
||
| @media (max-width: 640px) { | ||
| .dependabot-callout .callout-banner { | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
| } | ||
| } | ||
| } | ||
|
Collaborator
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. Missing newline at end of file - just make sure the file ends with a newline before committing. |
||


Uh oh!
There was an error while loading. Please reload this page.