Skip to content

Commit

Permalink
Fix alignement and better clarity for 'List all links with those tags…
Browse files Browse the repository at this point in the history
…' button

Fix CSS class typo and display the link as a button

Fixes shaarli#999
  • Loading branch information
ArthurHoaro committed Nov 8, 2017
1 parent b14d34d commit 055ce4b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
20 changes: 19 additions & 1 deletion tpl/default/css/shaarli.css
Original file line number Diff line number Diff line change
Expand Up @@ -1327,4 +1327,22 @@ form[name="linkform"].page-form {

.markdown *:last-child {
margin-bottom: 5px !important;
}
}

/**
* Pure Button
*/
.pure-button-success,
.pure-button-error,
.pure-button-warning,
.pure-button-primary,
.pure-button-shaarli,
.pure-button-secondary {
color: white !important;
border-radius: 4px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.pure-button-shaarli {
background-color: #1B926C;
}
6 changes: 4 additions & 2 deletions tpl/default/tag.cloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
{$countTags=count($tags)}
<h2 class="window-title">{'Tag cloud'|t} - {$countTags} {'tags'|t}</h2>
{if="!empty($search_tags)"}
<p class="enter">
<a href="?searchtags={$search_tags|urlencode}">{'List all links with those tags'|t}</a>
<p class="center">
<a href="?searchtags={$search_tags|urlencode}" class="pure-button pure-button-shaarli">
{'List all links with those tags'|t}
</a>
</p>
{/if}

Expand Down
4 changes: 3 additions & 1 deletion tpl/default/tag.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
<h2 class="window-title">{'Tag list'|t} - {$countTags} {'tags'|t}</h2>
{if="!empty($search_tags)"}
<p class="center">
<a href="?searchtags={$search_tags|urlencode}">{'List all links with those tags'|t}</a>
<a href="?searchtags={$search_tags|urlencode}" class="pure-button pure-button-shaarli">
{'List all links with those tags'|t}
</a>
</p>
{/if}

Expand Down

0 comments on commit 055ce4b

Please sign in to comment.