Fix bug 367131 - Allow click and drag event creation in time scale (hours column). r=philipp
authorDecathlon <bv1578@gmail.com>
Tue, 21 Sep 2010 00:11:00 +0200
changeset 6411 bf7ef020ee97250a57a2c8d3b0c01a920e5aa672
parent 6410 06bb6b6b1c2a0e95483b55787f4ebf7cf86f7a63
child 6412 200dcbfaafff4404f69e944807f8c3268e15ef02
push idunknown
push userunknown
push dateunknown
reviewersphilipp
bugs367131
Fix bug 367131 - Allow click and drag event creation in time scale (hours column). r=philipp
calendar/base/themes/pinstripe/calendar-views.css
calendar/base/themes/winstripe/calendar-views.css
--- a/calendar/base/themes/pinstripe/calendar-views.css
+++ b/calendar/base/themes/pinstripe/calendar-views.css
@@ -60,24 +60,25 @@ calendar-category-box:not([categories]) 
     display: -moz-box;
 }
 
 .calendar-item-image[itemType="todo"][progress="completed"] {
     -moz-image-region: rect(0px 22px 11px 11px);
 }
 
 /* Multiday view */
+
 /* Margin that allows event creation by click and drag when the time slot is
-   full of events. On the left side in normal view ... */
-box[anonid="topbox"][orient="horizontal"] {
-    -moz-margin-start: 5px;
+   full of events. On the right side in normal view ... */
+stack[anonid="boxstack"] > box[anonid="topbox"][orient="horizontal"] {
+    -moz-margin-end: 5px;
 }
-/* ... and on top in rotate view. */
-box[anonid="topbox"][orient="vertical"] {
-    margin-top: 5px;
+/* ... and on bottom in rotate view. */
+stack[anonid="boxstack"] > box[anonid="topbox"][orient="vertical"] {
+    margin-bottom: 5px;
 }
 
 calendar-event-column {
   background-color: #FFFFFF;
 }
 
 calendar-event-column[orient="horizontal"] {
     border-top: 1px solid #D2D2D2;
--- a/calendar/base/themes/winstripe/calendar-views.css
+++ b/calendar/base/themes/winstripe/calendar-views.css
@@ -60,24 +60,25 @@ calendar-category-box:not([categories]) 
     display: -moz-box;
 }
 
 .calendar-item-image[itemType="todo"][progress="completed"] {
     -moz-image-region: rect(0px 22px 11px 11px);
 }
 
 /* Multiday view */
+
 /* Margin that allows event creation by click and drag when the time slot is
-   full of events. On the left side in normal view ... */
-box[anonid="topbox"][orient="horizontal"] {
-    -moz-margin-start: 5px;
+   full of events. On the right side in normal view ... */
+stack[anonid="boxstack"] > box[anonid="topbox"][orient="horizontal"] {
+    -moz-margin-end: 5px;
 }
-/* ... and on top in rotate view. */
-box[anonid="topbox"][orient="vertical"] {
-    margin-top: 5px;
+/* ... and on bottom in rotate view. */
+stack[anonid="boxstack"] > box[anonid="topbox"][orient="vertical"] {
+    margin-bottom: 5px;
 }
 
 calendar-event-column {
   background-color: #FFFFFF;
 }
 
 calendar-event-column[orient="horizontal"] {
     border-top: 1px solid #D2D2D2;