Browse Source

change technique for spacing around events

Adam Shaw 11 years ago
parent
commit
b2fbdfa092
3 changed files with 5 additions and 7 deletions
  1. 1 0
      src/agenda/agenda.css
  2. 4 3
      src/basic/basic.css
  3. 0 4
      src/common/common.css

+ 1 - 0
src/agenda/agenda.css

@@ -12,6 +12,7 @@
 }
 
 .fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton {
+	padding-top: 1px; /* add a pixel to make sure there are 2px padding above events */
 	padding-bottom: 1em; /* give space underneath events for clicking/selecting days */
 }
 

+ 4 - 3
src/basic/basic.css

@@ -6,9 +6,9 @@
 
 .fc-basicWeek-view .fc-content-skeleton,
 .fc-basicDay-view .fc-content-skeleton {
-	/* in basicWeek and basicDay views, where we are sure there are no day numbers, ensure
-	   a space at the bottom of the cell to allow for day selecting/clicking */
-	padding-bottom: 1em;
+	/* we are sure there are no day numbers in these views, so... */
+	padding-top: 1px; /* add a pixel to make sure there are 2px padding above events */
+	padding-bottom: 1em; /* ensure a space at bottom of cell for user selecting/clicking */
 }
 
 .fc-basic-view tbody .fc-row {
@@ -38,6 +38,7 @@
 .fc-basic-view td.fc-week-number span,
 .fc-basic-view td.fc-day-number {
 	padding-top: 2px;
+	padding-bottom: 2px;
 }
 
 .fc-basic-view .fc-week-number {

+ 0 - 4
src/common/common.css

@@ -458,10 +458,6 @@ be a descendant of the grid when it is being dragged.
 	padding: 0 1px;
 }
 
-tr:first-child > td > .fc-day-grid-event {
-	margin-top: 2px; /* a little bit more space before the first event */
-}
-
 /* events that are continuing to/from another week. kill rounded corners and butt up against edge */
 
 .fc-ltr .fc-day-grid-event.fc-not-start,