fullcalendar.print.css 5.4 KB

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