Просмотр исходного кода

adjust spacing for events, match old versions

Adam Shaw 11 лет назад
Родитель
Сommit
5d05c2392b
3 измененных файлов с 7 добавлено и 4 удалено
  1. 0 1
      src/basic/basic.css
  2. 6 2
      src/common/common.css
  3. 1 1
      src/common/print.css

+ 0 - 1
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 {

+ 6 - 2
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 */

+ 1 - 1
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 */