@healthcatalyst/catalyst-docfx-template 1.0.153 → 1.0.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,12 @@
19
19
  {{>partials/breadcrumb}}
20
20
  {{/_enableBreadcrumb}}
21
21
  </header>
22
- <div role="main" class="docs-container body-content">
22
+ {{#_enableSearch}}
23
+ <div class="container-fluid body-content">
24
+ {{>partials/searchResults}}
25
+ </div>
26
+ {{/_enableSearch}}
27
+ <div role="main" class="docs-container body-content hide-when-search">
23
28
  {{^_enableToc}}
24
29
  <div class="article row grid">
25
30
  {{/_enableToc}}
@@ -44,9 +49,6 @@
44
49
  <article class="content wrap" id="_content" data-uid="{{uid}}">
45
50
  {{!body}}
46
51
  </article>
47
- {{#_enableSearch}}
48
- {{>partials/searchResults}}
49
- {{/_enableSearch}}
50
52
  {{#_enableFeedback}}
51
53
  {{>partials/feedback}}
52
54
  {{/_enableFeedback}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcatalyst/catalyst-docfx-template",
3
- "version": "1.0.153",
3
+ "version": "1.0.155",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
@@ -17,5 +17,13 @@
17
17
  </ul>
18
18
  </div>
19
19
  </div>
20
+ <div class="docs-subnav-right" id="subnav-right">
21
+ <div class="docs-search">
22
+ <span class="docs-subnav-search-icon"><i class="fa fa-search" aria-hidden="true"></i></span>
23
+ <form role="search" id="search" style="display: block;">
24
+ <input type="text" id="search-query" placeholder="Search">
25
+ </form>
26
+ </div>
27
+ </div>
20
28
  </div>
21
29
  </div>
package/styles/main.css CHANGED
@@ -739,7 +739,6 @@ output {
739
739
 
740
740
  #search {
741
741
  border: none;
742
- display:block;
743
742
  }
744
743
 
745
744
 
@@ -1159,8 +1158,8 @@ output {
1159
1158
  border: 1px lightgray solid;
1160
1159
  display: flex;
1161
1160
  align-items: center;
1162
- width: 100%;
1163
- /*padding: 2px 2px 2px 10px;*/
1161
+ width: 180px;
1162
+ padding: 2px 2px 2px 10px;
1164
1163
  margin: 6px 5px 6px auto;
1165
1164
  }
1166
1165
 
@@ -2101,77 +2100,9 @@ article .tabGroup > ul > li {
2101
2100
  background-color: #f1f1f1;
2102
2101
  }
2103
2102
 
2104
- /* Side search styling */
2105
- .sidefilter .docs-search {
2106
- padding: 0px;
2107
- background: transparent;
2108
- border: 0px;
2109
- }
2110
-
2111
- .sidefilter .side-search {
2112
- position: relative;
2113
- display: flex;
2114
- align-items: center;
2115
- margin: 0;
2116
- width:100%;
2117
- }
2118
-
2119
- .sidefilter #search-query {
2120
- width: 100%;
2121
- height:35px;
2122
- padding: 8px 12px 8px 35px;
2123
- border: 1px solid #ced4da;
2124
- border-radius: 4px;
2125
- font-size: 14px;
2126
- box-sizing: border-box;
2127
- background-color: #fff;
2128
- outline: none;
2129
- }
2130
-
2131
- .sidefilter #search-query:focus {
2132
- border-color: #00aeff;
2133
- box-shadow: 0 0 0 0.2rem rgba(0, 174, 255, 0.25);
2134
- }
2135
-
2136
- .sidefilter #search-query::placeholder {
2137
- color: #a1a1a1;
2138
- opacity: 1;
2139
- }
2140
-
2141
- /* Search icon */
2142
- .sidefilter .side-search::before {
2143
- content: "\f002"; /* FontAwesome search icon */
2144
- font-family: "FontAwesome", "Font Awesome 5 Free";
2145
- font-weight: 900;
2146
- position: absolute;
2147
- left: 12px;
2148
- top:50%;
2149
- transform: translateY(-50%);
2150
- color: #6c757d;
2151
- pointer-events: none;
2152
- z-index: 1;
2153
- }
2154
-
2155
- #search-results {
2156
- max-width: 935px;
2157
- margin: 0;
2158
- padding: 0 0 32px;
2159
- position: relative;
2160
- z-index: 1;
2161
- }
2162
-
2163
- #search { position:relative; }
2164
- #search-clear {
2165
- position:absolute;
2166
- top:50%;
2167
- right:8px;
2168
- transform:translateY(-50%);
2169
- background:none;
2170
- border:0;
2171
- padding:0;
2172
- font-size:18px;
2173
- line-height:1;
2174
- cursor:pointer;
2175
- color:#666;
2176
- }
2177
- #search-clear:hover { color:#000; }
2103
+ /* Make the right-hand In-This-Topic panel scrollable */
2104
+ .sideaffix .affix {
2105
+ max-height: calc(100vh - 150px); /* adjust based on header/footer */
2106
+ overflow-y: auto;
2107
+ overflow-x: hidden;
2108
+ }
@@ -1,9 +0,0 @@
1
- {{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}}
2
-
3
- <div id="search-results" style="display:none;">
4
- <div class="search-list">{{__global.searchResults}} <span></span></div>
5
- <div class="sr-items">
6
- <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
7
- </div>
8
- <ul id="pagination" data-first={{__global.pageFirst}} data-prev={{__global.pagePrev}} data-next={{__global.pageNext}} data-last={{__global.pageLast}}></ul>
9
- </div>