-
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
Changes from 2 commits
24756e2
7f52977
c90dd82
a235176
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 |
---|---|---|
|
@@ -184,17 +184,40 @@ export default { | |
a | ||
color $accentColor | ||
|
||
@media (max-width: $MQNarrow) | ||
@media (max-width: $MQMobile) | ||
.search-box | ||
margin-right 0 | ||
display inline-block | ||
input | ||
position relative | ||
left 1rem | ||
cursor pointer | ||
width 0 | ||
border-color transparent | ||
position relative | ||
left 1rem | ||
background-color white | ||
z-index 10 | ||
&:focus | ||
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 commentThe 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. |
||
.search-box | ||
position relative | ||
display inline-block | ||
width 30px | ||
height 23px | ||
margin-right 0 | ||
input | ||
cursor pointer | ||
width 0 | ||
border-color transparent | ||
position absolute | ||
background-color white | ||
z-index 10 | ||
left 0 | ||
top: 0 | ||
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. remove the |
||
&:focus | ||
cursor text | ||
left 0 | ||
width 10rem | ||
|
||
@media (max-width: $MQNarrow) and (min-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