-
Notifications
You must be signed in to change notification settings - Fork 27.5k
fix(aio): fix search box overlap for small devices #17075
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
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 |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ md-toolbar.mat-toolbar { | |
| } | ||
| } | ||
|
|
||
| aio-shell.sidenav-open { | ||
| aio-shell.page-home.sidenav-open { | ||
| md-toolbar.mat-toolbar md-icon { | ||
| color: $mediumgray; | ||
| } | ||
|
|
@@ -108,17 +108,17 @@ aio-search-box input { | |
| background-color: $offwhite; | ||
| padding: 5px 16px; | ||
| margin-left: 8px; | ||
| width: 150px; | ||
| height: 40%; | ||
| width: 180px; | ||
| max-width: 240px; | ||
|
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. What is the purpose of
Contributor
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. So the animation doesn't pop out of it's 'box'.
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 see. You can remove the |
||
| height: 50%; | ||
|
|
||
| @include bp(big) { | ||
| transition: width 0.4s ease-in-out; | ||
| &:focus { | ||
| width: 50%; | ||
| max-width: 240px; | ||
| } | ||
| } | ||
| @media (max-width: 480px) { | ||
| width: 180px; | ||
| width: 150px; | ||
| } | ||
| } | ||
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.
Why only on home 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.
Because the sidenav content drops below the non-transparent toolbar on all other pages.
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 has nothing to do with the overlap (and the styles below will not "fix" it). The actual issue on the home page is that the top bar is transparent.