print.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /*!
  2. * <%= meta.title %> v<%= meta.version %> Print Stylesheet
  3. * Docs & License: <%= meta.homepage %>
  4. * (c) <%= meta.copyright %>
  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. min-height: 0 !important;
  44. }
  45. /* don't have chunky padding underneath events (for Agenda, basicWeek, basicDay) */
  46. .fc tbody .fc-row .fc-content-skeleton {
  47. padding-bottom: 0 !important;
  48. }
  49. /* Make space at the bottom by putting a non-breaking space in the last row's cells.
  50. :last-child only works with newer browsers */
  51. .fc tbody .fc-row .fc-content-skeleton tbody tr:last-child td:after {
  52. content: "\000A0";
  53. }
  54. /* For IE8, which doesn't understand the above line, give a min-height.
  55. For some reason, IE8 really overexaggerates this value.
  56. Other browsers will already be taller than this. */
  57. .fc tbody .fc-row .fc-content-skeleton table {
  58. height: 2em;
  59. }
  60. /* For IE8, the table height might get too tall and create gaps between events and day lines.
  61. Vertically centering events within these cells makes it look better */
  62. .fc-day-grid .fc-event-container {
  63. vertical-align: middle !important;
  64. }
  65. /* TimeGrid Restyling
  66. --------------------------------------------------------------------------------------------------*/
  67. /* undo the min-height 100% trick used to fill the container's height */
  68. .fc-time-grid {
  69. min-height: 0 !important;
  70. }
  71. /* don't display the side axis at all ("all-day" and time cells) */
  72. .fc-agenda-view .fc-axis {
  73. display: none;
  74. }
  75. /* don't display the horizontal lines */
  76. .fc-slats,
  77. .fc-time-grid hr { /* this hr is used when height is underused and needs to be filled */
  78. display: none !important; /* important overrides inline declaration */
  79. }
  80. /* let the container that holds the events be naturally positioned and create real height */
  81. .fc-time-grid .fc-content-skeleton {
  82. position: static;
  83. }
  84. /* in case there are no events, we still want some height */
  85. .fc-time-grid .fc-content-skeleton table {
  86. height: 4em;
  87. }
  88. /* kill the horizontal spacing made by the event container. event margins will be done below */
  89. .fc-time-grid .fc-event-container {
  90. margin: 0 !important;
  91. }
  92. /* TimeGrid *Event* Restyling
  93. --------------------------------------------------------------------------------------------------*/
  94. /* naturally position events, vertically stacking them */
  95. .fc-time-grid .fc-event {
  96. position: static !important;
  97. margin: 3px 2px !important;
  98. }
  99. /* for events that continue to a future day, give the bottom border back */
  100. .fc-time-grid .fc-event.fc-not-end {
  101. border-bottom-width: 1px !important;
  102. }
  103. /* indicate the event continues via "..." text */
  104. .fc-time-grid .fc-event.fc-not-end:after {
  105. content: "...";
  106. }
  107. /* for events that are continuations from previous days, give the top border back */
  108. .fc-time-grid .fc-event.fc-not-start {
  109. border-top-width: 1px !important;
  110. }
  111. /* indicate the event is a continuation via "..." text */
  112. .fc-time-grid .fc-event.fc-not-start:before {
  113. content: "...";
  114. }
  115. /* time */
  116. /* undo a previous declaration and let the time text span to a second line */
  117. .fc-time-grid .fc-event .fc-time {
  118. white-space: normal !important;
  119. }
  120. /* hide the the time that is normally displayed... */
  121. .fc-time-grid .fc-event .fc-time span {
  122. display: none;
  123. }
  124. /* ...replace it with a more verbose version (includes AM/PM) stored in an html attribute */
  125. .fc-time-grid .fc-event .fc-time:after {
  126. content: attr(data-full);
  127. }
  128. /* Vertical Scroller & Containers
  129. --------------------------------------------------------------------------------------------------*/
  130. /* kill the scrollbars and allow natural height */
  131. .fc-scroller,
  132. .fc-day-grid-container, /* these divs might be assigned height, which we need to cleared */
  133. .fc-time-grid-container { /* */
  134. overflow: visible !important;
  135. height: auto !important;
  136. }
  137. /* kill the horizontal border/padding used to compensate for scrollbars */
  138. .fc-row {
  139. border: 0 !important;
  140. margin: 0 !important;
  141. }
  142. /* Button Controls
  143. --------------------------------------------------------------------------------------------------*/
  144. .fc-button-group,
  145. .fc button {
  146. display: none; /* don't display any button-related controls */
  147. }