File tree Expand file tree Collapse file tree 2 files changed +38
-17
lines changed Expand file tree Collapse file tree 2 files changed +38
-17
lines changed Original file line number Diff line number Diff line change 23
23
24
24
.navbar-brand {
25
25
display : flex;
26
+ flex : auto;
26
27
padding-left : 1rem ;
27
28
}
28
29
@@ -44,19 +45,35 @@ body {
44
45
padding-right : 0.375rem ;
45
46
}
46
47
48
+ .navbar-brand .navbar-item .search {
49
+ flex : auto;
50
+ justify-content : flex-end;
51
+ }
52
+
53
+ # search-input {
54
+ color : # 333 ;
55
+ font-family : inherit;
56
+ font-size : 0.95rem ;
57
+ width : 150px ;
58
+ border : 1px solid # dbdbdb ;
59
+ border-radius : 0.1em ;
60
+ line-height : 1.5 ;
61
+ padding : 0 0.25em ;
62
+ }
63
+
47
64
.navbar-burger {
48
65
background : none;
49
66
border : none;
50
67
outline : none;
51
68
line-height : 1 ;
52
69
position : relative;
53
70
width : 3rem ;
54
- margin-left : auto;
55
71
padding : 0 ;
56
72
display : flex;
57
73
flex-direction : column;
58
74
align-items : center;
59
75
justify-content : center;
76
+ margin-left : auto;
60
77
min-width : 0 ;
61
78
}
62
79
@@ -143,6 +160,19 @@ body {
143
160
white-space : nowrap;
144
161
}
145
162
163
+ @media screen and (max-width : 768.5px ) {
164
+ .navbar-brand .navbar-item .search {
165
+ padding-left : 0 ;
166
+ padding-right : 0 ;
167
+ }
168
+ }
169
+
170
+ @media screen and (min-width : 769px ) {
171
+ # search-input {
172
+ width : 200px ;
173
+ }
174
+ }
175
+
146
176
@media screen and (max-width : 1023.5px ) {
147
177
.navbar-brand {
148
178
height : inherit;
@@ -182,14 +212,6 @@ body {
182
212
display : flex;
183
213
}
184
214
185
- .navbar-menu {
186
- flex : auto;
187
- }
188
-
189
- .navbar-end {
190
- margin-left : auto;
191
- }
192
-
193
215
.navbar-item ,
194
216
.navbar-link {
195
217
display : flex;
Original file line number Diff line number Diff line change 2
2
<nav class =" navbar" >
3
3
<div class =" navbar-brand" >
4
4
<a class =" navbar-item" href =" {{{ or site.url (or siteRootUrl siteRootPath )}}} " >{{ site.title }} </a >
5
+ {{ #if env.SITE_SEARCH_ENABLED }}
6
+ <div class =" navbar-item search hide-for-print" >
7
+ <div id =" search-field" class =" field" >
8
+ <input id =" search-input" type =" text" placeholder =" Search the docs" {{ #if page.home }} autofocus{{ /if }} >
9
+ </div >
10
+ </div >
11
+ {{ /if }}
5
12
<button class =" navbar-burger" data-target =" topbar-nav" >
6
13
<span ></span >
7
14
<span ></span >
27
34
<a class =" navbar-item" href =" #" >Service C</a >
28
35
</div >
29
36
</div >
30
- <div class =" navbar-item has-dropdown is-hoverable" >
31
- <a class =" navbar-link" href =" #" >Resources</a >
32
- <div class =" navbar-dropdown" >
33
- <a class =" navbar-item" href =" #" >Resource A</a >
34
- <a class =" navbar-item" href =" #" >Resource B</a >
35
- <a class =" navbar-item" href =" #" >Resource C</a >
36
- </div >
37
- </div >
38
37
<div class =" navbar-item" >
39
38
<span class =" control" >
40
39
<a class =" button is-primary" href =" #" >Download</a >
You can’t perform that action at this time.
0 commit comments