File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ toc_footers:
13
13
includes :
14
14
- errors
15
15
16
+ search : true
16
17
---
17
18
18
19
# Introduction
Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ under the License.
38
38
< body class ="<%= page_classes %> ">
39
39
< div class ="tocify-wrapper ">
40
40
<%= image_tag "logo.png" %>
41
- < div class ="search ">
42
- < input type ="text " class ="search " id ="input-search ">
43
- </ div >
44
- < div class ="search-info "> </ div >
41
+ <% if current_page . data . search %>
42
+ < div class ="search ">
43
+ < input type ="text " class ="search " id ="input-search ">
44
+ </ div >
45
+ < div class ="search-info "> </ div >
46
+ <% end %>
45
47
< div id ="toc ">
46
48
</ div >
47
49
<% if current_page . data . toc_footers %>
Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ html, body {
81
81
}
82
82
}
83
83
84
+ img +.tocify {
85
+ margin-top : $logo-margin ;
86
+ }
87
+
84
88
.search-info {
85
89
margin-top : 0 ;
86
90
padding : 1em $nav-padding ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ $lang-select-pressed-text: #fff; // color of language tab text when mouse is pre
54
54
/// /////////////////
55
55
$nav-width : 230px ; // width of the navbar
56
56
$examples-width : 50% ; // portion of the screen taken up by code examples
57
- $logo-margin : 20px ; // margin between nav items and logo
57
+ $logo-margin : 20px ; // margin between nav items and logo, ignored if search is active
58
58
$main-padding : 28px ; // padding to left and right of content & examples
59
59
$nav-padding : 15px ; // padding to left and right of navbar
60
60
$nav-indent : 10px ; // extra padding for ToC subitems
You can’t perform that action at this time.
0 commit comments