calendar.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. :root {
  2. --fc-small-font-size: 0.85em;
  3. --fc-page-bg-color: #fff;
  4. --fc-neutral-bg-color: hsla(0, 0%, 82%, 0.3);
  5. --fc-neutral-text-color: grey;
  6. --fc-border-color: #ddd;
  7. --fc-button-text-color: #fff;
  8. --fc-button-bg-color: #0c6197;
  9. --fc-button-border-color: #0c6197;
  10. --fc-button-hover-bg-color: #0e70af;
  11. --fc-button-hover-border-color: #0e70af;
  12. --fc-button-active-bg-color: #a1a4a7;
  13. --fc-button-active-border-color: #a1a4a7;
  14. --fc-event-bg-color: #3788d8;
  15. --fc-event-border-color: #3788d8;
  16. --fc-event-text-color: #fff;
  17. --fc-event-selected-overlay-color: rgba(0, 0, 0, 0.25);
  18. --fc-more-link-bg-color: #d0d0d0;
  19. --fc-more-link-text-color: inherit;
  20. --fc-event-resizer-thickness: 8px;
  21. --fc-event-resizer-dot-total-width: 8px;
  22. --fc-event-resizer-dot-border-width: 1px;
  23. --fc-non-business-color: hsla(0, 0%, 84%, 0.3);
  24. --fc-bg-event-color: #8fdf82;
  25. --fc-bg-event-opacity: 0.3;
  26. --fc-highlight-color: rgba(188, 232, 241, 0.3);
  27. /* --fc-today-bg-color: rgba(255, 220, 40, 0.15); */
  28. --fc-today-bg-color: #c5d9e6;
  29. --fc-now-indicator-color: red;
  30. --bs-primary: #0c6197;
  31. --bs-primary-rgb: 12, 97, 151;
  32. }
  33. body .fc .fc-col-header,
  34. body .fc .fc-daygrid-body,
  35. body .fc .fc-daygrid-body .fc-scrollgrid-sync-table,
  36. body .fc .fc-timegrid-body,
  37. body .fc .fc-timegrid-body .fc-timegrid-slots > table,
  38. body .fc .fc-timegrid-cols > table {
  39. width: 100% !important;
  40. }
  41. body .fc .fc-view-harness {
  42. height: calc(100dvh - 320px) !important;
  43. }
  44. body .fc table.fc-scrollgrid > thead {
  45. position: sticky;
  46. top: -10px;
  47. z-index: 2;
  48. background: white;
  49. }
  50. body .fc table.fc-scrollgrid > tbody > tr:first-child {
  51. position: sticky;
  52. top: 19px;
  53. z-index: 2;
  54. background: white;
  55. }
  56. body .fc .fc-toolbar.fc-header-toolbar {
  57. display: grid;
  58. grid-template-columns: 1fr 1fr;
  59. }
  60. body .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk {
  61. grid-row: 2;
  62. }
  63. body
  64. .fc
  65. .fc-toolbar.fc-header-toolbar
  66. .fc-toolbar-chunk:has(.fc-toolbar-title) {
  67. grid-row: 1;
  68. text-align: center;
  69. grid-column: 1 / span 2;
  70. }
  71. body .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:last-child {
  72. justify-self: end;
  73. }
  74. body .modal-backdrop.show {
  75. opacity: 0.25;
  76. }
  77. body label.form-label {
  78. margin-top: 10px;
  79. margin-bottom: 0;
  80. }
  81. body input[type="checkbox"]:checked {
  82. -webkit-appearance: none;
  83. background-color: #0c6197 !important;
  84. border-radius: 2px;
  85. }
  86. body .fc-event.festivity {
  87. background: none;
  88. border: none;
  89. pointer-events: none;
  90. }
  91. body .fc-event.festivity .fc-event-title-container {
  92. text-align: center;
  93. color: #34454e;
  94. font-weight: bold;
  95. margin-top: 9px;
  96. }
  97. body input[type="checkbox"] + label.form-label {
  98. margin-top: 0;
  99. }
  100. .fc .fc-col-header-cell.fc-day-today {
  101. background-color: var(--fc-today-bg-color);
  102. }
  103. .fc .fc-col-header-cell-cushion {
  104. text-transform: capitalize;
  105. }
  106. @media (max-width: 1024px) {
  107. body .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-button {
  108. font-size: 14px;
  109. }
  110. }
  111. @media (max-width: 1024px) and (min-width: 500px) {
  112. .tablesaw-stack thead th {
  113. display: table-cell;
  114. }
  115. body .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-button {
  116. font-size: 14px;
  117. }
  118. body .tablesaw-stack tbody tr {
  119. display: table-row;
  120. }
  121. body .tablesaw-stack tbody td {
  122. display: table-cell;
  123. float: unset;
  124. width: auto;
  125. }
  126. }