fullcalendar.print.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /*!
  2. * FullCalendar v2.7.3 Print Stylesheet
  3. * Docs & License: http://fullcalendar.io/
  4. * (c) 2016 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 components */
  36. /* common... */
  37. .fc-bg,
  38. .fc-bgevent-skeleton,
  39. .fc-highlight-skeleton,
  40. .fc-helper-skeleton,
  41. /* for timegrid. within cells within table skeletons... */
  42. .fc-bgevent-container,
  43. .fc-business-container,
  44. .fc-highlight-container,
  45. .fc-helper-container {
  46. display: none;
  47. }
  48. /* don't force a min-height on rows (for DayGrid) */
  49. .fc tbody .fc-row {
  50. height: auto !important; /* undo height that JS set in distributeHeight */
  51. min-height: 0 !important; /* undo the min-height from each view's specific stylesheet */
  52. }
  53. .fc tbody .fc-row .fc-content-skeleton {
  54. position: static; /* undo .fc-rigid */
  55. padding-bottom: 0 !important; /* use a more border-friendly method for this... */
  56. }
  57. .fc tbody .fc-row .fc-content-skeleton tbody tr:last-child td { /* only works in newer browsers */
  58. padding-bottom: 1em; /* ...gives space within the skeleton. also ensures min height in a way */
  59. }
  60. .fc tbody .fc-row .fc-content-skeleton table {
  61. /* provides a min-height for the row, but only effective for IE, which exaggerates this value,
  62. making it look more like 3em. for other browers, it will already be this tall */
  63. height: 1em;
  64. }
  65. /* Undo month-view event limiting. Display all events and hide the "more" links
  66. --------------------------------------------------------------------------------------------------*/
  67. .fc-more-cell,
  68. .fc-more {
  69. display: none !important;
  70. }
  71. .fc tr.fc-limited {
  72. display: table-row !important;
  73. }
  74. .fc td.fc-limited {
  75. display: table-cell !important;
  76. }
  77. .fc-popover {
  78. display: none; /* never display the "more.." popover in print mode */
  79. }
  80. /* TimeGrid Restyling
  81. --------------------------------------------------------------------------------------------------*/
  82. /* undo the min-height 100% trick used to fill the container's height */
  83. .fc-time-grid {
  84. min-height: 0 !important;
  85. }
  86. /* don't display the side axis at all ("all-day" and time cells) */
  87. .fc-agenda-view .fc-axis {
  88. display: none;
  89. }
  90. /* don't display the horizontal lines */
  91. .fc-slats,
  92. .fc-time-grid hr { /* this hr is used when height is underused and needs to be filled */
  93. display: none !important; /* important overrides inline declaration */
  94. }
  95. /* let the container that holds the events be naturally positioned and create real height */
  96. .fc-time-grid .fc-content-skeleton {
  97. position: static;
  98. }
  99. /* in case there are no events, we still want some height */
  100. .fc-time-grid .fc-content-skeleton table {
  101. height: 4em;
  102. }
  103. /* kill the horizontal spacing made by the event container. event margins will be done below */
  104. .fc-time-grid .fc-event-container {
  105. margin: 0 !important;
  106. }
  107. /* TimeGrid *Event* Restyling
  108. --------------------------------------------------------------------------------------------------*/
  109. /* naturally position events, vertically stacking them */
  110. .fc-time-grid .fc-event {
  111. position: static !important;
  112. margin: 3px 2px !important;
  113. }
  114. /* for events that continue to a future day, give the bottom border back */
  115. .fc-time-grid .fc-event.fc-not-end {
  116. border-bottom-width: 1px !important;
  117. }
  118. /* indicate the event continues via "..." text */
  119. .fc-time-grid .fc-event.fc-not-end:after {
  120. content: "...";
  121. }
  122. /* for events that are continuations from previous days, give the top border back */
  123. .fc-time-grid .fc-event.fc-not-start {
  124. border-top-width: 1px !important;
  125. }
  126. /* indicate the event is a continuation via "..." text */
  127. .fc-time-grid .fc-event.fc-not-start:before {
  128. content: "...";
  129. }
  130. /* time */
  131. /* undo a previous declaration and let the time text span to a second line */
  132. .fc-time-grid .fc-event .fc-time {
  133. white-space: normal !important;
  134. }
  135. /* hide the the time that is normally displayed... */
  136. .fc-time-grid .fc-event .fc-time span {
  137. display: none;
  138. }
  139. /* ...replace it with a more verbose version (includes AM/PM) stored in an html attribute */
  140. .fc-time-grid .fc-event .fc-time:after {
  141. content: attr(data-full);
  142. }
  143. /* Vertical Scroller & Containers
  144. --------------------------------------------------------------------------------------------------*/
  145. /* kill the scrollbars and allow natural height */
  146. .fc-scroller,
  147. .fc-day-grid-container, /* these divs might be assigned height, which we need to cleared */
  148. .fc-time-grid-container { /* */
  149. overflow: visible !important;
  150. height: auto !important;
  151. }
  152. /* kill the horizontal border/padding used to compensate for scrollbars */
  153. .fc-row {
  154. border: 0 !important;
  155. margin: 0 !important;
  156. }
  157. /* Button Controls
  158. --------------------------------------------------------------------------------------------------*/
  159. .fc-button-group,
  160. .fc button {
  161. display: none; /* don't display any button-related controls */
  162. }