From 5ba350a8dc852caeafd626620d8a97a45e19275c Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 30 Oct 2013 06:35:08 +0000 Subject: [PATCH] simplified clandar bar template and css (also better alignment) git-svn-id: http://piwigo.org/svn/trunk@25232 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/Sylvia/theme.css | 2 +- themes/clear/theme.css | 2 +- themes/default/template/month_calendar.tpl | 8 +++----- themes/default/theme.css | 7 +++---- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/themes/Sylvia/theme.css b/themes/Sylvia/theme.css index b2a7dd485..7abbebe71 100644 --- a/themes/Sylvia/theme.css +++ b/themes/Sylvia/theme.css @@ -318,7 +318,7 @@ margin:0 5px; padding:2px 5px 0 8px; } -.calItemEmpty, td.calDayCellEmpty, td.calDayCellFull { +SPAN.calItem, td.calDayCellEmpty, td.calDayCellFull { border:1px solid #666; } diff --git a/themes/clear/theme.css b/themes/clear/theme.css index f6d8ca258..a7c64fa51 100644 --- a/themes/clear/theme.css +++ b/themes/clear/theme.css @@ -72,7 +72,7 @@ A.navThumb, A.navThumb:hover { } /*calendar elements*/ -.calItem, .calItemEmpty +.calItem { border: 1px solid silver; } diff --git a/themes/default/template/month_calendar.tpl b/themes/default/template/month_calendar.tpl index c3af37818..9fbd8a1fa 100644 --- a/themes/default/template/month_calendar.tpl +++ b/themes/default/template/month_calendar.tpl @@ -11,13 +11,11 @@   {else} {foreach from=$bar.items item=item} - - {if isset($item.URL)} - {$item.LABEL} + {if !isset($item.URL)} + {$item.LABEL} {else} - {$item.LABEL} + {$item.LABEL} {/if} - {/foreach} {/if} diff --git a/themes/default/theme.css b/themes/default/theme.css index de7f2bafa..1207c46b7 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -140,14 +140,13 @@ margin: 5px 5px 0 0; } -.calItem, .calItemEmpty { +.calItem { font-weight: bold; margin: 0 1px; + padding: 0 1px; border: 1px solid gray; } -.calItem A { text-decoration:none } - .calendarCalBar { margin: 10px; } @@ -664,7 +663,7 @@ IMG.ui-datepicker-trigger { */ /* So that non-links are slightly greyed out */ -.content .navigationBar, .calItemEmpty, TD.calDayCellEmpty { +.content .navigationBar, SPAN.calItem, TD.calDayCellEmpty { color: #b0b0b0; }