Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.73 KB | None | 0 0
  1. /* /!\ check the Grid patch from line 409 */
  2.  
  3.  
  4. @font-face {
  5. font-family: 'fontawesome-selected';
  6. src: url("fonts/fontawesome-selected.eot");
  7. src: url("fonts/fontawesome-selected.eot?#iefix") format('embedded-opentype'), url("fonts/fontawesome-selected.woff") format('woff'), url("fonts/fontawesome-selected.ttf") format('truetype'), url("fonts/fontawesome-selected.svg#fontawesome-selected") format('svg');
  8. font-weight: normal;
  9. font-style: normal;
  10. }
  11.  
  12. * {
  13. margin: 0;
  14. padding: 0;
  15. box-sizing: border-box;
  16. }
  17.  
  18. body {
  19. background: #f8f8f8;
  20. padding: 2rem;
  21. }
  22.  
  23. .fc-calendar-container {
  24. position: relative;
  25. height: auto;
  26. width: 400px;
  27. }
  28.  
  29. .fc-calendar {
  30. width: 100%;
  31. /*height: 100%;*/
  32. }
  33.  
  34. .fc-calendar .fc-head {
  35. height: 30px;
  36. line-height: 30px;
  37. background: #ccc;
  38. color: #fff;
  39. }
  40.  
  41. .fc-calendar .fc-body {
  42. position: relative;
  43. width: 100%;
  44. /*height: 100%;
  45. height: -moz-calc(100% - 30px);
  46. height: -webkit-calc(100% - 30px);
  47. height: calc(100% - 30px);*/
  48. border: 1px solid #ddd;
  49. }
  50.  
  51. .fc-calendar .fc-row {
  52. width: 100%;
  53. border-bottom: 1px solid #ddd;
  54. }
  55.  
  56. .fc-four-rows .fc-row {
  57. height: 25%;
  58. }
  59.  
  60. .fc-five-rows .fc-row {
  61. height: 60px;
  62. }
  63.  
  64. .fc-six-rows .fc-row {
  65. height: 16.66%;
  66. height: -moz-calc(100%/6);
  67. height: -webkit-calc(100%/6);
  68. height: calc(100%/6);
  69. }
  70.  
  71. .fc-calendar .fc-row > div,
  72. .fc-calendar .fc-head > div {
  73. float: left;
  74. height: 100%;
  75. width: 14.28%; /* 100% / 7 */
  76. width: -moz-calc(100%/7);
  77. width: -webkit-calc(100%/7);
  78. width: calc(100%/7);
  79. position: relative;
  80. }
  81.  
  82. /* IE 9 is rounding up the calc it seems */
  83. .ie9 .fc-calendar .fc-row > div,
  84. .ie9 .fc-calendar .fc-head > div {
  85. width: 14.2%;
  86. }
  87.  
  88. .fc-calendar .fc-row > div {
  89. border-right: 1px solid #ddd;
  90. padding: 4px;
  91. overflow: hidden;
  92. position: relative;
  93. }
  94.  
  95. .fc-calendar .fc-head > div {
  96. text-align: center;
  97. }
  98.  
  99. .fc-calendar .fc-row > div > span.fc-date {
  100. position: absolute;
  101. width: 30px;
  102. height: 20px;
  103. font-size: 20px;
  104. line-height: 20px;
  105. font-weight: 700;
  106. color: #ddd;
  107. text-shadow: 0 -1px 0 rgba(255,255,255,0.8);
  108. bottom: 5px;
  109. right: 5px;
  110. text-align: right;
  111. }
  112.  
  113. .fc-calendar .fc-row > div > span.fc-weekday {
  114. padding-left: 5px;
  115. display: none;
  116. }
  117.  
  118. .fc-calendar .fc-row > div.fc-today {
  119. background: #fff4c3;
  120. }
  121.  
  122. .fc-calendar .fc-row > div.fc-out {
  123. opacity: 0.6;
  124. }
  125.  
  126. .fc-calendar .fc-row > div:last-child,
  127. .fc-calendar .fc-head > div:last-child {
  128. border-right: none;
  129. }
  130.  
  131. .fc-calendar .fc-row:last-child {
  132. border-bottom: none;
  133. }
  134.  
  135. /* Custom calendar elements */
  136.  
  137. .custom-calendar-wrap {
  138. width: 800px;
  139. margin: 10px auto;
  140. position: relative;
  141. overflow: hidden;
  142. }
  143.  
  144. .custom-inner {
  145. background: #fff;
  146. box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  147. }
  148.  
  149. .custom-inner:before,
  150. .custom-inner:after {
  151. content: '';
  152. width: 99%;
  153. height: 50%;
  154. position: absolute;
  155. background: #f6f6f6;
  156. bottom: -4px;
  157. left: 0.5%;
  158. z-index: -1;
  159. box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  160. }
  161.  
  162. .custom-inner:after {
  163. content: '';
  164. width: 98%;
  165. bottom: -7px;
  166. left: 1%;
  167. z-index: -2;
  168. }
  169.  
  170. .custom-header {
  171. background: #fff;
  172. padding: 5px 10px 10px 20px;
  173. height: 70px;
  174. position: relative;
  175. border-top: 5px solid #ef4f69;
  176. border-bottom: 1px solid #ddd;
  177. border-left: 1px solid #ddd;
  178. border-right: 1px solid #ddd;
  179. }
  180.  
  181. .custom-header h2,
  182. .custom-header h3 {
  183. text-align: center;
  184. text-transform: uppercase;
  185. }
  186.  
  187. .custom-header h2 {
  188. color: #495468;
  189. font-weight: 300;
  190. font-size: 18px;
  191. margin-top: 10px;
  192. }
  193.  
  194. .custom-header h3 {
  195. font-size: 10px;
  196. font-weight: 700;
  197. color: #b7bbc2;
  198. }
  199.  
  200. .custom-header nav .custom-btn {
  201. position: absolute;
  202. top: 50%;
  203. transform: translateY(-50%);
  204. width: 30px;
  205. height: 30px;
  206. color: transparent;
  207. cursor: pointer;
  208. margin: 0 1px;
  209. font-size: 24px;
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. /* line-height: 30px; */
  214. -webkit-touch-callout: none;
  215. -webkit-user-select: none;
  216. -khtml-user-select: none;
  217. -moz-user-select: none;
  218. -ms-user-select: none;
  219. user-select: none;
  220. }
  221.  
  222. .custom-header nav .custom-btn:first-child {
  223. left: 5px;
  224. }
  225.  
  226. .custom-header nav .custom-btn:last-child {
  227. right: 5px;
  228. }
  229.  
  230. .custom-header nav .custom-btn:before {
  231. font-family: 'fontawesome-selected';
  232. color: #ef4f69;
  233. position: absolute;
  234. text-align: center;
  235. width: 100%;
  236. }
  237.  
  238. .custom-header nav .custom-btn.custom-prev:before {
  239. content: '\25c2';
  240. }
  241.  
  242. .custom-header nav .custom-btn.custom-next:before {
  243. content: '\25b8';
  244. }
  245.  
  246. .custom-header nav .custom-btn:hover:before {
  247. color: #495468;
  248. }
  249.  
  250. .custom-content-reveal {
  251. background: #f6f6f6;
  252. background: rgba(246, 246, 246, 0.9);
  253. width: 100%;
  254. height: 100%;
  255. position: absolute;
  256. z-index: 100;
  257. top: 100%;
  258. left: 0px;
  259. text-align: center;
  260. -webkit-transition: all 0.6s ease-in-out;
  261. -moz-transition: all 0.6s ease-in-out;
  262. -o-transition: all 0.6s ease-in-out;
  263. -ms-transition: all 0.6s ease-in-out;
  264. transition: all 0.6s ease-in-out;
  265. }
  266.  
  267. .custom-content-reveal span.custom-content-close {
  268. position: absolute;
  269. top: 15px;
  270. right: 10px;
  271. width: 20px;
  272. height: 20px;
  273. text-align: center;
  274. background: #ef4f69;
  275. box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  276. cursor: pointer;
  277. line-height: 13px;
  278. padding: 0;
  279. }
  280.  
  281. .custom-content-reveal span.custom-content-close:after {
  282. content: 'x';
  283. font-size: 18px;
  284. color: #fff;
  285. }
  286.  
  287. .custom-content-reveal a,
  288. .custom-content-reveal span {
  289. font-size: 22px;
  290. padding: 10px 30px;
  291. display: block;
  292. }
  293.  
  294. .custom-content-reveal h4 {
  295. text-transform: uppercase;
  296. font-size: 13px;
  297. font-weight: 300;
  298. letter-spacing: 3px;
  299. color: #777;
  300. padding: 20px;
  301. background: #fff;
  302. border-bottom: 1px solid #ddd;
  303. border-top: 5px solid #ef4f69;
  304. box-shadow: 0 1px rgba(255,255,255,0.9);
  305. margin-bottom: 30px;
  306. }
  307.  
  308. .custom-content-reveal span {
  309. color: #888;
  310. }
  311.  
  312. .custom-content-reveal a {
  313. color: #ef4f69;
  314. }
  315.  
  316. .custom-content-reveal a:hover {
  317. color: #333;
  318. }
  319.  
  320. /* Modifications */
  321.  
  322. .fc-calendar-container {
  323. height: auto;
  324. width: auto;
  325. padding: 30px;
  326. background: #fefefe;
  327. border: 1px solid #ddd;
  328. border-top: none;
  329. /* box-shadow: inset 0 1px rgba(255,255,255,0.8); */
  330. }
  331.  
  332. .fc-calendar .fc-head {
  333. background: transparent;
  334. color: #ef4f69;
  335. font-weight: bold;
  336. text-transform: uppercase;
  337. font-size: 12px;
  338. }
  339.  
  340. .fc-calendar .fc-row > div {
  341. background: #fff;
  342. cursor: pointer;
  343. }
  344.  
  345. .fc-calendar .fc-row > div:empty {
  346. background: transparent;
  347. }
  348.  
  349. .fc-calendar .fc-row > div > span.fc-date {
  350. top: 50%;
  351. left: 50%;
  352. text-align: center;
  353. margin: -10px 0 0 -15px;
  354. color: #686a6e;
  355. font-weight: 400;
  356. pointer-events: none;
  357. }
  358.  
  359. .fc-calendar .fc-row > div.fc-today {
  360. background: #ef4f69;
  361. box-shadow: inset 0 -1px 1px rgba(0,0,0,0.1);
  362. }
  363.  
  364. .fc-calendar .fc-row > div.fc-today > span.fc-date {
  365. color: #fff;
  366. text-shadow: 0 1px 1px rgba(0,0,0,0.1);
  367. }
  368.  
  369. .fc-calendar .fc-row > div.fc-content:after {
  370. content: '\00B7';
  371. text-align: center;
  372. width: 20px;
  373. margin-left: -10px;
  374. position: absolute;
  375. color: #DDD;
  376. font-size: 70px;
  377. line-height: 20px;
  378. left: 50%;
  379. bottom: 3px;
  380. }
  381.  
  382. .fc-calendar .fc-row > div.fc-today.fc-content:after {
  383. color: #b02c42;
  384. }
  385.  
  386. .fc-calendar .fc-row > div.fc-content:hover:after{
  387. color: #ef4f69;
  388. }
  389.  
  390. .fc-calendar .fc-row > div.fc-today.fc-content:hover:after{
  391. color: #fff;
  392. }
  393.  
  394. .fc-calendar .fc-row > div > div a,
  395. .fc-calendar .fc-row > div > div span {
  396. display: none;
  397. font-size: 22px;
  398. }
  399.  
  400. @media screen and (max-width: 400px) {
  401. .fc-calendar-container {
  402. height: 300px;
  403. }
  404. .fc-calendar .fc-row > div > span.fc-date {
  405. font-size: 15px;
  406. }
  407. }
  408.  
  409. /* CUSTOM GRID */
  410.  
  411. .fc-body-2 {
  412. display: grid;
  413. grid-template-rows: repeat(6, 60px);
  414. grid-template-columns: repeat(7, 1fr);
  415. }
  416.  
  417. .fc-body-2 .fc-date {
  418. width: 100%;
  419. height: 100%;
  420. display: flex;
  421. justify-content: center;
  422. align-items: center;
  423.  
  424. /* border: 1px solid lightgray; */
  425. }
  426.  
  427. .fc-date.today {
  428. background-color: rgb(182, 112, 112);
  429. }
  430.  
  431. .blank0 { grid-column-start: 0; }
  432. .blank1 { grid-column-start: 1; }
  433. .blank2 { grid-column-start: 2; }
  434. .blank3 { grid-column-start: 3; }
  435. .blank4 { grid-column-start: 4; }
  436. .blank5 { grid-column-start: 5; }
  437. .blank6 { grid-column-start: 6; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement