From f210d94f716acd86fd22c9651f591a778490e8a9 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Thu, 1 Jun 2017 17:55:26 +0200 Subject: Using only one form in linklist.html + adding untaggedonly filter - fix #885 --- tpl/default/css/shaarli.css | 45 ++++++++++++++++++------------------ tpl/default/linklist.html | 50 +++++++++++++++++----------------------- tpl/default/linklist.paging.html | 11 +++++---- tpl/default/page.header.html | 39 ++++++++++++------------------- 4 files changed, 65 insertions(+), 80 deletions(-) (limited to 'tpl') diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 39bbd0a3..e1868c59 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -226,6 +226,12 @@ body, .pure-g [class*="pure-u"] { border-radius: 2px; color: #252525; } +@media screen and (max-width: 64em) { + .searchform { + max-width: 260px; + margin: 0 auto; + } +} /* because chrome */ #search input[type="text"]::-webkit-input-placeholder, @@ -236,43 +242,37 @@ body, .pure-g [class*="pure-u"] { #search button, #search-tagcloud button, #search-linklist button { - background: transparent; + padding: 4px 8px 6px 8px; + background-color: #1B926C; + color: #f5f5f5; border: none; + border-radius: 2px; } -#search button { - color: #f5f5f5; +#search-tagcloud button { + width: 90%; } -#search-linklist button { - color: #252525; +@media screen and (max-width: 64em) { + #search-linklist button { + width: 100%; + } + #search-linklist .awesomplete { + margin: 5px 0; + } } #search button:hover, -#search-linklist button:hover { - color: #fff; -} +#search-linklist button:hover, #search-tagcloud button:hover { color: #d0d0d0; } +#search, #search-linklist { - padding: 5px 0; + padding: 6px 0; } -@media screen and (min-width: 64em) { - #search .searchform, - #search-linklist .searchform { - margin-right: 25px; - text-align: right; - } - - #search .tagfilter, - #search-linklist .tagfilter { - margin-left: 25px; - text-align: left; - } -} @media screen and (max-width: 64em) { #search, #search * { visibility: hidden; @@ -321,7 +321,6 @@ body, .pure-g [class*="pure-u"] { } .subheader-form input[type="text"], .subheader-form input[type="password"], .subheader-form .remember-me { - margin: 0 0 5px 0; padding: 5px 5px 3px 15px; height: 20px; width: 20%; diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 2568a5d6..685821e3 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -19,30 +19,21 @@ {loop="$plugins_header.fields_toolbar"} @@ -91,7 +82,7 @@
{'Nothing found.'|t}
- {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility)"} + {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility) or $untaggedonly"}
@@ -107,10 +98,6 @@ {$value} {/loop} - {elseif="$search_tags === false"} - - {'untagged'|t} - {/if} {if="!empty($visibility)"} {'with status'|t} @@ -118,6 +105,11 @@ {$visibility|t} {/if} + {if="$untaggedonly"} + + {'without any tag'|t} + + {/if}
{/if} diff --git a/tpl/default/linklist.paging.html b/tpl/default/linklist.paging.html index d8c1e76e..41e9fa34 100644 --- a/tpl/default/linklist.paging.html +++ b/tpl/default/linklist.paging.html @@ -6,10 +6,13 @@ {'Filters'|t} {if="isLoggedIn()"} - + {/if} + @@ -55,4 +58,4 @@ - \ No newline at end of file + diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 6c71a718..2411703c 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -97,30 +97,21 @@
-- cgit v1.2.3