_calendar.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. // FROM GITHUB
  2. // -----------------------------------------------------------------------------
  3. .fc {
  4. direction: ltr;
  5. text-align: left;
  6. }
  7. .fc table {
  8. border-collapse: collapse;
  9. border-spacing: 0;
  10. }
  11. .fc .btn {
  12. line-height: 1.2em;
  13. }
  14. html .fc {
  15. font-size: 1em;
  16. }
  17. .fc table {
  18. font-size: 1em;
  19. }
  20. .fc td, .fc th {
  21. padding: 1px;
  22. vertical-align: top;
  23. }
  24. .fc-header td {
  25. white-space: nowrap;
  26. vertical-align: middle;
  27. }
  28. .fc-header-left {
  29. width: 1%;
  30. text-align: left;
  31. }
  32. .fc-header-center {
  33. text-align: center;
  34. }
  35. .fc-header-right {
  36. width: 99%;
  37. text-align: right;
  38. }
  39. .fc-header td.fc-header-right {
  40. white-space: normal;
  41. }
  42. .fc-header-title {
  43. display: inline-block;
  44. vertical-align: top;
  45. }
  46. .fc-header-title h2 {
  47. margin: 0 0 $spacement-sm;
  48. white-space: nowrap;
  49. }
  50. .fc .fc-header-space {
  51. padding-left: 10px;
  52. }
  53. .fc-header .fc-button {
  54. margin-bottom: 1em;
  55. vertical-align: top;
  56. margin-right: -1px;
  57. }
  58. .fc-header .fc-corner-right {
  59. margin-right: 1px;
  60. }
  61. .fc-header .ui-corner-right {
  62. margin-right: 0;
  63. }
  64. .fc-header .fc-state-hover, .fc-header .ui-state-hover {
  65. z-index: 2;
  66. }
  67. .fc-header .fc-state-down {
  68. z-index: 3;
  69. }
  70. .fc-header .fc-state-active, .fc-header .ui-state-active, .fc-header .ui-state-down {
  71. z-index: 4;
  72. background-color: #e6e6e6;
  73. background-color: #d9d9d9;
  74. background-image: none;
  75. outline: 0;
  76. -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  77. -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  78. box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  79. }
  80. .fc-content {
  81. clear: both;
  82. }
  83. .fc-view {
  84. width: 100%;
  85. }
  86. .fc .ui-widget-header {
  87. border-color: #dddddd;
  88. padding: 4px 0;
  89. }
  90. thead th.fc-first {
  91. border-top-left-radius: 5px;
  92. -moz-border-top-left-radius: 5px;
  93. -webkit-border-top-left-radius: 5px;
  94. }
  95. thead th.fc-last {
  96. border-top-right-radius: 5px;
  97. -moz-border-top-right-radius: 5px;
  98. -webkit-border-top-right-radius: 5px;
  99. }
  100. .ui-state-highlight.fc-today {
  101. background: #f4f4f4;
  102. margin: 2px !important;
  103. border: 0;
  104. border-left: 1px solid #dddddd;
  105. border-top: 1px solid #dddddd;
  106. border-radius: 0;
  107. -moz-border-radius: 0;
  108. -webkit-border-radius: 0;
  109. }
  110. .fc-button {
  111. position: relative;
  112. display: inline-block;
  113. cursor: pointer;
  114. }
  115. .fc-button-inner {
  116. position: relative;
  117. float: left;
  118. overflow: hidden;
  119. }
  120. .fc-button-content {
  121. position: relative;
  122. float: left;
  123. height: 1.9em;
  124. line-height: 1.9em;
  125. padding: 0 0.6em;
  126. white-space: nowrap;
  127. }
  128. .fc-button-content .fc-icon-wrap {
  129. position: relative;
  130. float: left;
  131. top: 50%;
  132. }
  133. .fc-button-content .ui-icon {
  134. position: relative;
  135. float: left;
  136. margin-top: -50%;
  137. *margin-top: 0;
  138. *top: -50%;
  139. }
  140. .fc-state-default {
  141. border-style: solid;
  142. border-color: #cccccc #bbbbbb #aaaaaa;
  143. background: #f3f3f3;
  144. color: black;
  145. }
  146. .fc-state-default .fc-button-effect {
  147. position: absolute;
  148. top: 50%;
  149. left: 0;
  150. }
  151. .fc-state-default .fc-button-effect span {
  152. position: absolute;
  153. top: -100px;
  154. left: 0;
  155. width: 500px;
  156. height: 100px;
  157. border-width: 100px 0 0 1px;
  158. border-style: solid;
  159. border-color: white;
  160. background: #444444;
  161. opacity: 0.09;
  162. filter: alpha(opacity=9);
  163. }
  164. .fc-state-default .fc-button-inner {
  165. border-style: solid;
  166. border-color: #cccccc #bbbbbb #aaaaaa;
  167. background: #f3f3f3;
  168. color: black;
  169. }
  170. .fc-state-hover {
  171. border-color: #999999;
  172. }
  173. .fc-state-hover .fc-button-inner {
  174. border-color: #999999;
  175. }
  176. .fc-state-down {
  177. border-color: #555555;
  178. background: #777777;
  179. }
  180. .fc-state-down .fc-button-inner {
  181. border-color: #555555;
  182. background: #777777;
  183. }
  184. .fc-state-active {
  185. border-color: #555555;
  186. background: #777777;
  187. color: white;
  188. }
  189. .fc-state-active .fc-button-inner {
  190. border-color: #555555;
  191. background: #777777;
  192. color: white;
  193. }
  194. .fc-state-disabled {
  195. color: #999999;
  196. border-color: #dddddd;
  197. cursor: default;
  198. }
  199. .fc-state-disabled .fc-button-inner {
  200. color: #999999;
  201. border-color: #dddddd;
  202. }
  203. .fc-state-disabled .fc-button-effect {
  204. display: none;
  205. }
  206. .fc-event {
  207. border-style: solid;
  208. border-width: 0;
  209. font-size: 0.85em;
  210. cursor: default;
  211. }
  212. a.fc-event, .fc-event-draggable {
  213. cursor: pointer;
  214. }
  215. a.fc-event {
  216. text-decoration: none;
  217. }
  218. .fc-rtl .fc-event {
  219. text-align: right;
  220. }
  221. .fc-event-skin {
  222. border: 0;
  223. }
  224. .fc-event-inner {
  225. position: relative;
  226. width: 100%;
  227. height: 100%;
  228. border-style: solid;
  229. border-width: 0;
  230. overflow: hidden;
  231. }
  232. .fc-event-time, .fc-event-title {
  233. padding: 0 1px;
  234. }
  235. .fc-event-hori {
  236. border-width: 1px 0;
  237. margin-bottom: 1px;
  238. }
  239. .fc-event-hori .ui-resizable-e {
  240. top: 0 !important;
  241. }
  242. table.fc-border-separate {
  243. border-collapse: separate;
  244. }
  245. .fc-border-separate th, .fc-border-separate td {
  246. border-width: 1px 0 0 1px;
  247. }
  248. .fc-border-separate th.fc-last, .fc-border-separate td.fc-last {
  249. border-right-width: 1px;
  250. }
  251. .fc-border-separate tr.fc-last th, .fc-border-separate tr.fc-last td {
  252. border-bottom-width: 1px;
  253. }
  254. .fc-border-separate tbody tr.fc-first td, .fc-border-separate tbody tr.fc-first th {
  255. border-top-width: 0;
  256. }
  257. .fc-grid th {
  258. text-align: center;
  259. }
  260. .fc-grid .fc-day-number {
  261. float: right;
  262. padding: 0 2px;
  263. }
  264. .fc-grid .fc-other-month .fc-day-number {
  265. opacity: 0.3;
  266. filter: alpha(opacity=30);
  267. }
  268. .fc-rtl .fc-grid .fc-day-number {
  269. float: left;
  270. }
  271. .fc-rtl .fc-grid .fc-event-time {
  272. float: right;
  273. }
  274. .fc-agenda table {
  275. border-collapse: separate;
  276. }
  277. .fc-agenda-days th {
  278. text-align: center;
  279. }
  280. .fc-agenda .fc-agenda-axis {
  281. width: 50px;
  282. padding: 0 4px;
  283. vertical-align: middle;
  284. text-align: right;
  285. white-space: nowrap;
  286. font-weight: normal;
  287. }
  288. .fc-agenda .fc-day-content {
  289. padding: 2px 2px 1px;
  290. }
  291. .fc-agenda-days .fc-agenda-axis {
  292. border-right-width: 1px;
  293. }
  294. .fc-agenda-days .fc-col0 {
  295. border-left-width: 0;
  296. }
  297. .fc-agenda-allday th {
  298. border-width: 0 1px;
  299. }
  300. .fc-agenda-allday .fc-day-content {
  301. min-height: 34px;
  302. }
  303. .fc-agenda-divider-inner {
  304. height: 2px;
  305. overflow: hidden;
  306. }
  307. .fc-widget-header .fc-agenda-divider-inner {
  308. background: #eeeeee;
  309. }
  310. .fc-agenda-slots th {
  311. border-width: 1px 1px 0;
  312. }
  313. .fc-agenda-slots td {
  314. border-width: 1px 0 0;
  315. background: none;
  316. }
  317. .fc-agenda-slots td div {
  318. height: 20px;
  319. }
  320. .fc-agenda-slots tr.fc-slot0 th, .fc-agenda-slots tr.fc-slot0 td {
  321. border-top-width: 0;
  322. }
  323. .fc-agenda-slots tr.fc-minor th, .fc-agenda-slots tr.fc-minor td {
  324. border-top-style: dotted;
  325. }
  326. .fc-agenda-slots tr.fc-minor th.ui-widget-header {
  327. *border-top-style: solid;
  328. }
  329. .fc-event-vert {
  330. border-width: 0 1px;
  331. }
  332. .fc-event-vert .fc-event-head, .fc-event-vert .fc-event-content {
  333. position: relative;
  334. z-index: 2;
  335. width: 100%;
  336. overflow: hidden;
  337. }
  338. .fc-event-vert .fc-event-time {
  339. white-space: nowrap;
  340. font-size: 10px;
  341. }
  342. .fc .ui-draggable-dragging .fc-event-bg, .fc-select-helper .fc-event-bg {
  343. display: none;
  344. }
  345. .fc-event-vert .ui-resizable-s {
  346. bottom: 0 !important;
  347. }
  348. // -----------------------------------------------------------------------------
  349. // THEME CUSTOMIZATION
  350. // -----------------------------------------------------------------------------
  351. /* Fullcalendar - header */
  352. .fc {
  353. .fc-header-center {
  354. display: none;
  355. }
  356. .fc-widget-header {
  357. background: $color-primary;
  358. border-color: $color-primary;
  359. color: $color-primary-inverse;
  360. @include font-size(13);
  361. font-weight: 500;
  362. padding: 10px 0;
  363. text-transform: uppercase;
  364. }
  365. .fc-header-title {
  366. h2 {
  367. color: $color-dark;
  368. @include font-size(24);
  369. font-weight: normal;
  370. &:before {
  371. color: $color-primary;
  372. content: "\f073";
  373. display: inline-block;
  374. font-family: FontAwesome;
  375. @include font-size(30);
  376. font-style: normal;
  377. font-weight: normal;
  378. line-height: 1;
  379. margin-right: 10px;
  380. -webkit-font-smoothing: antialiased;
  381. }
  382. }
  383. }
  384. }
  385. // BORDERS
  386. // -----------------------------------------------------------------------------
  387. /* Fullcalendar - Borders */
  388. .fc-widget-content {
  389. border-color: #DDD;
  390. }
  391. /* Fullcalendar - Border Radius */
  392. .fc-content {
  393. thead {
  394. .fc-last {
  395. .fc-first {
  396. border-top-left-radius: 4px;
  397. }
  398. .fc-last {
  399. border-top-right-radius: 4px;
  400. }
  401. }
  402. }
  403. tbody {
  404. .fc-last {
  405. .fc-first {
  406. border-bottom-left-radius: 4px;
  407. }
  408. .fc-last {
  409. border-bottom-right-radius: 4px;
  410. }
  411. }
  412. }
  413. }
  414. // TODAY
  415. // -----------------------------------------------------------------------------
  416. /* Fullcalendar - Today */
  417. .fc-content {
  418. // today
  419. .fc-widget-content.fc-today {
  420. background: #F7F7F7;
  421. }
  422. }
  423. // EVENTS
  424. // -----------------------------------------------------------------------------
  425. /* Fullcalendar - Event Basics */
  426. .fc-event {
  427. background: $color-primary;
  428. border-color: $color-primary;
  429. .fc-event-inner {
  430. padding: 2px 5px;
  431. }
  432. }
  433. /* Fullcalendar - Link Event */
  434. a.fc-event:hover {
  435. .fc-event-inner {
  436. color: #FFF;
  437. text-decoration: underline;
  438. }
  439. }
  440. /* Fullcalendar - Event Time Format */
  441. .fc-grid {
  442. .fc-event-time {
  443. font-weight: 500;
  444. &:after {
  445. content: ' /';
  446. }
  447. }
  448. .fc-event-title {
  449. font-weight: 300;
  450. }
  451. }
  452. // STATES
  453. // -----------------------------------------------------------------------------
  454. /* Fullcalendar - Event States */
  455. /* Buttons - States */
  456. .fc-event.fc-event-default {
  457. background: $color-default;
  458. border-color: $color-default;
  459. .fc-event-inner {
  460. color: $color-default-inverse;
  461. }
  462. }
  463. a.fc-event.fc-event-default:hover {
  464. color: $color-default-inverse;
  465. }
  466. @each $state in $states {
  467. .fc-event.fc-event-#{nth($state,1)} {
  468. background: #{nth($state,2)};
  469. border-color: #{nth($state,2)};
  470. .fc-event-inner {
  471. color: #{nth($state,3)};
  472. }
  473. }
  474. a.fc-event.fc-event-#{nth($state,1)}:hover {
  475. color: #{nth($state,3)};
  476. }
  477. }
  478. // EXTERNAL EVENTS
  479. // -----------------------------------------------------------------------------
  480. /* Fullcalendar - External Events */
  481. .external-event {
  482. cursor: move;
  483. display: inline-block;
  484. @include font-size(12);
  485. font-weight: normal;
  486. margin: 5px;
  487. padding: 10px;
  488. text-align: left;
  489. }
  490. // RESPONSIVE
  491. // -----------------------------------------------------------------------------
  492. @media only screen and (max-width: 400px) {
  493. .fc {
  494. .fc-header-right {
  495. .btn-group {
  496. margin: 10px 0;
  497. }
  498. br.hidden {
  499. display: block !important;
  500. }
  501. }
  502. }
  503. }
  504. @media only screen and (max-width: 480px) {
  505. .fc {
  506. .fc-header-left,
  507. .fc-header-right {
  508. display: block;
  509. width: 100%;
  510. }
  511. .fc-header-right {
  512. padding: 0 0 15px;
  513. text-align: center;
  514. }
  515. }
  516. }
  517. @media only screen and (max-width: 991px) {
  518. .fc {
  519. margin-bottom: 30px;
  520. }
  521. }
  522. // DARK SKIN
  523. // -----------------------------------------------------------------------------\
  524. /* dark */
  525. html.dark {
  526. .fc .fc-header-title h2 {
  527. color: #FFF;
  528. }
  529. .ui-state-highlight.fc-today,
  530. .fc .ui-widget-header,
  531. .fc-widget-content,
  532. .fc-state-disabled,
  533. .fc-state-disabled .fc-button-inner {
  534. border-color: rgba(0, 0, 0, 0.3);
  535. }
  536. .fc-content {
  537. .fc-widget-content.fc-today {
  538. background: $dark-color-2;
  539. }
  540. }
  541. }