app-calendar.scss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. // Core variables and mixins
  2. @import '../bootstrap-extended/include'; // Bootstrap includes
  3. @import '../components/include'; // Components includes
  4. $fc-calendar-height: 650px;
  5. $fc-sidebar-width: 18rem;
  6. $fc-event-font-weight: 600;
  7. $fc-event-font-size: 0.8rem;
  8. $fc-event-padding-x: 0.5rem;
  9. $fc-event-padding-y: 0.25rem;
  10. $fc-toolbar-btn-padding: 0.438rem 0.5rem;
  11. $fc-day-toggle-btn-padding: 0.55rem 1.5rem;
  12. // Full calendar styles
  13. .fc {
  14. // Toolbar
  15. .fc-toolbar {
  16. flex-wrap: wrap;
  17. flex-direction: row !important;
  18. .fc-prev-button,
  19. .fc-next-button {
  20. display: inline-block;
  21. background-color: transparent;
  22. border-color: transparent;
  23. .fc-icon {
  24. color: $body-color;
  25. }
  26. &:hover,
  27. &:active,
  28. &:focus {
  29. background-color: transparent !important;
  30. border-color: transparent !important;
  31. box-shadow: none !important;
  32. }
  33. }
  34. .fc-prev-button {
  35. padding-left: 0 !important;
  36. }
  37. .fc-toolbar-chunk:first-child {
  38. display: flex;
  39. align-items: center;
  40. flex-wrap: wrap;
  41. }
  42. .fc-button {
  43. padding: $fc-toolbar-btn-padding;
  44. &:active,
  45. &:focus {
  46. box-shadow: none;
  47. }
  48. }
  49. .fc-button-group {
  50. .fc-button {
  51. text-transform: capitalize;
  52. &:focus {
  53. box-shadow: none;
  54. }
  55. }
  56. .fc-button-primary {
  57. &:not(.fc-prev-button):not(.fc-next-button) {
  58. // background-color: rgba($primary, 0.1);
  59. background-color: transparent;
  60. border-color: $primary;
  61. color: $primary;
  62. &.fc-button-active,
  63. &:hover {
  64. background-color: rgba($color: $primary, $alpha: 0.2) !important;
  65. border-color: $primary !important;
  66. color: $primary;
  67. }
  68. }
  69. &.fc-sidebarToggle-button {
  70. border: 0;
  71. i,
  72. svg {
  73. height: 21px;
  74. width: 21px;
  75. font-size: 21px;
  76. }
  77. }
  78. }
  79. .fc-sidebarToggle-button {
  80. padding-left: 0;
  81. background-color: transparent !important;
  82. color: $body-color !important;
  83. &:not(.fc-prev-button):not(.fc-next-button):hover {
  84. background-color: transparent !important;
  85. }
  86. & + div {
  87. margin-left: 0;
  88. }
  89. }
  90. .fc-dayGridMonth-button,
  91. .fc-timeGridWeek-button,
  92. .fc-timeGridDay-button,
  93. .fc-listMonth-button {
  94. padding: $fc-day-toggle-btn-padding;
  95. &:last-child,
  96. &:first-child {
  97. border-radius: $btn-border-radius;
  98. }
  99. &:first-child {
  100. border-top-right-radius: 0;
  101. border-bottom-right-radius: 0;
  102. }
  103. &:last-child {
  104. border-top-left-radius: 0;
  105. border-bottom-left-radius: 0;
  106. }
  107. }
  108. }
  109. & > * > :not(:first-child) {
  110. margin-left: 0rem;
  111. }
  112. .fc-toolbar-title {
  113. margin-left: 0.25rem;
  114. }
  115. .fc--button:empty,
  116. .fc-toolbar-chunk:empty {
  117. display: none;
  118. }
  119. }
  120. // Calendar head & body common
  121. tbody td,
  122. thead th {
  123. border-color: $border-color;
  124. &.fc-col-header-cell {
  125. border-right: 0;
  126. border-left: 0;
  127. }
  128. }
  129. .fc-view-harness {
  130. min-height: $fc-calendar-height;
  131. }
  132. // Daygrid
  133. .fc-scrollgrid-section-liquid > td {
  134. border-bottom: 0;
  135. }
  136. .fc-daygrid-event-harness {
  137. .fc-event {
  138. font-size: $fc-event-font-size;
  139. font-weight: $fc-event-font-weight;
  140. padding: $fc-event-padding-y $fc-event-padding-x;
  141. }
  142. & + .fc-daygrid-event-harness {
  143. margin-top: 0.3rem;
  144. }
  145. }
  146. .fc-daygrid-day-bottom {
  147. margin-top: 0.3rem;
  148. }
  149. .fc-daygrid-day {
  150. padding: 5px;
  151. .fc-daygrid-day-top {
  152. flex-direction: row;
  153. }
  154. }
  155. // All Views Event
  156. .fc-daygrid-day-number,
  157. .fc-timegrid-slot-label-cushion,
  158. .fc-list-event-time {
  159. color: $body-color;
  160. }
  161. .fc-day-today {
  162. background: $body-bg !important;
  163. background-color: $body-bg !important;
  164. }
  165. // Timegrid
  166. .fc-timegrid {
  167. .fc-scrollgrid-section {
  168. .fc-col-header-cell,
  169. .fc-timegrid-axis {
  170. border-color: $border-color;
  171. border-left: 0;
  172. border-right: 0;
  173. }
  174. .fc-timegrid-axis {
  175. border-color: $border-color;
  176. }
  177. }
  178. .fc-timegrid-axis {
  179. &.fc-scrollgrid-shrink {
  180. .fc-timegrid-axis-cushion {
  181. text-transform: capitalize;
  182. color: $text-muted;
  183. }
  184. }
  185. }
  186. .fc-timegrid-slots {
  187. .fc-timegrid-slot {
  188. height: 3rem;
  189. .fc-timegrid-slot-label-frame {
  190. text-align: center;
  191. .fc-timegrid-slot-label-cushion {
  192. text-transform: uppercase;
  193. }
  194. }
  195. }
  196. }
  197. .fc-timegrid-divider {
  198. display: none;
  199. }
  200. }
  201. // List View
  202. .fc-list {
  203. border-color: $border-color;
  204. .fc-list-day-cushion {
  205. background: $body-bg;
  206. }
  207. .fc-list-event {
  208. &:hover {
  209. td {
  210. background-color: $body-bg;
  211. }
  212. }
  213. td {
  214. border-color: $border-color;
  215. }
  216. }
  217. }
  218. }
  219. // App Calendar specific
  220. .app-calendar {
  221. position: relative;
  222. border-radius: $card-border-radius;
  223. margin-bottom: 2rem;
  224. .app-calendar-sidebar {
  225. position: absolute;
  226. left: calc(-#{$fc-sidebar-width} - 1.2rem);
  227. width: $fc-sidebar-width;
  228. height: 100%;
  229. z-index: 5;
  230. background-color: $card-bg;
  231. border-right: 1px solid $border-color;
  232. flex-basis: $fc-sidebar-width;
  233. transition: all 0.2s, background 0s, border 0s;
  234. &.show {
  235. left: 0;
  236. }
  237. .sidebar-content-title {
  238. font-size: 0.85rem;
  239. color: $text-muted;
  240. text-transform: uppercase;
  241. letter-spacing: 0.6px;
  242. }
  243. .select-all,
  244. .input-filter {
  245. & ~ label {
  246. color: $headings-color;
  247. font-weight: 500;
  248. letter-spacing: 0.4px;
  249. }
  250. }
  251. }
  252. // right sidebar area styles
  253. .event-sidebar {
  254. position: absolute;
  255. top: 0;
  256. right: 0;
  257. width: 400px;
  258. z-index: 15;
  259. transform: translateX(120%);
  260. transition: all 0.3s ease-in-out;
  261. .card {
  262. height: calc(100vh - 12.96rem);
  263. height: calc(var(--vh, 1vh) * 100 - 12.96rem);
  264. border-radius: 0 $border-radius-sm $border-radius-sm 0;
  265. .close-bar {
  266. cursor: pointer;
  267. }
  268. .todo-item-action {
  269. width: 6rem;
  270. .todo-item-info,
  271. .todo-item-favorite,
  272. .dropdown {
  273. cursor: pointer;
  274. line-height: 1.5;
  275. }
  276. .dropdown .dropdown-menu .dropdown-item {
  277. padding: 0.14rem 1.428rem;
  278. }
  279. .dropdown-toggle::after {
  280. display: none;
  281. }
  282. }
  283. }
  284. &.show {
  285. transform: translateX(0);
  286. }
  287. }
  288. .fc-toolbar {
  289. h2 {
  290. font-size: 1.45rem;
  291. }
  292. }
  293. .fc-header-toolbar {
  294. margin-bottom: 1.75rem !important;
  295. }
  296. .fc-view-harness {
  297. margin: 0 -1.6rem;
  298. }
  299. .fc-scrollgrid {
  300. border-color: $border-color;
  301. }
  302. .fc-day-past,
  303. .fc-day-future {
  304. .fc-daygrid-day-number {
  305. color: $text-muted;
  306. }
  307. }
  308. .fc-popover {
  309. box-shadow: $box-shadow;
  310. .fc-popover-header {
  311. background: transparent;
  312. padding: 0.5rem;
  313. .fc-popover-title,
  314. .fc-popover-close {
  315. color: $headings-color;
  316. }
  317. }
  318. .fc-popover-body {
  319. *:not(:last-of-type) {
  320. margin-bottom: 0.3rem;
  321. }
  322. }
  323. }
  324. .fc {
  325. .fc-event {
  326. .fc-event-main {
  327. color: inherit;
  328. }
  329. }
  330. }
  331. .fc-list-event {
  332. background: transparent !important;
  333. }
  334. @media (min-width: 992px) {
  335. .app-calendar-sidebar {
  336. position: static;
  337. height: auto;
  338. box-shadow: none !important;
  339. .flatpickr-days {
  340. background-color: transparent;
  341. }
  342. }
  343. }
  344. }
  345. // Event Sidebar
  346. .event-sidebar {
  347. .select2-selection__choice__remove {
  348. &:before {
  349. top: 40% !important;
  350. }
  351. }
  352. }
  353. // Horizontal Menu
  354. .horizontal-layout {
  355. .app-calendar {
  356. margin-bottom: 1rem;
  357. }
  358. }
  359. // Media Queries
  360. @media (max-width: 992px) {
  361. .fc {
  362. .fc-sidebarToggle-button {
  363. font-size: 0;
  364. }
  365. }
  366. }
  367. @media (min-width: 992px) {
  368. .fc {
  369. .fc-sidebarToggle-button {
  370. display: none;
  371. }
  372. }
  373. }
  374. @media (max-width: 700px) {
  375. .app-calendar {
  376. .fc {
  377. .fc-header-toolbar {
  378. .fc-toolbar-chunk:last-of-type {
  379. margin-top: 1rem;
  380. }
  381. }
  382. }
  383. }
  384. }