-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Front End styling tidied up for Search Bar and Nav Links in the Header #266
Conversation
…lutely positions over the top of the nav
Can you add a before/after screenshot for easier review? |
lib/default-theme/SearchBox.vue
Outdated
cursor text | ||
width 10rem | ||
|
||
@media (min-width: $MQMobile) and (max-width: $MQNarrow) |
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.
Currently there are multiple media queries with duplicated rules that can be merged together. e.g. This is the exact same media query as the one on line 223.
@@ -184,17 +184,40 @@ export default { | |||
a | |||
color $accentColor | |||
|
|||
@media (max-width: $MQNarrow) | |||
@media (max-width: $MQMobile) |
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 should be merged with the media query on line 228
lib/default-theme/SearchBox.vue
Outdated
background-color white | ||
z-index 10 | ||
left 0 | ||
top: 0 |
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.
remove the :
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.
All look good
@yyx990803 - changes pushed and ready for review |
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.
14d9013
to
c7c0cd9
Compare
c992e38
to
c2eaff3
Compare
0c3bc3a
to
cf1e6fc
Compare
@michalsnik @shentao This is affecting a lot of Vue docs. Would either of you be able to help take over this PR and push it to completion? 🙂 |
@chrisvfritz Sorry for the delay, I have fixed this issue but I need more condition-coverage test, will try to release it at ASAP. |
@ulivz Thank you! I appreciate your work. 🙂 |
Closing it since we had a better fix at #714. |
I noticed the nav in the header had a few small issues at narrow sizes (740px etc) where the Nav Links are overlapping the logo, and focusing the Search Bar breaks out of the layout.
I've reduced the size of the padding on the Nav Links and changed the styling of the focused Search Bar to absolutely position over the top of the Nav at Narrow breakpoints.
Let me know what you think. Cheers