File tree 3 files changed +31
-11
lines changed
3 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 3
3
<div class =" pure-menu pure-menu-horizontal" role =" navigation" aria-label =" Main navigation" >
4
4
<form action =" /releases/search" method =" GET" class =" landing-search-form-nav" >
5
5
{{ #unless varsb.show_search_form }}
6
- <input class =" search-input-nav" name =" query" type =" text" aria-label =" Find crate by search query" placeholder =" Find crate" {{ #if varss.search_query }} value =" {{ varss.search_query }} " {{ /if }} >
6
+ <div id =" search-input-nav" >
7
+ <label for =" nav-search" ><i class =" fa fa-fw fa-search" ></i ></label >
8
+ <input id =" nav-search" name =" query" type =" text" aria-label =" Find crate by search query" placeholder =" Find crate" {{ #if varss.search_query }} value =" {{ varss.search_query }} " {{ /if }} >
9
+ </div >
7
10
{{ /unless }}
8
11
<a href =" /" class =" pure-menu-heading pure-menu-link" aria-label =" Docs.rs" ><i class =" fa fa-cubes fa-fw" ></i > Docs.rs</a >
9
12
<ul class =" pure-menu-list" >
Original file line number Diff line number Diff line change 3
3
<div class =" pure-menu pure-menu-horizontal" >
4
4
<form action =" /releases/search" method =" GET" class =" landing-search-form-nav" >
5
5
{{ #unless varsb.show_search_form }}
6
- <input class =" search-input-nav" name =" query" aria-label =" Find crate by search query" tabindex =" -1" type =" text" placeholder =" Find crate" {{ #if varss.search_query }} value =" {{ varss.search_query }} " {{ /if }} >
6
+ <div id =" search-input-nav" >
7
+ <label for =" nav-search" ><i class =" fa fa-fw fa-search" ></i ></label >
8
+ <input id =" nav-search" name =" query" type =" text" aria-label =" Find crate by search query" placeholder =" Find crate" {{ #if varss.search_query }} value =" {{ varss.search_query }} " {{ /if }} >
9
+ </div >
7
10
{{ /unless }}
8
11
<a href =" /" class =" pure-menu-heading pure-menu-link" ><i class =" fa fa-cubes fa-fw" ></i ><span class =" title" > Docs.rs</span ></a >
9
12
{{ #with content.crate_details }}
Original file line number Diff line number Diff line change @@ -173,21 +173,35 @@ div.nav-container {
173
173
form .landing-search-form-nav {
174
174
max-width : 1200px ;
175
175
176
- input . search-input-nav {
176
+ # search-input-nav {
177
177
float : right ;
178
- max-width : 200px ;
179
- border : none ;
180
- margin : 0 1em 0 0 ;
181
- font-size : 0.8em ;
182
- text-align : right ;
183
- box-shadow : none ;
184
- background-color : #fff ;
185
- height : 31px ;
178
+ max-width : 150px ;
186
179
display : none ;
180
+ border-left : 1px solid $color-border ;
187
181
188
182
@media #{$media-sm } {
189
183
display : block ;
190
184
}
185
+
186
+ @media #{$media-md } {
187
+ max-width : 200px ;
188
+ }
189
+
190
+ label {
191
+ color : #777 ;
192
+ cursor : pointer ;
193
+ padding-left : 0.5rem ;
194
+ font-size : 0.8em ;
195
+ }
196
+
197
+ input {
198
+ border : none ;
199
+ margin : 0 1em 0 0 ;
200
+ font-size : 0.8em ;
201
+ box-shadow : none ;
202
+ background-color : #fff ;
203
+ height : 31px ;
204
+ }
191
205
}
192
206
193
207
input .search-input-nav :focus {
You can’t perform that action at this time.
0 commit comments