aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/search.css26
-rw-r--r--views/instant_search_results.html2
-rw-r--r--views/list.html2
3 files changed, 4 insertions, 26 deletions
diff --git a/assets/css/search.css b/assets/css/search.css
index 0538361..174b276 100644
--- a/assets/css/search.css
+++ b/assets/css/search.css
@@ -1,25 +1,3 @@
1.search-results .search-result { 1.collection .collection-item.avatar {
2 background-color: #fff; 2 min-height: 64px !important;
3 line-height: 1.5rem;
4 padding: 10px 20px;
5 margin: 0;
6 border-bottom: 1px solid #e0e0e0;
7}
8
9.search-results {
10 margin: 0.5rem 0 1rem 0;
11 border: 1px solid #e0e0e0;
12 border-radius: 2px;
13 overflow: hidden;
14 position: relative;
15}
16
17.search-results .search-result.avatar .circle {
18 min-height: 64px;
19 padding-left: 72px;
20 position: relative;
21}
22
23.search-results .search-result.avatar .title {
24 font-size: 16px;
25} \ No newline at end of file 3} \ No newline at end of file
diff --git a/views/instant_search_results.html b/views/instant_search_results.html
index 294315c..9c5a476 100644
--- a/views/instant_search_results.html
+++ b/views/instant_search_results.html
@@ -1,6 +1,6 @@
1{{ define "instant_search_results" }} 1{{ define "instant_search_results" }}
2{{ range .results }} 2{{ range .results }}
3<li class="search-result avatar hoverable valign-wrapper"> 3<li class="collection-item avatar hoverable valign-wrapper">
4 <img src="/{{ .ImagePath }}" alt="" class="circle"> 4 <img src="/{{ .ImagePath }}" alt="" class="circle">
5 <span class="title">{{ .Name }}</span> 5 <span class="title">{{ .Name }}</span>
6</li> 6</li>
diff --git a/views/list.html b/views/list.html
index f7ba097..3539011 100644
--- a/views/list.html
+++ b/views/list.html
@@ -71,7 +71,7 @@
71 </form> 71 </form>
72 </div> 72 </div>
73 <div class="col s10 offset-s1"> 73 <div class="col s10 offset-s1">
74 <ul class="search-results" id="search-results"> 74 <ul class="collection" id="search-results">
75 </ul> 75 </ul>
76 </div> 76 </div>
77 </div> 77 </div>