Skip to content

Commit caee34d

Browse files
committed
Improve searchbar ui and add noscript tag
1 parent 39d3546 commit caee34d

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

_includes/head.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@
4545
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/images/apple-touch-icon-72x72-precomposed.png"><!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini -->
4646
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/images/apple-touch-icon-114x114-precomposed.png"><!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch -->
4747
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/images/apple-touch-icon-144x144-precomposed.png"><!-- 144x144 (precomposed) for iPad 3rd and 4th generation -->
48+
49+
<!-- Hide Searchbar if nojs -->
50+
<noscript>
51+
<style>
52+
#searchbar { display:none; }
53+
</style>
54+
</noscript>

_layouts/doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h1>{{ custom_title | xml_escape }}</h1>
3535
{% if page.btcversion != "index" %}
3636
{% assign groups = site.doc | where:"btcversion", page.btcversion | group_by:"btcgroup" | sort: "name" %}
3737
<section class="toc">
38-
<input id="searchbar" type="text" value="" placeholder="Search..."/>
38+
<input id="searchbar" type="text" value="" placeholder="Search ..."/>
3939
{% for group in groups %}
4040
{% if group.name != "index" %}
4141
<header>

_sass/elements.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,12 @@ svg:not(:root) {
164164
@include rounded(4px);
165165
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.05));
166166
}
167+
168+
/*
169+
Searchbar
170+
========================================================================== */
171+
172+
#searchbar {
173+
background-color: #d3d3d3;
174+
border-color: #2b2b2b;
175+
}

0 commit comments

Comments
 (0)