Remove unsed CSS class and rules.
authorJan Schneider <jan@horde.org>
Wed, 11 Nov 2009 09:14:14 +0000 (10:14 +0100)
committerJan Schneider <jan@horde.org>
Wed, 11 Nov 2009 18:48:21 +0000 (19:48 +0100)
kronolith/js/kronolith.js
kronolith/templates/index/agenda.inc
kronolith/templates/index/day.inc
kronolith/templates/index/month.inc
kronolith/templates/index/week.inc
kronolith/themes/screen.css

index 0dece04..c024cdb 100644 (file)
@@ -564,8 +564,7 @@ KronolithCore = {
         row.removeAttribute('id');
 
         // Fill week number and day cells.
-        row.addClassName('kronolithRow' + (body.select('tr').length % 2 == 1 ? 'Odd' : 'Even'))
-            .down()
+        row.down()
             .setText(this.parseDate(date).toString('D'))
             .store('date', date)
             .next()
@@ -638,7 +637,7 @@ KronolithCore = {
             divA = trA.down('.kronolithAllDayContainer'),
             divATop = divA.cumulativeOffset().top,
             divAHeight = divA.getHeight(),
-            tr = $(view).down('.fixme').down('.kronolithRow'),
+            tr = $(view).down('.fixme').down('tr'),
             td = tr.down('td').next('td'), tdTop, tdHeight,
             tdAlign = td.getStyle('verticalAlign'),
             tr2 = tr.next('tr'),
index 28620ef..8fb3bee 100644 (file)
@@ -10,7 +10,7 @@
     </span>
   </caption>
   <tbody id="kronolithViewAgendaBody" class="kronolithViewBody">
-    <tr id="kronolithAgendaTemplate" class="kronolithRow" style="display:none">
+    <tr id="kronolithAgendaTemplate" style="display:none">
       <td class="kronolithFirstCol"></td>
       <td>
       </td>
index a810a73..3631ff8 100644 (file)
@@ -22,7 +22,7 @@
     </tr>
   </thead>
   <tbody class="kronolithViewBody">
-    <tr class="kronolithRow kronolithAllDay">
+    <tr class="kronolithAllDay">
       <td class="kronolithFirstCol"><?php echo _("All day") ?></td>
       <td><div class="kronolithAllDayContainer">
       </div></td>
@@ -35,7 +35,7 @@
 <table class="kronolithView kronolithViewDay">
   <tbody id="kronolithViewDayBody" class="kronolithViewBody fixme">
     <?php for ($i = 0; $i < 24; $i++): ?>
-    <tr class="kronolithRow<?php if ($i < 9 || $i > 19) echo ' kronolithNight' ?>">
+    <tr<?php if ($i < 9 || $i > 19) echo ' class="kronolithNight"' ?>>
       <td class="kronolithFirstCol"><?php echo $i ?>:00</td>
       <td></td>
     </tr>
index 82edb25..f3e6652 100644 (file)
@@ -19,7 +19,7 @@
 <div id="kronolithViewMonthContainer">
 <table class="kronolithView kronolithViewMonth">
 <tbody id="kronolithViewMonthBody">
-  <tr id="kronolithRowTemplate" class="kronolithRow" style="display:none">
+  <tr id="kronolithRowTemplate" style="display:none">
     <td class="kronolithFirstCol"></td>
     <td class="kronolithMonthDay<?php if ($w == 6 || $w == 0) echo ' kronolithWeekend' ?>">
       <div class="kronolithCorner"><div class="kronolithDay"></div></div>
index fce7976..1dbf1b4 100644 (file)
@@ -34,7 +34,7 @@
     <td class="kronolithWeekDay"><span>&nbsp;</span></td>
   </tr></thead>
   <tbody class="kronolithViewBody">
-    <tr class="kronolithRow kronolithAllDay">
+    <tr class="kronolithAllDay">
       <td class="kronolithFirstCol"><?php echo _("All day") ?></td>
       <td<?php if ($w == 6 || $w == 0) echo ' class="kronolithWeekend"' ?>><div class="kronolithAllDayContainer">
       </div></td>
@@ -59,7 +59,7 @@
 <table class="kronolithView kronolithViewDay">
   <tbody id="kronolithViewWeekBody" class="kronolithViewBody fixme">
     <?php for ($i = 0; $i < 24; $i++): ?>
-    <tr class="kronolithRow<?php if ($i < 9 || $i > 19) echo ' kronolithNight' ?>">
+    <tr<?php if ($i < 9 || $i > 19) echo ' class="kronolithNight"' ?>>
       <td class="kronolithFirstCol"><?php echo $i ?>:00</td>
       <td<?php if ($w == 6 || $w == 0) echo ' class="kronolithWeekend"' ?>>
       </td>
index 9ef343b..aca0788 100644 (file)
@@ -376,7 +376,6 @@ body.kronolithAjax {
     padding: 2px;
     width: 16px;
     height: 16px;
-    /* Take values from .kronolithRow */
     border: 1px #c0c0c0 solid;
 }
 
@@ -789,22 +788,6 @@ div#kronolithEventTabTags {
     bottom: 10px;
     overflow: auto;
 }
-div.kronolithView div.kronolithRow div {
-    width: 13%;
-}
-
-div.kronolithRow div {
-    float: left;
-    position: relative;
-    margin-right: 2px;
-    margin-bottom: 2px;
-    padding: 0;
-    border: 1px #c0c0c0 solid;
-    overflow: hidden;
-}
-div.kronolithRow div.kronolithFirstCol {
-    width: 20px !important;
-}
 table.kronolithView {
     width: 100%;
     height: 100%;
@@ -827,20 +810,6 @@ table.kronolithView td.kronolithFirstCol {
 }
 
 /* Main view header row */
-div.kronolithView div.kronolithViewHead div.kronolithRow {
-    height: 20px;
-}
-div.kronolithView div.kronolithViewHead div.kronolithRow div {
-    height: 21px;
-    line-height: 21px;
-    font-weight: bold;
-}
-div.kronolithView div.kronolithViewHead div.kronolithRow div span {
-    padding: 0 5px;
-}
-div.kronolithView div.kronolithViewHead div.kronolithRow div.kronolithFirstCol {
-    border-color: transparent;
-}
 #kronolithViewHead {
     width: 100%;
     height: 20px;
@@ -874,11 +843,6 @@ div.kronolithView div.kronolithViewBody {
     bottom: 0;
     overflow: auto;
 }
-div.kronolithView div.kronolithViewBody div.kronolithRow {
-    clear: both;
-    vertical-align: top;
-    height: auto;
-}
 
 /* Captions. */
 #kronolithBody caption {
@@ -940,21 +904,11 @@ div.kronolithView div.kronolithViewBody div.kronolithRow {
 }
 
 /* Main view week */
-#kronolithViewWeek div.kronolithViewBody div.kronolithRow div {
-    height: 41px;
-}
 .kronolithWeekDay {
     cursor: pointer;
 }
 
 /* Main view day */
-.kronolithViewDay div.kronolithViewBody div.kronolithRow div.kronolithFirstCol {
-    margin-right: 2px;
-    border-right-width: 1px;
-}
-.kronolithViewDay div.kronolithViewBody div.kronolithRow div {
-    height: 41px;
-}
 .kronolithViewDay td {
     height: 40px;
 }
@@ -1053,49 +1007,10 @@ div.kronolithView div.kronolithViewBody div.kronolithRow {
 }
 
 /* More main view */
-div.kronolithView div.kronolithViewBody div.kronolithRow div {
-    font-size: 95%;
-}
 div.kronolithView div.kronolithViewBody .kronolithEvent {
     margin-bottom: 2px;
     margin-right: 2px;
 }
-div.kronolithView div.kronolithViewBody div.kronolithRow div.kronolithFirstCol {
-    font-weight: bold;
-    text-align: center;
-}
-.kronolithViewDay div.kronolithViewBody div.kronolithRow.kronolithNight div {
-    background-color: #f4f4f4;
-}
-div.kronolithView div.kronolithViewBody div.kronolithRow div.kronolithFirstCol:hover {
-    cursor: pointer;
-}
-div.kronolithView div.kronolithViewBody div.kronolithRow div.kronolithOtherMonth {
-    background: #f7f7f7;
-}
-div.kronolithView div.kronolithViewBody div.kronolithRow div.kronolithOtherMonth .kronolithDay {
-    border-color: transparent;
-    color: silver;
-}
-div.kronolithView div.kronolithViewBody div.kronolithRow div.kronolithToday {
-    background-color: #ebf3fc;
-    border-color: #808080;
-}
-div.kronolithView div.kronolithViewBody div.kronolithRow div div.kronolithMore {
-    position: absolute;
-    z-index: 10;
-    right: 0;
-    bottom: 0;
-    width: 15px;
-    height: 15px;
-    background: white;
-    border-right: none;
-    border-bottom: none;
-    text-align: center;
-}
-div.kronolithView div.kronolithViewBody div.kronolithRow div div.kronolithMore a {
-    text-decoration: none;
-}
 .kronolithFirstCol {
     font-weight: bold;
     text-align: center;
@@ -1195,12 +1110,6 @@ table.kronolithView td.kronolithToday {
     overflow: hidden;
     position: absolute;
 }
-div.kronolithView div.kronolithViewBody div.kronolithRow div .kronolithEvent.kronolithSelected {
-    height: auto;
-}
-div.kronolithView div.kronolithViewBody div.kronolithRow div .kronolithEvent.kronolithEventFull {
-    color: white !important;
-}
 #kronolithViewDay .kronolithEvent, #kronolithViewWeek .kronolithEvent {
     position: absolute;
     opacity: .8;