From be924797a3d9a7b6840194227c528a84a2ea90b4 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 6 Aug 2016 16:32:34 +0200 Subject: [PATCH] Search results --- tpl/default/css/shaarli.css | 28 +++++++++++++++++++++----- tpl/default/linklist.html | 38 ++++++++++++++++++++++-------------- tpl/default/page.header.html | 2 +- 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 { } .pure-menu-selected { - background: #1A694C; + background: #b0ddce; } .pure-menu-link, @@ -535,12 +535,12 @@ pre { color: #000; } -.linklist-item-tags { +.linklist-item-infos .linklist-item-tags { margin: 0 0 5px 0; font-size: 0.8em; } -.linklist-item-infos .label-tag { +.linklist-item-infos .linklist-item-infos .label-tag { border: 1px solid #505050; font-size: 0.9em; } @@ -766,12 +766,12 @@ pre { margin: 0 0 5px 0; } -.linklist-item-infos .label-tag { +.label-tag { border: 1px solid #505050; font-size: 0.9em; } -.linklist-item-infos .label-tag:hover { +.label-tag:hover { border: 1px solid #000; } @@ -787,6 +787,24 @@ pre { text-overflow: ellipsis; } +/** + * Search results + */ +.search-result a { + color: white; + text-decoration: none; +} + +.search-result .label-tag { + border-color: white; +} + +.search-result .label-tag .remove { + border-left: white 1px solid; + padding: 0 0 0 5px; + margin: 0 0 0 5px; +} + /** * TOOLS */ 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 @@ {if="count($links)==0"} -
Nothing found.
+
+
+
+
Nothing found.
+
+
{elseif="!empty($search_term) or !empty($search_tags)"} -
- {$result_count} results - {if="!empty($search_term)"} - for {$search_term} - {/if} - {if="!empty($search_tags)"} - {$exploded_tags=explode(' ', $search_tags)} - tagged - {loop="$exploded_tags"} - - {$value} x - - {/loop} - {/if} +
+
+
+ {$result_count} results + {if="!empty($search_term)"} + for {$search_term} + {/if} + {if="!empty($search_tags)"} + {$exploded_tags=explode(' ', $search_tags)} + tagged + {loop="$exploded_tags"} + + {$value} + + {/loop} + {/if} +
{/if} 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 @@
- + -- 2.41.0