You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

200 lines
5.4 KiB

2 years ago
  1. /*!
  2. * FullCalendar v3.1.0 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. .fc th,
  27. .fc td,
  28. .fc hr,
  29. .fc thead,
  30. .fc 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. }