Skip to content

Commit d40e219

Browse files
committed
Update Search Feature
1 parent cf1dcff commit d40e219

File tree

1 file changed

+27
-38
lines changed

1 file changed

+27
-38
lines changed

docs/index.html

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -156,47 +156,36 @@
156156
d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z" />
157157
</svg>
158158
</label>
159-
<div class=md-search data-md-component=search role=dialog>
160-
<label class=md-search__overlay for=__search></label>
161-
<div class=md-search__inner role=search>
162-
<form class=md-search__form name=search>
163-
<input type=text class=md-search__input name=query aria-label=Search placeholder=Search
164-
autocapitalize=off autocorrect=off autocomplete=off spellcheck=false
165-
data-md-component=search-query required>
166-
<label class="md-search__icon md-icon" for=__search>
167-
<svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24">
168-
<path
169-
d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z" />
170-
</svg>
171-
<svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24">
172-
<path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z" />
173-
</svg>
174-
</label>
175-
<nav class=md-search__options aria-label=Search>
176-
<a href=javascript:void(0) class="md-search__icon md-icon" title=Share aria-label=Share
177-
data-clipboard data-clipboard-text data-md-component=search-share tabindex=-1>
178-
<svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24">
179-
<path
180-
d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7 0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66 0 1.61 1.31 2.91 2.92 2.91 1.61 0 2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08Z" />
181-
</svg>
182-
</a>
183-
<button type=reset class="md-search__icon md-icon" title=Clear aria-label=Clear tabindex=-1>
184-
<svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24">
185-
<path
186-
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z" />
187-
</svg>
188-
</button>
189-
</nav>
190-
<div class=md-search__suggest data-md-component=search-suggest></div>
159+
<div class="md-search" data-md-component="search" role="dialog">
160+
<label class="md-search__overlay" for="__search"></label>
161+
<div class="md-search__inner" role="search">
162+
<form class="md-search__form" name="search">
163+
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required="">
164+
<label class="md-search__icon md-icon" for="__search">
165+
166+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"></path></svg>
167+
168+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"></path></svg>
169+
</label>
170+
<nav class="md-search__options" aria-label="Search">
171+
172+
<button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1" title="Clear">
173+
174+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>
175+
</button>
176+
</nav>
177+
178+
<div class="md-search__suggest" data-md-component="search-suggest"></div>
179+
191180
</form>
192-
<div class=md-search__output>
193-
<div class=md-search__scrollwrap tabindex=0 data-md-scrollfix>
194-
<div class=md-search-result data-md-component=search-result>
195-
<div class=md-search-result__meta>Initializing search </div>
196-
<ol class=md-search-result__list role=presentation></ol>
197-
</div>
181+
<div class="md-search__output">
182+
<div class="md-search__scrollwrap" tabindex="0">
183+
<div class="md-search-result" data-md-component="search-result">
184+
<div class="md-search-result__meta">Type to start searching</div>
185+
<ol class="md-search-result__list" role="list"></ol>
198186
</div>
199187
</div>
188+
</div>
200189
</div>
201190
</div>
202191
<div class=md-header__source>

0 commit comments

Comments
 (0)