fullcalendar.print.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /*!
  2. * FullCalendar v2.1.1 Print Stylesheet
  3. * Docs & License: http://arshaw.com/fullcalendar/
  4. * (c) 2013 Adam Shaw
  5. */
  6. /*
  7. * Include this stylesheet on your page to get a more printer-friendly calendar.
  8. * When including this stylesheet, use the media='print' attribute of the <link> tag.
  9. * Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css.
  10. */
  11. .fc {
  12. max-width: 100% !important;
  13. }
  14. /* Global Event Restyling
  15. --------------------------------------------------------------------------------------------------*/
  16. .fc-event {
  17. background: #fff !important;
  18. color: #000 !important;
  19. page-break-inside: avoid;
  20. }
  21. .fc-event .fc-resizer {
  22. display: none;
  23. }
  24. /* Table & Day-Row Restyling
  25. --------------------------------------------------------------------------------------------------*/
  26. th,
  27. td,
  28. hr,
  29. thead,
  30. tbody,
  31. .fc-row {
  32. border-color: #ccc !important;
  33. background: #fff !important;
  34. }
  35. /* kill the overlaid, absolutely-positioned common components */
  36. .fc-bg,
  37. .fc-highlight-skeleton,
  38. .fc-helper-skeleton {
  39. display: none;
  40. }
  41. /* don't force a min-height on rows (for DayGrid) */
  42. .fc tbody .fc-row {
  43. height: auto !important; /* undo height that JS set in distributeHeight */
  44. min-height: 0 !important; /* undo the min-height from each view's specific stylesheet */
  45. }
  46. .fc tbody .fc-row .fc-content-skeleton {
  47. position: static; /* undo .fc-rigid */
  48. padding-bottom: 0 !important; /* use a more border-friendly method for this... */
  49. }
  50. .fc tbody .fc-row .fc-content-skeleton tbody tr:last-child td { /* only works in newer browsers */
  51. padding-bottom: 1em; /* ...gives space within the skeleton. also ensures min height in a way */
  52. }
  53. .fc tbody .fc-row .fc-content-skeleton table {
  54. /* provides a min-height for the row, but only effective for IE, which exaggerates this value,
  55. making it look more like 3em. for other browers, it will already be this tall */
  56. height: 1em;
  57. }
  58. /* Undo month-view event limiting. Display all events and hide the "more" links
  59. --------------------------------------------------------------------------------------------------*/
  60. .fc-more-cell,
  61. .fc-more {
  62. display: none !important;
  63. }
  64. .fc tr.fc-limited {
  65. display: table-row !important;
  66. }
  67. .fc td.fc-limited {
  68. display: table-cell !important;
  69. }
  70. .fc-popover {
  71. display: none; /* never display the "more.." popover in print mode */
  72. }
  73. /* TimeGrid Restyling
  74. --------------------------------------------------------------------------------------------------*/
  75. /* undo the min-height 100% trick used to fill the container's height */
  76. .fc-time-grid {
  77. min-height: 0 !important;
  78. }
  79. /* don't display the side axis at all ("all-day" and time cells) */
  80. .fc-agenda-view .fc-axis {
  81. display: none;
  82. }
  83. /* don't display the horizontal lines */
  84. .fc-slats,
  85. .fc-time-grid hr { /* this hr is used when height is underused and needs to be filled */
  86. display: none !important; /* important overrides inline declaration */
  87. }
  88. /* let the container that holds the events be naturally positioned and create real height */
  89. .fc-time-grid .fc-content-skeleton {
  90. position: static;
  91. }
  92. /* in case there are no events, we still want some height */
  93. .fc-time-grid .fc-content-skeleton table {
  94. height: 4em;
  95. }
  96. /* kill the horizontal spacing made by the event container. event margins will be done below */
  97. .fc-time-grid .fc-event-container {
  98. margin: 0 !important;
  99. }
  100. /* TimeGrid *Event* Restyling
  101. --------------------------------------------------------------------------------------------------*/
  102. /* naturally position events, vertically stacking them */
  103. .fc-time-grid .fc-event {
  104. position: static !important;
  105. margin: 3px 2px !important;
  106. }
  107. /* for events that continue to a future day, give the bottom border back */
  108. .fc-time-grid .fc-event.fc-not-end {
  109. border-bottom-width: 1px !important;
  110. }
  111. /* indicate the event continues via "..." text */
  112. .fc-time-grid .fc-event.fc-not-end:after {
  113. content: "...";
  114. }
  115. /* for events that are continuations from previous days, give the top border back */
  116. .fc-time-grid .fc-event.fc-not-start {
  117. border-top-width: 1px !important;
  118. }
  119. /* indicate the event is a continuation via "..." text */
  120. .fc-time-grid .fc-event.fc-not-start:before {
  121. content: "...";
  122. }
  123. /* time */
  124. /* undo a previous declaration and let the time text span to a second line */
  125. .fc-time-grid .fc-event .fc-time {
  126. white-space: normal !important;
  127. }
  128. /* hide the the time that is normally displayed... */
  129. .fc-time-grid .fc-event .fc-time span {
  130. display: none;
  131. }
  132. /* ...replace it with a more verbose version (includes AM/PM) stored in an html attribute */
  133. .fc-time-grid .fc-event .fc-time:after {
  134. content: attr(data-full);
  135. }
  136. /* Vertical Scroller & Containers
  137. --------------------------------------------------------------------------------------------------*/
  138. /* kill the scrollbars and allow natural height */
  139. .fc-scroller,
  140. .fc-day-grid-container, /* these divs might be assigned height, which we need to cleared */
  141. .fc-time-grid-container { /* */
  142. overflow: visible !important;
  143. height: auto !important;
  144. }
  145. /* kill the horizontal border/padding used to compensate for scrollbars */
  146. .fc-row {
  147. border: 0 !important;
  148. margin: 0 !important;
  149. }
  150. /* Button Controls
  151. --------------------------------------------------------------------------------------------------*/
  152. .fc-button-group,
  153. .fc button {
  154. display: none; /* don't display any button-related controls */
  155. }