From b2fbdfa092b8bc131b61f1f3b3df98901929c66c Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Mon, 25 Aug 2014 21:36:15 -0700 Subject: [PATCH] change technique for spacing around events --- src/agenda/agenda.css | 1 + src/basic/basic.css | 7 ++++--- src/common/common.css | 4 ---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/agenda/agenda.css b/src/agenda/agenda.css index ca9a627..de872c6 100644 --- a/src/agenda/agenda.css +++ b/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 */ } diff --git a/src/basic/basic.css b/src/basic/basic.css index adfaa40..cc120a3 100644 --- a/src/basic/basic.css +++ b/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 { diff --git a/src/common/common.css b/src/common/common.css index 884a052..0524749 100644 --- a/src/common/common.css +++ b/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,