From c133612f32849b76785635efe19d4afedcfd0248 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 2 Dec 2014 21:00:52 +0100 Subject: 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 --- inc/shaarli.css | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 115 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/shaarli.css b/inc/shaarli.css index 22000ba9..e7396ccb 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -118,6 +118,14 @@ h1 { cursor: pointer; } +#pageheader #linkcount { + float: right; + font-style: italic; + color: #bbb; + text-align: right; + padding-right: 5px; +} + #pageheader { background-color: #333333; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#333333), to(#111111)); @@ -149,10 +157,19 @@ h1 { text-decoration: none; } +#pageheader .search { + width: 100%; + white-space: nowrap; +} + #toolsdiv a { clear: both; } +#toolsdiv #bookmark { + clear: none; +} + #toolsdiv a span { color: #ffffff; } @@ -191,6 +208,18 @@ h1 { padding: 0; } +.searchform #searchform_value { + width: 30%; +} + +.tagfilter { + margin-left:24px; +} + +.tagfilter #tagfilter_value { + width: 10%; +} + .tagfilter input.bigbutton, .searchform input.bigbutton, .addform input.bigbutton { background-color: #dedede; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#dedede), to(#ffffff)); @@ -271,6 +300,14 @@ h1 { padding-right: 5px; } +#paging_linksperpage form.linksperpage { + display: inline; +} + +#paging_linksperpage form.linksperpage input { + height: 15px; +} + #paging_current { display: inline; color: #fff; @@ -291,6 +328,10 @@ h1 { clear: both; } +#headerform input.linkurl { + width: 50%; +} + #toolsdiv { color: #ffffff; padding: 5px 5px 5px 5px; @@ -311,6 +352,10 @@ h1 { clear: left; } +#editlinkform textarea, #editlinkform .lf_input { + width: 100%; +} + #linklist li { padding: 4px 10px 15px 20px; border-top: 1px solid #bbb; @@ -339,6 +384,16 @@ h1 { color:#E28E3F; } +.linkqrcode { + display: inline; + position: relative; +} + +a.qrcode img { + width: 13px; + height: 13px; +} + #linklist li.private { background: url('../images/private.png') no-repeat 10px center; padding-left: 60px; @@ -440,6 +495,12 @@ h1 { text-decoration: none; } +.linktag .remove { + border-left: 1px solid #aaa; + padding-left: 5px; + color:#6767A7; +} + .linkshort { font-size: 8pt; color: #888; @@ -466,11 +527,11 @@ h1 { clear: both; } -#footer a { +#footer a { color: #486D08; } -#footer a:hover { +#footer a:hover { color: #000000; } @@ -484,16 +545,41 @@ h1 { font-size: 9pt; } +#newversion #version_id { + text-decoration: blink; +} + #cloudtag { padding-left: 10%; padding-right: 10%; } +#cloudtag .count { + color: #99f; + font-size: 9pt; + padding-left: 5px; + padding-right: 2px; +} + #cloudtag a { + font-weight:bold; color: black; text-decoration: none; } +#install { + margin: 0 20px; +} + +#installform { + border: 1px solid black; + padding: 10px; +} + +#installform table { + border: none; +} + #installform td { font-size: 10pt; color: black; @@ -501,6 +587,10 @@ h1 { clear: left; } +#installform input.bigbutton { + float: right; +} + #changepasswordform { color: #ccc; padding: 10px 5px 10px 5px; @@ -513,6 +603,10 @@ h1 { clear: left; } +#changetag #totag { + margin-left: 40px; +} + #configform td { color: #ccc; font-size: 10pt; @@ -676,6 +770,14 @@ div.dailyAbout a { color: #890500; } +div.dailyAbout img { + position: relative; + top: 3px; + margin-right: 4px; + width: 14px; + height: 14px; +} + div.dailyTitle { font-weight: bold; font-size: 44pt; @@ -726,6 +828,17 @@ div.dailyEntryDescription { overflow: auto; } +div.dailyNoEntry { + text-align: center; + padding: 40px 0px 90px 0px; +} + +.daily #closing { + clear: both; + text-align: center; + padding-bottom: 20px; +} + /* Common CSS screwdriver */ .clear { clear: both; -- cgit v1.2.3