forked from niklasbuschmann/contrast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
61 lines (53 loc) · 1.26 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
layout: page
title: Search
---
{% include head.html %}
<style>
.input-search{
height: 50px;
width: 300px;
border-radius: 0px;
border-style: none;
padding: 10px;
font-size: 18px;
letter-spacing: 2px;
outline: none;
border-radius: 25px;
transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
background-color: transparent;
padding-right: 40px;
color:#fff;
}
.btn-search{
width: 50px;
height: 50px;
border-style: none;
font-size: 20px;
font-weight: bold;
outline: none;
cursor: pointer;
border-radius: 50%;
position: absolute;
right: 0px;
color:#ffffff ;
background-color:transparent;
pointer-events: painted;
}
</style>
<!-- Html Elements for Search -->
<div id="search-container">
<button class="btn-search"><i class="fas fa-search"></i></button>
<input type="text" class="input-search" id="search-input" placeholder="Type to Search...">
<ul id="results-container"></ul>
</div>
<!-- Script pointing to search-script.js -->
<script src="/assets/js/simple-jekyll-search.min.js" type="text/javascript"></script>
<!-- Configuration -->
<script>
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '/search.json'
})
</script>