Commit d2a0f1d3 authored by sbiego's avatar sbiego

better search style

parent 9bdb8b04
......@@ -6,11 +6,13 @@
<h3 class="panel-title">{{ i18n "searchTitle" }}</h3>
</div>
<!-- USING something based o\n https://blog.vrobot.uk/post/add-duckduckgo-search-to-a-hugo-generated-blog/ -->
<div class="panel-body">
<!-- USING https://blog.vrobot.uk/post/add-duckduckgo-search-to-a-hugo-generated-blog/ -->
<form onsubmit="myFunction(searchboxid); return false;" >
<input type="search" id="searchboxid" placeholder="Search" />
<button type="submit" >Search</button>
<form onsubmit="myFunction(searchboxid); return false;" method="get" accept-charset="UTF-8" role="search">
<input type="search" name="q" class="form-control" id="searchboxid" placeholder="{{ i18n "searchTitle" }}">
<span class="input-group-btn">
<button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
</span>
</form>
<script language="javascript">
......@@ -28,15 +30,6 @@
window.open(url, "_self");
}
</script>
<!-- <form action="//google.com/search" method="get" accept-charset="UTF-8" role="search">
<div class="input-group">
<input type="search" name="q" results="0" class="form-control" placeholder="{{ i18n "searchTitle" }}">
<input type="hidden" name="q" value="site:{{ .Site.BaseURL }}">
<span class="input-group-btn">
<button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
</span>
</div>
</form> -->
</div>
</div>
{{ end }}
......
......@@ -667,9 +667,19 @@ hr {
border-bottom: 2px solid rgba(255,255,255,.18);
}
.input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group {
input[type=search].form-control {
max-width: 80%;
display: inline-block;
}
span.input-group-btn {
display: inline-block;
}
span.input-group-btn button.btn.btn-template-main {
border: none;
color: rgba(0, 0, 0, 0.5);
padding-bottom: 12px;
}
.input-group-btn:last-child>.btn:hover, .input-group-btn:last-child>.btn-group:hover {
background: none;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment