aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-08-06 16:32:34 +0200
committerArthurHoaro <arthur@hoa.ro>2016-08-07 12:17:36 +0200
commitbe924797a3d9a7b6840194227c528a84a2ea90b4 (patch)
treea6621fb3403d90e96696ff0444549914e0ff029a /tpl/default
parent717aec2bd7a7061bab53d306c49a49459886f100 (diff)
downloadShaarli-be924797a3d9a7b6840194227c528a84a2ea90b4.tar.gz
Shaarli-be924797a3d9a7b6840194227c528a84a2ea90b4.tar.zst
Shaarli-be924797a3d9a7b6840194227c528a84a2ea90b4.zip
Search results
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/css/shaarli.css28
-rw-r--r--tpl/default/linklist.html38
-rw-r--r--tpl/default/page.header.html2
3 files changed, 47 insertions, 21 deletions
diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css
index c9229c3c..2f2f142d 100644
--- a/tpl/default/css/shaarli.css
+++ b/tpl/default/css/shaarli.css
@@ -112,7 +112,7 @@ pre {
112} 112}
113 113
114.pure-menu-selected { 114.pure-menu-selected {
115 background: #1A694C; 115 background: #b0ddce;
116} 116}
117 117
118.pure-menu-link, 118.pure-menu-link,
@@ -535,12 +535,12 @@ pre {
535 color: #000; 535 color: #000;
536} 536}
537 537
538.linklist-item-tags { 538.linklist-item-infos .linklist-item-tags {
539 margin: 0 0 5px 0; 539 margin: 0 0 5px 0;
540 font-size: 0.8em; 540 font-size: 0.8em;
541} 541}
542 542
543.linklist-item-infos .label-tag { 543.linklist-item-infos .linklist-item-infos .label-tag {
544 border: 1px solid #505050; 544 border: 1px solid #505050;
545 font-size: 0.9em; 545 font-size: 0.9em;
546} 546}
@@ -766,12 +766,12 @@ pre {
766 margin: 0 0 5px 0; 766 margin: 0 0 5px 0;
767} 767}
768 768
769.linklist-item-infos .label-tag { 769.label-tag {
770 border: 1px solid #505050; 770 border: 1px solid #505050;
771 font-size: 0.9em; 771 font-size: 0.9em;
772} 772}
773 773
774.linklist-item-infos .label-tag:hover { 774.label-tag:hover {
775 border: 1px solid #000; 775 border: 1px solid #000;
776} 776}
777 777
@@ -788,6 +788,24 @@ pre {
788} 788}
789 789
790/** 790/**
791 * Search results
792 */
793.search-result a {
794 color: white;
795 text-decoration: none;
796}
797
798.search-result .label-tag {
799 border-color: white;
800}
801
802.search-result .label-tag .remove {
803 border-left: white 1px solid;
804 padding: 0 0 0 5px;
805 margin: 0 0 0 5px;
806}
807
808/**
791 * TOOLS 809 * TOOLS
792 */ 810 */
793.tools-item { 811.tools-item {
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html
index 174ab44b..19a0c3c7 100644
--- a/tpl/default/linklist.html
+++ b/tpl/default/linklist.html
@@ -21,22 +21,30 @@
21 </div> 21 </div>
22 22
23 {if="count($links)==0"} 23 {if="count($links)==0"}
24 <div id="searchcriteria">Nothing found.</div> 24 <div class="pure-g pure-alert pure-alert-error search-result">
25 <div class="pure-u-2-24"></div>
26 <div class="pure-u-20-24">
27 <div id="searchcriteria">Nothing found.</div>
28 </div>
29 </div>
25 {elseif="!empty($search_term) or !empty($search_tags)"} 30 {elseif="!empty($search_term) or !empty($search_tags)"}
26 <div id="searchcriteria"> 31 <div class="pure-g pure-alert pure-alert-success search-result">
27 {$result_count} results 32 <div class="pure-u-2-24"></div>
28 {if="!empty($search_term)"} 33 <div class="pure-u-20-24">
29 for <em>{$search_term}</em> 34 {$result_count} results
30 {/if} 35 {if="!empty($search_term)"}
31 {if="!empty($search_tags)"} 36 for <em><strong>{$search_term}</strong></em>
32 {$exploded_tags=explode(' ', $search_tags)} 37 {/if}
33 tagged 38 {if="!empty($search_tags)"}
34 {loop="$exploded_tags"} 39 {$exploded_tags=explode(' ', $search_tags)}
35 <span class="linktag" title="Remove tag"> 40 tagged
36 <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a> 41 {loop="$exploded_tags"}
37 </span> 42 <span class="label label-tag" title="Remove tag">
38 {/loop} 43 <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a>
39 {/if} 44 </span>
45 {/loop}
46 {/if}
47 </div>
40 </div> 48 </div>
41 {/if} 49 {/if}
42 50
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html
index bf5a65e8..dfec763a 100644
--- a/tpl/default/page.header.html
+++ b/tpl/default/page.header.html
@@ -134,7 +134,7 @@
134 <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6"> 134 <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6">
135 <label for="longlastingsession">Remember me</label> 135 <label for="longlastingsession">Remember me</label>
136 </div> 136 </div>
137 <input type="hidden" name="token" value="{$token}"> 137 <!--<input type="hidden" name="token" value="{$token}">-->
138 <input type="hidden" name="returnurl"> 138 <input type="hidden" name="returnurl">
139 <input type="submit" value="Login" tabindex="7"> 139 <input type="submit" value="Login" tabindex="7">
140 </div> 140 </div>