From 5d05c2392ba9ab4e27ea4463680a79de81d6d7fe Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Mon, 25 Aug 2014 00:55:08 -0700 Subject: [PATCH] adjust spacing for events, match old versions --- src/basic/basic.css | 1 - src/common/common.css | 8 ++++++-- src/common/print.css | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/basic/basic.css b/src/basic/basic.css index 88244ba..762bda8 100644 --- a/src/basic/basic.css +++ b/src/basic/basic.css @@ -38,7 +38,6 @@ .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 6b0cb43..1b8629f 100644 --- a/src/common/common.css +++ b/src/common/common.css @@ -380,7 +380,7 @@ temporary rendered events). .fc-row .fc-content-skeleton { position: relative; z-index: 3; - padding-bottom: 1px; /* matches the space between events */ + padding-bottom: 2px; /* matches the space above the events */ } .fc-row .fc-helper-skeleton { @@ -451,7 +451,11 @@ be a descendant of the grid when it is being dragged. */ .fc-day-grid-event { - margin: 1px 1px 0; /* spacing between events and edges */ + margin: 1px 2px 0; /* spacing between events and edges */ +} + +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 */ diff --git a/src/common/print.css b/src/common/print.css index b636d88..2197d08 100644 --- a/src/common/print.css +++ b/src/common/print.css @@ -64,7 +64,7 @@ tbody, /* give back the bottom spacing that was taken away from the content-skeleton's padding (above) */ /* only works on modern browsers */ .fc tbody .fc-row .fc-content-skeleton table tr:last-child td { - padding-bottom: 1px; + padding-bottom: 2px; } /* sets a min-height on the event skeleton. for IE8. was overexaggerating this, so make small */