diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-11-02 15:31:09 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-11-05 14:29:53 +0100 |
commit | 8fd434886b5d5ec1e2471732d53c92724ab04fa4 (patch) | |
tree | fe2d6a3d2d9bc0950cf81334fe47d067a46dd8ca | |
parent | 7a50e56a6373c572cf5589d7dd427ae2b07edb36 (diff) | |
download | Shaarli-8fd434886b5d5ec1e2471732d53c92724ab04fa4.tar.gz Shaarli-8fd434886b5d5ec1e2471732d53c92724ab04fa4.tar.zst Shaarli-8fd434886b5d5ec1e2471732d53c92724ab04fa4.zip |
Minor adjustments
-rw-r--r-- | tpl/default/changetag.html | 2 | ||||
-rw-r--r-- | tpl/default/css/shaarli.css | 29 | ||||
-rw-r--r-- | tpl/default/img/logo2.png | bin | 6252 -> 0 bytes | |||
-rw-r--r-- | tpl/default/js/shaarli.js | 20 | ||||
-rw-r--r-- | tpl/default/linklist.paging.html | 2 | ||||
-rw-r--r-- | tpl/default/page.footer.html | 4 | ||||
-rw-r--r-- | tpl/default/page.header.html | 16 | ||||
-rw-r--r-- | tpl/default/pluginsadmin.html | 6 | ||||
-rw-r--r-- | tpl/default/tools.html | 4 |
9 files changed, 55 insertions, 28 deletions
diff --git a/tpl/default/changetag.html b/tpl/default/changetag.html index cf0e5a9f..0aae9090 100644 --- a/tpl/default/changetag.html +++ b/tpl/default/changetag.html | |||
@@ -25,7 +25,7 @@ | |||
25 | {loop="$tags"}<option>{$key}</option>{/loop} | 25 | {loop="$tags"}<option>{$key}</option>{/loop} |
26 | </datalist> | 26 | </datalist> |
27 | </div> | 27 | </div> |
28 | <div>{'Case sensitive'|t}</div> | 28 | <div><i class="fa fa-info-circle"></i> {'Case sensitive'|t}</div> |
29 | <input type="hidden" name="token" value="{$token}"> | 29 | <input type="hidden" name="token" value="{$token}"> |
30 | <div> | 30 | <div> |
31 | <input type="submit" value="{'Rename'|t}" name="renametag"> | 31 | <input type="submit" value="{'Rename'|t}" name="renametag"> |
diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index debd25ea..91d801a5 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css | |||
@@ -112,10 +112,6 @@ pre { | |||
112 | transition: max-height 0.75s; | 112 | transition: max-height 0.75s; |
113 | } | 113 | } |
114 | 114 | ||
115 | .pure-menu-selected { | ||
116 | background: #b0ddce; | ||
117 | } | ||
118 | |||
119 | .pure-menu-link, | 115 | .pure-menu-link, |
120 | .pure-menu-link:visited, | 116 | .pure-menu-link:visited, |
121 | .pure-menu-selected .pure-menu-link, | 117 | .pure-menu-selected .pure-menu-link, |
@@ -174,7 +170,7 @@ pre { | |||
174 | #header { | 170 | #header { |
175 | width: 100%; | 171 | width: 100%; |
176 | height: 150px; | 172 | height: 150px; |
177 | background: url(../img/noise.png), #1fa67a url(../img/logo2.png) no-repeat fixed 10px 2.5em; | 173 | background: url(../img/noise.png), #1fa67a url(../img/logo.png) no-repeat fixed 10px 2.5em; |
178 | } | 174 | } |
179 | 175 | ||
180 | #header h1 { | 176 | #header h1 { |
@@ -515,6 +511,7 @@ pre { | |||
515 | } | 511 | } |
516 | 512 | ||
517 | .linklist-item-thumbnail { | 513 | .linklist-item-thumbnail { |
514 | margin-top: 10px; | ||
518 | padding: 10px; | 515 | padding: 10px; |
519 | float: left; | 516 | float: left; |
520 | } | 517 | } |
@@ -672,6 +669,7 @@ pre { | |||
672 | .page-form select { | 669 | .page-form select { |
673 | color: black; | 670 | color: black; |
674 | } | 671 | } |
672 | |||
675 | /** | 673 | /** |
676 | * PAGE FORM - LIGHT | 674 | * PAGE FORM - LIGHT |
677 | */ | 675 | */ |
@@ -717,6 +715,12 @@ pre { | |||
717 | font-size: 0.7em; | 715 | font-size: 0.7em; |
718 | } | 716 | } |
719 | 717 | ||
718 | .page-form-complete input[type="text"], | ||
719 | .page-form-complete input[type="password"], | ||
720 | .page-form-complete textarea { | ||
721 | margin: 0; | ||
722 | } | ||
723 | |||
720 | .page-form section { | 724 | .page-form section { |
721 | margin-top: 20px; | 725 | margin-top: 20px; |
722 | } | 726 | } |
@@ -1133,4 +1137,17 @@ pre { | |||
1133 | .daily-entry-thumbnail { | 1137 | .daily-entry-thumbnail { |
1134 | float: left; | 1138 | float: left; |
1135 | margin: 15px 5px 5px 5px; | 1139 | margin: 15px 5px 5px 5px; |
1136 | } \ No newline at end of file | 1140 | } |
1141 | |||
1142 | .daily-entry-description a { | ||
1143 | text-decoration: none; | ||
1144 | color: #1b926c; | ||
1145 | } | ||
1146 | |||
1147 | .daily-entry-description a:hover { | ||
1148 | text-shadow: 1px 1px #ddd; | ||
1149 | } | ||
1150 | |||
1151 | .daily-entry-description a:visited { | ||
1152 | color: #20b988; | ||
1153 | } | ||
diff --git a/tpl/default/img/logo2.png b/tpl/default/img/logo2.png deleted file mode 100644 index ef0e09ac..00000000 --- a/tpl/default/img/logo2.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index 53ec20c5..3afec7f3 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js | |||
@@ -68,16 +68,18 @@ var searchInputs = document.querySelectorAll('#search input[type="text"]'); | |||
68 | }); | 68 | }); |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Fold/Expand shaares description. | 71 | * Fold/Expand shaares description and thumbnail. |
72 | */ | 72 | */ |
73 | var foldButtons = document.querySelectorAll('.fold-button'); | 73 | var foldButtons = document.querySelectorAll('.fold-button'); |
74 | [].forEach.call(foldButtons, function(foldButton) { | 74 | [].forEach.call(foldButtons, function(foldButton) { |
75 | // Retrieve description | 75 | // Retrieve description |
76 | var description = null; | 76 | var description = null; |
77 | var thumbnail = null; | ||
77 | var linklistItem = getParentByClass(foldButton, 'linklist-item'); | 78 | var linklistItem = getParentByClass(foldButton, 'linklist-item'); |
78 | if (linklistItem != null) { | 79 | if (linklistItem != null) { |
79 | description = linklistItem.querySelector('.linklist-item-description'); | 80 | description = linklistItem.querySelector('.linklist-item-description'); |
80 | if (description != null) { | 81 | thumbnail = linklistItem.querySelector('.linklist-item-thumbnail'); |
82 | if (description != null || thumbnail != null) { | ||
81 | foldButton.style.display = 'inline'; | 83 | foldButton.style.display = 'inline'; |
82 | } | 84 | } |
83 | } | 85 | } |
@@ -88,11 +90,21 @@ var foldButtons = document.querySelectorAll('.fold-button'); | |||
88 | // Switch fold/expand - up = fold | 90 | // Switch fold/expand - up = fold |
89 | if (event.target.classList.contains('fa-chevron-up')) { | 91 | if (event.target.classList.contains('fa-chevron-up')) { |
90 | event.target.title = 'Expand'; | 92 | event.target.title = 'Expand'; |
91 | description.style.display = 'none'; | 93 | if (description != null) { |
94 | description.style.display = 'none'; | ||
95 | } | ||
96 | if (thumbnail != null) { | ||
97 | thumbnail.style.display = 'none'; | ||
98 | } | ||
92 | } | 99 | } |
93 | else { | 100 | else { |
94 | event.target.title = 'Fold'; | 101 | event.target.title = 'Fold'; |
95 | description.style.display = 'block'; | 102 | if (description != null) { |
103 | description.style.display = 'block'; | ||
104 | } | ||
105 | if (thumbnail != null) { | ||
106 | thumbnail.style.display = 'block'; | ||
107 | } | ||
96 | } | 108 | } |
97 | event.target.classList.toggle('fa-chevron-down'); | 109 | event.target.classList.toggle('fa-chevron-down'); |
98 | event.target.classList.toggle('fa-chevron-up'); | 110 | event.target.classList.toggle('fa-chevron-up'); |
diff --git a/tpl/default/linklist.paging.html b/tpl/default/linklist.paging.html index 3e5a5868..4dbfb324 100644 --- a/tpl/default/linklist.paging.html +++ b/tpl/default/linklist.paging.html | |||
@@ -47,7 +47,7 @@ | |||
47 | <a href="?linksperpage=20">20</a> | 47 | <a href="?linksperpage=20">20</a> |
48 | <a href="?linksperpage=50">50</a> | 48 | <a href="?linksperpage=50">50</a> |
49 | <a href="?linksperpage=100">100</a> | 49 | <a href="?linksperpage=100">100</a> |
50 | <form method="GET"> | 50 | <form method="GET" class="pure-u-0 pure-u-lg-visible"> |
51 | <input type="text" name="linksperpage" placeholder="133"> | 51 | <input type="text" name="linksperpage" placeholder="133"> |
52 | </form> | 52 | </form> |
53 | </div> | 53 | </div> |
diff --git a/tpl/default/page.footer.html b/tpl/default/page.footer.html index b9d4389b..527c0504 100644 --- a/tpl/default/page.footer.html +++ b/tpl/default/page.footer.html | |||
@@ -1,8 +1,8 @@ | |||
1 | <div class="pure-g"> | 1 | <div class="pure-g"> |
2 | <div class="pure-u-2-24"></div> | 2 | <div class="pure-u-2-24"></div> |
3 | <div id="footer" class="pure-u-20-24"> | 3 | <div id="footer" class="pure-u-20-24"> |
4 | <strong><a href="https://github.com/shaarli/Shaarli">Shaarli</a></strong> - | 4 | <strong><a href="https://github.com/shaarli/Shaarli">Shaarli</a></strong> · |
5 | The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - | 5 | The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community · |
6 | <a href="doc/Home.html" rel="nofollow">Documentation</a> | 6 | <a href="doc/Home.html" rel="nofollow">Documentation</a> |
7 | {loop="$plugins_footer.text"} | 7 | {loop="$plugins_footer.text"} |
8 | {$value} | 8 | {$value} |
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 5442ab42..39edf518 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html | |||
@@ -11,7 +11,7 @@ | |||
11 | <div class="pure-u-1"> | 11 | <div class="pure-u-1"> |
12 | <div class="pure-menu menu-transform pure-menu-horizontal pure-g"> | 12 | <div class="pure-menu menu-transform pure-menu-horizontal pure-g"> |
13 | <ul class="pure-menu-list pure-u-lg-11-12 pure-u-1"> | 13 | <ul class="pure-menu-list pure-u-lg-11-12 pure-u-1"> |
14 | <li class="pure-menu-item pure-menu-selected pure-u-0 pure-u-lg-visible"> | 14 | <li class="pure-menu-item pure-u-0 pure-u-lg-visible"> |
15 | <a href="{$titleLink}" class="pure-menu-link"> | 15 | <a href="{$titleLink}" class="pure-menu-link"> |
16 | <i class="fa fa-home"></i> | 16 | <i class="fa fa-home"></i> |
17 | </a> | 17 | </a> |
@@ -24,9 +24,6 @@ | |||
24 | <a href="?do=tools" class="pure-menu-link">{'Tools'|t}</a> | 24 | <a href="?do=tools" class="pure-menu-link">{'Tools'|t}</a> |
25 | </li> | 25 | </li> |
26 | {/if} | 26 | {/if} |
27 | <li class="pure-menu-item pure-u-lg-0"> | ||
28 | <a href="?do=atom{$searchcrits}" class="pure-menu-link">{'RSS Feed'|t}</a> | ||
29 | </li> | ||
30 | <li class="pure-menu-item"> | 27 | <li class="pure-menu-item"> |
31 | <a href="?do=tagcloud" class="pure-menu-link">{'Tag cloud'|t}</a> | 28 | <a href="?do=tagcloud" class="pure-menu-link">{'Tag cloud'|t}</a> |
32 | </li> | 29 | </li> |
@@ -43,14 +40,17 @@ | |||
43 | </li> | 40 | </li> |
44 | {/loop} | 41 | {/loop} |
45 | {if="isLoggedIn()"} | 42 | {if="isLoggedIn()"} |
46 | <li class="pure-menu-item"> | 43 | <li class="pure-menu-item pure-u-lg-0"> |
47 | <a href="?do=logout" class="pure-menu-link">{'Logout'|t}</a> | 44 | <a href="?do=logout" class="pure-menu-link">{'Logout'|t}</a> |
48 | </li> | 45 | </li> |
49 | {else} | 46 | {else} |
50 | <li class="pure-menu-item"> | 47 | <li class="pure-menu-item pure-u-lg-0"> |
51 | <a href="?do=login" class="pure-menu-link">{'Login'|t}</a> | 48 | <a href="?do=login" class="pure-menu-link">{'Login'|t}</a> |
52 | </li> | 49 | </li> |
53 | {/if} | 50 | {/if} |
51 | <li class="pure-menu-item pure-u-lg-0"> | ||
52 | <a href="?do=atom{$searchcrits}" class="pure-menu-link">{'RSS Feed'|t}</a> | ||
53 | </li> | ||
54 | </ul> | 54 | </ul> |
55 | <div class="header-buttons pure-u-lg-1-12 pure-u-0 pure-u-lg-visible"> | 55 | <div class="header-buttons pure-u-lg-1-12 pure-u-0 pure-u-lg-visible"> |
56 | <ul class="pure-menu-list"> | 56 | <ul class="pure-menu-list"> |
@@ -80,7 +80,7 @@ | |||
80 | 80 | ||
81 | <div id="header" class="pure-u-0 pure-u-lg-visible"> | 81 | <div id="header" class="pure-u-0 pure-u-lg-visible"> |
82 | <h1 id="header-title"> | 82 | <h1 id="header-title"> |
83 | <a href="{if="{$titleLink}"> | 83 | <a href="$titleLink"> |
84 | {$shaarlititle} | 84 | {$shaarlititle} |
85 | </a> | 85 | </a> |
86 | </h1> | 86 | </h1> |
@@ -99,7 +99,6 @@ | |||
99 | {if="!empty($search_term)"} | 99 | {if="!empty($search_term)"} |
100 | value="{$search_term}" | 100 | value="{$search_term}" |
101 | {/if} | 101 | {/if} |
102 | tabindex="1" | ||
103 | > | 102 | > |
104 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | 103 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> |
105 | </form> | 104 | </form> |
@@ -110,7 +109,6 @@ | |||
110 | {/if} | 109 | {/if} |
111 | autocomplete="off" data-multiple data-minChars="1" | 110 | autocomplete="off" data-multiple data-minChars="1" |
112 | data-list="{loop="$tags"}{$key}, {/loop}" | 111 | data-list="{loop="$tags"}{$key}, {/loop}" |
113 | tabindex="2" | ||
114 | > | 112 | > |
115 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | 113 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> |
116 | </form> | 114 | </form> |
diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html index 29f6e15e..ac38db97 100644 --- a/tpl/default/pluginsadmin.html +++ b/tpl/default/pluginsadmin.html | |||
@@ -137,7 +137,7 @@ | |||
137 | <div class="pure-g"> | 137 | <div class="pure-g"> |
138 | <div class="pure-u-lg-1-6 pure-u-1-8"></div> | 138 | <div class="pure-u-lg-1-6 pure-u-1-8"></div> |
139 | <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-form-light"> | 139 | <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-form-light"> |
140 | <h2>{'Plugin configuration'|t}</h2> | 140 | <h2 class="window-title">{'Plugin configuration'|t}</h2> |
141 | <section id="plugin_parameters"> | 141 | <section id="plugin_parameters"> |
142 | <div> | 142 | <div> |
143 | {if="count($enabledPlugins)==0"} | 143 | {if="count($enabledPlugins)==0"} |
@@ -153,12 +153,12 @@ | |||
153 | <label for="{$key}"> | 153 | <label for="{$key}"> |
154 | <code>{$key}</code> | 154 | <code>{$key}</code> |
155 | {if="isset($value.desc)"} | 155 | {if="isset($value.desc)"} |
156 | {$value.desc} | 156 | · {$value.desc} |
157 | {/if} | 157 | {/if} |
158 | </label> | 158 | </label> |
159 | </div> | 159 | </div> |
160 | <div class="float_input"> | 160 | <div class="float_input"> |
161 | <input name="{$key}" value="{$value}" id="{$key}" type="text" /> | 161 | <input name="{$key}" value="{$value.value}" id="{$key}" type="text" /> |
162 | </div> | 162 | </div> |
163 | </div> | 163 | </div> |
164 | {/loop} | 164 | {/loop} |
diff --git a/tpl/default/tools.html b/tpl/default/tools.html index 14a29320..62ae278b 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html | |||
@@ -58,10 +58,10 @@ | |||
58 | <div class="pure-u-lg-1-3 pure-u-1-8"></div> | 58 | <div class="pure-u-lg-1-3 pure-u-1-8"></div> |
59 | <div class="pure-u-lg-1-3 pure-u-3-4 page-form page-form-light"> | 59 | <div class="pure-u-lg-1-3 pure-u-3-4 page-form page-form-light"> |
60 | <h2 class="window-title">Bookmarklets</h2> | 60 | <h2 class="window-title">Bookmarklets</h2> |
61 | <p> | 61 | <div> |
62 | {'Drag one of these button to your bookmarks toolbar or right-click it and "Bookmark This Link"'|t}, | 62 | {'Drag one of these button to your bookmarks toolbar or right-click it and "Bookmark This Link"'|t}, |
63 | {'then click on the bookmarklet in any page you want to share.'|t} | 63 | {'then click on the bookmarklet in any page you want to share.'|t} |
64 | </p> | 64 | </div> |
65 | <div class="tools-item"> | 65 | <div class="tools-item"> |
66 | <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t}, | 66 | <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t}, |
67 | {'then click ✚Shaare link button in any page you want to share'|t}" | 67 | {'then click ✚Shaare link button in any page you want to share'|t}" |