@@ -88,7 +88,7 @@ nav ul.docs {
8888 line-height: 30px;
8989}
9090
91− // search button
91+ // search button and overlay
9292#js-search-window-toggle {
9393 position: relative;
9494 display: block;
@@ -103,16 +103,98 @@ nav ul.docs {
103103 font-size: 0.75em;
104104 position: absolute;
105105 right: 0px;
106− top: 2px;
106+ top: 6px;
107107 padding: 6px;
108108 border: 1px solid #b1b2b3;
109109 border-radius: 3px;
110110 }
111111}
112+.has-active-search-window {
113+ .search-overlay {
114+ display: block;
115+ margin-left: -32px;
116+ padding-left: 32px;
117+ height: 100vh;
118+ }
119+}
120+
121+.b-transparent {
122+ background: rgba(0,0,0,0.4);
123+}
124+
125+.pop-up {
126+ width: 100%;
127+ max-width: 600px;
128+ margin: (28rem / 4) auto;
129+ background: #fff;
130+}
131+
132+input[type="search"]::-webkit-search-decoration,
133+input[type="search"]::-webkit-search-cancel-button,
134+input[type="search"]::-webkit-search-results-button,
135+input[type="search"]::-webkit-search-results-decoration {
136+ display: none;
137+}
138+
139+input[type="search"] {
140+ font-size: (4rem / 4);
141+ line-height: (6rem / 4);
142+ transition: all 0.1s linear;
143+ padding-right: 40px;
144+ position: relative;
145+ border-radius: 0 !important;
146+ &:focus {
147+ outline: 0;
148+ border: 0;
149+ }
150+}
151+
152+.search-bar {
153+ background: #fff;
154+ font-size: (4rem / 4);
155+ transition: all 0.1s linear;
156+ padding: 12px 0 12px 0;
157+ position: relative;
158+ font-weight: normal;
159+ text-align: left;
160+ box-shadow: none !important;
161+ color: #B1B2B3;
162+ width: 100%;
163+ padding-left: 0rem;
164+ }
165+
166+ .header__search-icon {
167+ transform: rotate(-45deg);
168+ vertical-align: bottom;
169+ }
170+
171+ .search-overlay {
172+ .search-bar {
173+ &__input {
174+ padding-left: 40px;
175+ }
176+ }
177+ }
178+
179+ .search-results {
180+ max-height: 400px;
181+ &__item a:hover {
182+ background: #F9F9F9;
183+ span {
184+ display:inline-block;
185+ }
186+ }
187+ }
188+
189+ #search-reset {
190+ cursor: pointer;
191+ user-select: none;
192+ }
112193 // tooltipping
113194.tippy-tooltip {
114195 border-radius: 0px;
115196}
197+
116198.tippy-content {
117199 color: white;
118200}
@@ -121,4 +203,4 @@ nav ul.docs {
121203 .top-alert {
122204 margin: 0 -32px 1rem -32px;
123205 padding: 0.3rem 32px;
124− }
206+ }