From d96ad14284b0457bf1f2e2a94cf2295ec63a9a24 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Sat, 31 Jan 2015 00:42:40 +0100 Subject: [PATCH] Calendar: Clean up styles, add comments Ref gh-1432 --- themes/base/calendar.css | 43 ++++++---------------------------------- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/themes/base/calendar.css b/themes/base/calendar.css index 2262e97a9..b8e99baf5 100644 --- a/themes/base/calendar.css +++ b/themes/base/calendar.css @@ -12,6 +12,8 @@ width: 17em; padding: .2em .2em 0; } + +/* calendar header */ .ui-calendar .ui-calendar-header { position: relative; padding: .2em 0; @@ -29,22 +31,12 @@ background: none; border: none; } -.ui-calendar .ui-calendar-prev-hover, -.ui-calendar .ui-calendar-next-hover { - top: 1px; -} .ui-calendar .ui-calendar-prev { left: 2px; } .ui-calendar .ui-calendar-next { right: 2px; } -.ui-calendar .ui-calendar-prev-hover { - left: 1px; -} -.ui-calendar .ui-calendar-next-hover { - right: 1px; -} .ui-calendar .ui-calendar-prev .ui-icon, .ui-calendar .ui-calendar-next .ui-icon { display: block; @@ -58,14 +50,8 @@ line-height: 1.8em; text-align: center; } -.ui-calendar .ui-calendar-title select { - font-size: 1em; - margin: 1px 0; -} -.ui-calendar select.ui-calendar-month, -.ui-calendar select.ui-calendar-year { - width: 49%; -} + +/* calendar grid */ .ui-calendar table { width: 100%; font-size: .9em; @@ -96,6 +82,8 @@ .ui-calendar .ui-state-disabled button { cursor: default; } + +/* button pane */ .ui-calendar .ui-calendar-buttonpane { background-image: none; margin: .7em 0 0 0; @@ -128,19 +116,6 @@ width: 95%; margin: 0 2.5% .4em; } -.ui-calendar-multi-2 .ui-calendar-group { - width: 50%; -} -.ui-calendar-multi-3 .ui-calendar-group { - width: 33.3%; -} -.ui-calendar-multi-4 .ui-calendar-group { - width: 25%; -} -.ui-calendar-multi .ui-calendar-group-last .ui-calendar-header, -.ui-calendar-multi .ui-calendar-group-middle .ui-calendar-header { - border-left-width: 0; -} .ui-calendar-multi .ui-calendar-buttonpane { clear: left; } @@ -180,9 +155,3 @@ .ui-calendar-rtl .ui-calendar-group { float: right; } -.ui-calendar-rtl .ui-calendar-group-last .ui-calendar-header, -.ui-calendar-rtl .ui-calendar-group-middle .ui-calendar-header { - border-right-width: 0; - border-left-width: 1px; -} -