]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Search results
authorArthurHoaro <arthur@hoa.ro>
Sat, 6 Aug 2016 14:32:34 +0000 (16:32 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sun, 7 Aug 2016 10:17:36 +0000 (12:17 +0200)
tpl/default/css/shaarli.css
tpl/default/linklist.html
tpl/default/page.header.html

index c9229c3cd75db6ebc27835fa74ab7d63f605ef74..2f2f142d565c61d5a8bbe7afcd861bd416e8be02 100644 (file)
@@ -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
  */
index 174ab44bc7df67f336f2bf4850abe1e392f9ec0c..19a0c3c75b645ba06b22779903a16f41d3cd4c2e 100644 (file)
   </div>
 
   {if="count($links)==0"}
-    <div id="searchcriteria">Nothing found.</div>
+    <div class="pure-g pure-alert pure-alert-error search-result">
+      <div class="pure-u-2-24"></div>
+      <div class="pure-u-20-24">
+        <div id="searchcriteria">Nothing found.</div>
+      </div>
+    </div>
   {elseif="!empty($search_term) or !empty($search_tags)"}
-    <div id="searchcriteria">
-      {$result_count} results
-      {if="!empty($search_term)"}
-        for <em>{$search_term}</em>
-      {/if}
-      {if="!empty($search_tags)"}
-        {$exploded_tags=explode(' ', $search_tags)}
-        tagged
-        {loop="$exploded_tags"}
-          <span class="linktag" title="Remove tag">
-            <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a>
-          </span>
-        {/loop}
-      {/if}
+    <div class="pure-g pure-alert pure-alert-success search-result">
+      <div class="pure-u-2-24"></div>
+      <div class="pure-u-20-24">
+        {$result_count} results
+        {if="!empty($search_term)"}
+          for <em><strong>{$search_term}</strong></em>
+        {/if}
+        {if="!empty($search_tags)"}
+          {$exploded_tags=explode(' ', $search_tags)}
+          tagged
+          {loop="$exploded_tags"}
+              <span class="label label-tag" title="Remove tag">
+                <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a>
+              </span>
+          {/loop}
+        {/if}
+      </div>
     </div>
   {/if}
 
index bf5a65e8a51d4dd5b0f7b958f863d99a4125fcf3..dfec763a59a7feeb20b6228c2a26c6301e0b5823 100644 (file)
         <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6">
         <label for="longlastingsession">Remember me</label>
       </div>
-      <input type="hidden" name="token" value="{$token}">
+      <!--<input type="hidden" name="token" value="{$token}">-->
       <input type="hidden" name="returnurl">
       <input type="submit" value="Login" tabindex="7">
     </div>