diff options
author | VirtualTam <virtualtam@flibidi.org> | 2014-12-02 21:00:52 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.org> | 2014-12-03 19:28:43 +0100 |
commit | c133612f32849b76785635efe19d4afedcfd0248 (patch) | |
tree | 0ecbebedef56698fa991a60196e06435d4e2f3d7 /tpl/linklist.html | |
parent | fdd8fb2be2c45bd810a2d8b55c1f2cbf7f655fe3 (diff) | |
download | Shaarli-c133612f32849b76785635efe19d4afedcfd0248.tar.gz Shaarli-c133612f32849b76785635efe19d4afedcfd0248.tar.zst Shaarli-c133612f32849b76785635efe19d4afedcfd0248.zip |
CSS: remove hardcoded style from templates
Fixes shaarli/Shaarli#29
Style elements refactored as follows:
- use existing ids and classes if possible,
- else, define new ones and stick with the existing naming convention,
- remove hardcoded style attributes from RainTPL templates.
Exception:
In tpl/tagcloud.html, the display size of each tag is computed at page
generation.
Signed-off-by: VirtualTam <virtualtam@flibidi.org>
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r-- | tpl/linklist.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html index d33fc3c3..eadbc4cd 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html | |||
@@ -4,9 +4,9 @@ | |||
4 | <body> | 4 | <body> |
5 | <div id="pageheader"> | 5 | <div id="pageheader"> |
6 | {include="page.header"} | 6 | {include="page.header"} |
7 | <div id="headerform" style="width:100%; white-space:nowrap;"> | 7 | <div id="headerform" class="search"> |
8 | <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" id="searchform_value" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form> | 8 | <form method="GET" class="searchform" name="searchform"><input type="text" id="searchform_value" name="searchterm" value=""> <input type="submit" value="Search" class="bigbutton"></form> |
9 | <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="tagfilter_value" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form> | 9 | <form method="GET" class="tagfilter" name="tagfilter"><input type="text" name="searchtags" id="tagfilter_value" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form> |
10 | </div> | 10 | </div> |
11 | </div> | 11 | </div> |
12 | 12 | ||
@@ -23,7 +23,7 @@ | |||
23 | {if="$search_type=='tags'"} | 23 | {if="$search_type=='tags'"} |
24 | <div id="searchcriteria">{$result_count} results for tags <i> | 24 | <div id="searchcriteria">{$result_count} results for tags <i> |
25 | {loop="search_crits"} | 25 | {loop="search_crits"} |
26 | <span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span style="border-left:1px solid #aaa; padding-left:5px; color:#6767A7;">x</span></a></span> | 26 | <span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span class="remove">x</span></a></span> |
27 | {/loop}</i></div> | 27 | {/loop}</i></div> |
28 | {/if} | 28 | {/if} |
29 | {/if} | 29 | {/if} |
@@ -42,7 +42,7 @@ | |||
42 | {/if} | 42 | {/if} |
43 | <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span> | 43 | <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span> |
44 | <br> | 44 | <br> |
45 | {if="$value.description"}<div class="linkdescription"{if="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if} | 45 | {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if} |
46 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} | 46 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} |
47 | <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span> | 47 | <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span> |
48 | {else} | 48 | {else} |
@@ -51,8 +51,8 @@ | |||
51 | {if="$GLOBALS['config']['ARCHIVE_ORG']"} | 51 | {if="$GLOBALS['config']['ARCHIVE_ORG']"} |
52 | <span class="linkarchive"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">archive</a> - </span> | 52 | <span class="linkarchive"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">archive</a> - </span> |
53 | {/if} | 53 | {/if} |
54 | <div style="position:relative;display:inline;"><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}" | 54 | <div class="linkqrcode"><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}" |
55 | onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" width="13" height="13" title="QR-Code"></a></div> - | 55 | onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code"></a></div> - |
56 | <a href={$value.url|htmlspecialchars}><span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span></a><br> | 56 | <a href={$value.url|htmlspecialchars}><span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span></a><br> |
57 | {if="$value.tags"} | 57 | {if="$value.tags"} |
58 | <div class="linktaglist"> | 58 | <div class="linktaglist"> |