main.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /*!
  2. FullCalendar Time Grid Plugin v4.2.0
  3. Docs & License: https://fullcalendar.io/
  4. (c) 2019 Adam Shaw
  5. */
  6. /* TimeGridView all-day area
  7. --------------------------------------------------------------------------------------------------*/
  8. .fc-timeGrid-view .fc-day-grid {
  9. position: relative;
  10. z-index: 2;
  11. /* so the "more.." popover will be over the time grid */ }
  12. .fc-timeGrid-view .fc-day-grid .fc-row {
  13. min-height: 3em;
  14. /* all-day section will never get shorter than this */ }
  15. .fc-timeGrid-view .fc-day-grid .fc-row .fc-content-skeleton {
  16. padding-bottom: 1em;
  17. /* give space underneath events for clicking/selecting days */ }
  18. /* TimeGrid axis running down the side (for both the all-day area and the slot area)
  19. --------------------------------------------------------------------------------------------------*/
  20. .fc .fc-axis {
  21. /* .fc to overcome default cell styles */
  22. vertical-align: middle;
  23. padding: 0 4px;
  24. white-space: nowrap; }
  25. .fc-ltr .fc-axis {
  26. text-align: right; }
  27. .fc-rtl .fc-axis {
  28. text-align: left; }
  29. /* TimeGrid Structure
  30. --------------------------------------------------------------------------------------------------*/
  31. .fc-time-grid-container,
  32. .fc-time-grid {
  33. /* so slats/bg/content/etc positions get scoped within here */
  34. position: relative;
  35. z-index: 1; }
  36. .fc-time-grid {
  37. min-height: 100%;
  38. /* so if height setting is 'auto', .fc-bg stretches to fill height */ }
  39. .fc-time-grid table {
  40. /* don't put outer borders on slats/bg/content/etc */
  41. border: 0 hidden transparent; }
  42. .fc-time-grid > .fc-bg {
  43. z-index: 1; }
  44. .fc-time-grid .fc-slats,
  45. .fc-time-grid > hr {
  46. /* the <hr> TimeGridView injects when grid is shorter than scroller */
  47. position: relative;
  48. z-index: 2; }
  49. .fc-time-grid .fc-content-col {
  50. position: relative;
  51. /* because now-indicator lives directly inside */ }
  52. .fc-time-grid .fc-content-skeleton {
  53. position: absolute;
  54. z-index: 3;
  55. top: 0;
  56. left: 0;
  57. right: 0; }
  58. /* divs within a cell within the fc-content-skeleton */
  59. .fc-time-grid .fc-business-container {
  60. position: relative;
  61. z-index: 1; }
  62. .fc-time-grid .fc-bgevent-container {
  63. position: relative;
  64. z-index: 2; }
  65. .fc-time-grid .fc-highlight-container {
  66. position: relative;
  67. z-index: 3; }
  68. .fc-time-grid .fc-event-container {
  69. position: relative;
  70. z-index: 4; }
  71. .fc-time-grid .fc-now-indicator-line {
  72. z-index: 5; }
  73. .fc-time-grid .fc-mirror-container {
  74. /* also is fc-event-container */
  75. position: relative;
  76. z-index: 6; }
  77. /* TimeGrid Slats (lines that run horizontally)
  78. --------------------------------------------------------------------------------------------------*/
  79. .fc-time-grid .fc-slats td {
  80. height: 1.5em;
  81. border-bottom: 0;
  82. /* each cell is responsible for its top border */ }
  83. .fc-time-grid .fc-slats .fc-minor td {
  84. border-top-style: dotted; }
  85. /* TimeGrid Highlighting Slots
  86. --------------------------------------------------------------------------------------------------*/
  87. .fc-time-grid .fc-highlight-container {
  88. /* a div within a cell within the fc-highlight-skeleton */
  89. position: relative;
  90. /* scopes the left/right of the fc-highlight to be in the column */ }
  91. .fc-time-grid .fc-highlight {
  92. position: absolute;
  93. left: 0;
  94. right: 0;
  95. /* top and bottom will be in by JS */ }
  96. /* TimeGrid Event Containment
  97. --------------------------------------------------------------------------------------------------*/
  98. .fc-ltr .fc-time-grid .fc-event-container {
  99. /* space on the sides of events for LTR (default) */
  100. margin: 0 2.5% 0 2px; }
  101. .fc-rtl .fc-time-grid .fc-event-container {
  102. /* space on the sides of events for RTL */
  103. margin: 0 2px 0 2.5%; }
  104. .fc-time-grid .fc-event,
  105. .fc-time-grid .fc-bgevent {
  106. position: absolute;
  107. z-index: 1;
  108. /* scope inner z-index's */ }
  109. .fc-time-grid .fc-bgevent {
  110. /* background events always span full width */
  111. left: 0;
  112. right: 0; }
  113. /* TimeGrid Event Styling
  114. ----------------------------------------------------------------------------------------------------
  115. We use the full "fc-time-grid-event" class instead of using descendants because the event won't
  116. be a descendant of the grid when it is being dragged.
  117. */
  118. .fc-time-grid-event {
  119. margin-bottom: 1px; }
  120. .fc-time-grid-event-inset {
  121. -webkit-box-shadow: 0px 0px 0px 1px #fff;
  122. box-shadow: 0px 0px 0px 1px #fff; }
  123. .fc-time-grid-event.fc-not-start {
  124. /* events that are continuing from another day */
  125. /* replace space made by the top border with padding */
  126. border-top-width: 0;
  127. padding-top: 1px;
  128. /* remove top rounded corners */
  129. border-top-left-radius: 0;
  130. border-top-right-radius: 0; }
  131. .fc-time-grid-event.fc-not-end {
  132. /* replace space made by the top border with padding */
  133. border-bottom-width: 0;
  134. padding-bottom: 1px;
  135. /* remove bottom rounded corners */
  136. border-bottom-left-radius: 0;
  137. border-bottom-right-radius: 0; }
  138. .fc-time-grid-event .fc-content {
  139. overflow: hidden;
  140. max-height: 100%; }
  141. .fc-time-grid-event .fc-time,
  142. .fc-time-grid-event .fc-title {
  143. padding: 0 1px; }
  144. .fc-time-grid-event .fc-time {
  145. font-size: .85em;
  146. white-space: nowrap; }
  147. /* short mode, where time and title are on the same line */
  148. .fc-time-grid-event.fc-short .fc-content {
  149. /* don't wrap to second line (now that contents will be inline) */
  150. white-space: nowrap; }
  151. .fc-time-grid-event.fc-short .fc-time,
  152. .fc-time-grid-event.fc-short .fc-title {
  153. /* put the time and title on the same line */
  154. display: inline-block;
  155. vertical-align: top; }
  156. .fc-time-grid-event.fc-short .fc-time span {
  157. display: none;
  158. /* don't display the full time text... */ }
  159. .fc-time-grid-event.fc-short .fc-time:before {
  160. content: attr(data-start);
  161. /* ...instead, display only the start time */ }
  162. .fc-time-grid-event.fc-short .fc-time:after {
  163. content: "\000A0-\000A0";
  164. /* seperate with a dash, wrapped in nbsp's */ }
  165. .fc-time-grid-event.fc-short .fc-title {
  166. font-size: .85em;
  167. /* make the title text the same size as the time */
  168. padding: 0;
  169. /* undo padding from above */ }
  170. /* resizer (cursor device) */
  171. .fc-time-grid-event.fc-allow-mouse-resize .fc-resizer {
  172. left: 0;
  173. right: 0;
  174. bottom: 0;
  175. height: 8px;
  176. overflow: hidden;
  177. line-height: 8px;
  178. font-size: 11px;
  179. font-family: monospace;
  180. text-align: center;
  181. cursor: s-resize; }
  182. .fc-time-grid-event.fc-allow-mouse-resize .fc-resizer:after {
  183. content: "="; }
  184. /* resizer (touch device) */
  185. .fc-time-grid-event.fc-selected .fc-resizer {
  186. /* 10x10 dot */
  187. border-radius: 5px;
  188. border-width: 1px;
  189. width: 8px;
  190. height: 8px;
  191. border-style: solid;
  192. border-color: inherit;
  193. background: #fff;
  194. /* horizontally center */
  195. left: 50%;
  196. margin-left: -5px;
  197. /* center on the bottom edge */
  198. bottom: -5px; }
  199. /* Now Indicator
  200. --------------------------------------------------------------------------------------------------*/
  201. .fc-time-grid .fc-now-indicator-line {
  202. border-top-width: 1px;
  203. left: 0;
  204. right: 0; }
  205. /* arrow on axis */
  206. .fc-time-grid .fc-now-indicator-arrow {
  207. margin-top: -5px;
  208. /* vertically center on top coordinate */ }
  209. .fc-ltr .fc-time-grid .fc-now-indicator-arrow {
  210. left: 0;
  211. /* triangle pointing right... */
  212. border-width: 5px 0 5px 6px;
  213. border-top-color: transparent;
  214. border-bottom-color: transparent; }
  215. .fc-rtl .fc-time-grid .fc-now-indicator-arrow {
  216. right: 0;
  217. /* triangle pointing left... */
  218. border-width: 5px 6px 5px 0;
  219. border-top-color: transparent;
  220. border-bottom-color: transparent; }