From 6d5a6b620b2c8b4d7782d94729adb55a8db09700 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 18 Nov 2010 14:03:44 -0500 Subject: [PATCH] Tweak css of month view, consistent navigation header, fix typo --- kronolith/js/mobile.js | 2 +- kronolith/templates/mobile/month.html.php | 12 ++++++------ kronolith/themes/mobile.css | 27 +++++++-------------------- 3 files changed, 14 insertions(+), 27 deletions(-) diff --git a/kronolith/js/mobile.js b/kronolith/js/mobile.js index c6f123620..0c91b6b68 100644 --- a/kronolith/js/mobile.js +++ b/kronolith/js/mobile.js @@ -663,7 +663,7 @@ break; case 'month': - if (map == 'swipeleft') { + if (map.type == 'swipeleft') { KronolithMobile.showNextMonth(); } else { KronolithMobile.showPrevMonth(); diff --git a/kronolith/templates/mobile/month.html.php b/kronolith/templates/mobile/month.html.php index 887eae987..a322bf37e 100644 --- a/kronolith/templates/mobile/month.html.php +++ b/kronolith/templates/mobile/month.html.php @@ -13,15 +13,15 @@
  • +
    + ">< + today->format('F Y') ?> + ">> +
    -
    +
    - getValue('week_start_monday'), $c = $i + 7; $i < $c; $i++): ?> diff --git a/kronolith/themes/mobile.css b/kronolith/themes/mobile.css index d4835a6b4..c009fadcc 100644 --- a/kronolith/themes/mobile.css +++ b/kronolith/themes/mobile.css @@ -64,7 +64,7 @@ } /* Mini calendar */ .kronolithMinical { - position: relative; + } #kronolithMinical { } @@ -72,8 +72,7 @@ width: 100%; border-spacing: 0; } -.kronolithMinical caption, #kronolithBody .kronolithMinical caption { - position: relative; +#kronolithBody .kronolithMinical caption { margin: 0 1px 1px 1px; height: 20px; line-height: 20px; @@ -82,25 +81,13 @@ border-bottom: 1px #999 dotted; text-align: left; } -.kronolithMinical caption span { - overflow: hidden; - white-space: nowrap; - cursor: pointer; -} -#kronolithMinicalPrev, #kronolithMinicalNext { - position: absolute; - top: 0; - right: 0; - width: 16px; - text-indent: -10000px; - cursor: pointer; - background: transparent url("graphics/right.png") no-repeat right center; + +.kronolithMonthHeader { + text-align: center; } -#kronolithMinicalPrev { - background-image: url("graphics/left.png"); - right: 15px; +.kronolithMonthHeader a { + vertical-align: middle; } - .kronolithMinical th, .kronolithMinical td { font-size: 90%; } -- 2.11.0
    - ">< - ">> - today->format('F Y') ?> -