File tree Expand file tree Collapse file tree 2 files changed +48
-17
lines changed
Expand file tree Collapse file tree 2 files changed +48
-17
lines changed Original file line number Diff line number Diff line change 88
99<nav class =" navbar navbar-expand-lg navbar-dark bg-dark" >
1010 <div class =" container" >
11- <div class =" float-left" >
12- <select data-nosnippet aria-label =" Version" onchange =" location = this.options[this.selectedIndex].value;" class =" form-select" >
13- <option value =" ${links.getGuides(true)}" >Nightly</option >
14- <option value =" ${links.getGuides(false)}" selected =" selected" >${version.version} </option >
15- </select >
16- </div >
17- <ul class =" nav navbar-nav" >
18- <#list guides.getCategories(false) as c >
19- <li >
20- <a class =" nav-link" href =" #${c.id}" >${c.title} </a >
21- </li >
22- </#list >
23- </ul >
24- <div class =" float-right" >
25- <form >
26- <input id =" guide-search" class =" form-control" type =" text" placeholder =" Search" aria-label =" Search" >
27- </form >
11+ <div class =" guides-navbar-content" >
12+ <div >
13+ <select id =" guide-version-select" data-nosnippet aria-label =" Version" onchange =" location = this.options[this.selectedIndex].value;" class =" form-select" >
14+ <option value =" ${links.getGuides(true)}" >Nightly</option >
15+ <option value =" ${links.getGuides(false)}" selected =" selected" >${version.version} </option >
16+ </select >
17+ </div >
18+ <ul class =" nav navbar-nav guides-navbar-menu" >
19+ <#list guides.getCategories(false) as c >
20+ <li >
21+ <a class =" nav-link" href =" #${c.id}" >${c.title} </a >
22+ </li >
23+ </#list >
24+ </ul >
25+ <div >
26+ <form >
27+ <input id =" guide-search" class =" form-control" type =" text" placeholder =" Search" aria-label =" Search" >
28+ </form >
29+ </div >
2830 </div >
2931 </div >
3032</nav >
Original file line number Diff line number Diff line change @@ -178,6 +178,35 @@ a:hover {
178178 padding : 1rem 0.5rem 0 ;
179179}
180180
181+ /* Guides navbar layout */
182+ .guides-navbar-content {
183+ display : flex;
184+ flex-direction : column;
185+ align-items : flex-start;
186+ width : 100% ;
187+ gap : 1rem ;
188+ }
189+
190+ # guide-version-select {
191+ min-width : 100px ;
192+ }
193+
194+ @media (min-width : 992px ) {
195+ .guides-navbar-content {
196+ flex-direction : row;
197+ align-items : center;
198+ }
199+
200+ .guides-navbar-menu {
201+ margin-right : auto;
202+ }
203+
204+ /* Guides navbar font size can be lower as in the Bootstrap examples for secondary navbar */
205+ .guides-navbar-menu .nav-link , # guide-search , # guide-version-select {
206+ font-size : .9rem ;
207+ }
208+ }
209+
181210table .options {
182211 width : 100% ;
183212}
You can’t perform that action at this time.
0 commit comments