You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

528 lines
11 KiB

2 years ago
  1. @import url(http://fonts.googleapis.com/css?family=Droid+Sans+Mono);
  2. .clearfix:after {
  3. content: ".";
  4. display: block;
  5. clear: both;
  6. visibility: hidden;
  7. line-height: 0;
  8. height: 0;
  9. }
  10. .clearfix {
  11. display: inline-block;
  12. }
  13. html[xmlns] .clearfix {
  14. display: block;
  15. }
  16. * html .clearfix {
  17. height: 1%;
  18. }
  19. .noselect
  20. {
  21. -webkit-user-select: none; /* Chrome/Safari */
  22. -moz-user-select: none; /* Firefox */
  23. -ms-user-select: none; /* IE10+ */
  24. }
  25. h4
  26. {
  27. width: 75%;
  28. text-align: center;
  29. font-family: 'Droid Sans Mono';
  30. font-weight: normal;
  31. color: white;
  32. font-size: 14px;
  33. margin: 0 auto 1em auto;
  34. padding: 1em;
  35. background: #b63642;
  36. }
  37. h5
  38. {
  39. font-size: 1em;
  40. font-weight: bold;
  41. }
  42. p
  43. {
  44. text-align: center;
  45. font-family: 'Droid Sans Mono';
  46. margin: 3em auto 1em auto;
  47. padding-top: 0.5em;
  48. padding-bottom: 0.5em;
  49. border-bottom: 2px solid #414141;
  50. background: #f4f4f4;
  51. }
  52. .left-align
  53. {
  54. text-align: left;
  55. }
  56. .right-align
  57. {
  58. text-align: right;
  59. }
  60. //////////////////////////////////
  61. @clndr-border: 1px solid #000;
  62. .cal1
  63. {
  64. margin: 30px auto;
  65. max-width: 600px;
  66. font-family: 'Droid Sans Mono';
  67. font-size: 14px;
  68. .clndr
  69. {
  70. .clndr-controls
  71. {
  72. .clearfix;
  73. width: 100%;
  74. position: relative;
  75. margin-bottom: 10px;
  76. .month
  77. {
  78. float: left;
  79. width: 33%;
  80. text-align: center;
  81. }
  82. .clndr-control-button
  83. {
  84. float: left;
  85. width: 33%;
  86. &.rightalign
  87. {
  88. text-align: right;
  89. width: 34%;
  90. }
  91. .clndr-next-button
  92. {
  93. cursor: pointer;
  94. .noselect;
  95. &:hover { background: #ddd; }
  96. &.inactive
  97. {
  98. opacity: 0.5;
  99. &:hover
  100. {
  101. background: none;
  102. cursor: default;
  103. }
  104. }
  105. }
  106. .clndr-previous-button
  107. {
  108. cursor: pointer;
  109. .noselect;
  110. &:hover { background: #ddd; }
  111. &.inactive
  112. {
  113. opacity: 0.5;
  114. &:hover
  115. {
  116. background: none;
  117. cursor: default;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. .clndr-table
  124. {
  125. table-layout: fixed;
  126. width: 100%;
  127. .header-days
  128. {
  129. height: 30px;
  130. font-size: 10px;
  131. background: #0D70A6;
  132. .header-day
  133. {
  134. vertical-align: middle;
  135. text-align: center;
  136. border-left: @clndr-border;
  137. border-top: @clndr-border;
  138. color: #fff;
  139. &:last-child
  140. {
  141. border-right: @clndr-border;
  142. }
  143. }
  144. }
  145. tr
  146. {
  147. height: 85px;
  148. td
  149. {
  150. vertical-align: top;
  151. }
  152. .day
  153. {
  154. border-left: @clndr-border;
  155. border-top: @clndr-border;
  156. width: 100%;
  157. height: inherit;
  158. &:hover { background: #eee; }
  159. &.today, &.my-today
  160. {
  161. background: #9AD6E3;
  162. &:hover { background: darken(#9AD6E3, 10%); }
  163. &.event
  164. {
  165. background: mix(#B4E09F, #9AD6E3);
  166. }
  167. }
  168. &.event, &.my-event
  169. {
  170. background: #B4E09F;
  171. &:hover
  172. {
  173. background: darken(#B4E09F, 10%);
  174. }
  175. }
  176. &.inactive, &.my-inactive
  177. {
  178. background: #ddd;
  179. }
  180. &:last-child
  181. {
  182. border-right: @clndr-border;
  183. }
  184. .day-contents
  185. {
  186. box-sizing: border-box;
  187. // width: 100%;
  188. // height: 100%;
  189. padding: 8px;
  190. font-size: 12px;
  191. text-align: right;
  192. }
  193. }
  194. .empty, .adjacent-month, .my-empty, .my-adjacent-month
  195. {
  196. border-left: @clndr-border;
  197. border-top: @clndr-border;
  198. width: 100%;
  199. height: inherit;
  200. background: #eee;
  201. &:hover { background: #ddd; }
  202. &:last-child
  203. {
  204. border-right: @clndr-border;
  205. }
  206. }
  207. &:last-child
  208. {
  209. .day, .my-day
  210. {
  211. border-bottom: @clndr-border;
  212. }
  213. .empty, .my-empty
  214. {
  215. border-bottom: @clndr-border;
  216. }
  217. }
  218. }
  219. }
  220. }
  221. }
  222. @box-size: 25px;
  223. .cal2
  224. {
  225. max-width: 177px;
  226. margin: 30px auto;
  227. font-family: 'Droid Sans Mono';
  228. .clndr
  229. {
  230. .clndr-controls
  231. {
  232. display: block;
  233. .clearfix;
  234. width: 100%;
  235. margin-bottom: 3px;
  236. .clndr-previous-button
  237. {
  238. float: left;
  239. width: 10%;
  240. text-align: left;
  241. cursor: pointer;
  242. .noselect;
  243. &:hover
  244. {
  245. background-color: #f4f4f4;
  246. }
  247. }
  248. .month
  249. {
  250. float: left;
  251. width: 80%;
  252. text-align: center;
  253. }
  254. .clndr-next-button
  255. {
  256. float: left;
  257. width: 10%;
  258. text-align: right;
  259. cursor: pointer;
  260. .noselect;
  261. &:hover
  262. {
  263. background-color: #f4f4f4;
  264. }
  265. }
  266. }
  267. .clndr-grid
  268. {
  269. text-align: center;
  270. border: 1px solid #FF4545;
  271. .clearfix;
  272. .header-day
  273. {
  274. float: left;
  275. width: @box-size;
  276. height: @box-size;
  277. // padding-top: 5px;
  278. background: #FF4545;
  279. }
  280. .day
  281. {
  282. float: left;
  283. width: @box-size;
  284. height: @box-size;
  285. &.event
  286. {
  287. background-color: #B4E09F;
  288. }
  289. &.today
  290. {
  291. background-color: #E3C57F;
  292. }
  293. &.selected
  294. {
  295. background-color: #E37FD6;
  296. }
  297. &.inactive{
  298. color: gray;
  299. }
  300. }
  301. .empty, .adjacent-month
  302. {
  303. float: left;
  304. width: @box-size;
  305. height: @box-size;
  306. background: #ddd;
  307. }
  308. }
  309. .clndr-today-button
  310. {
  311. width: 100%;
  312. text-align: center;
  313. cursor: pointer;
  314. &:hover
  315. {
  316. background-color: #ddd;
  317. }
  318. }
  319. }
  320. .multi-month-controls
  321. {
  322. .quarter-button
  323. {
  324. display: inline-block;
  325. width: 25%;
  326. &:hover
  327. {
  328. cursor: pointer;
  329. background-color: #f4f4f4;
  330. }
  331. }
  332. }
  333. }
  334. .cal2 .day.inactive
  335. {
  336. background-color: #aaa;
  337. }
  338. .cal3
  339. {
  340. max-width: 354px;
  341. margin: 0 auto;
  342. font-family: 'Droid Sans Mono';
  343. .cal
  344. {
  345. float: left;
  346. width: 177px;
  347. }
  348. .clndr
  349. {
  350. .clndr-controls
  351. {
  352. display: block;
  353. .clearfix;
  354. width: 100%;
  355. margin-bottom: 8px;
  356. &.top
  357. {
  358. margin-bottom: -22px;
  359. position: relative;
  360. z-index: 1;
  361. }
  362. .clndr-previous-button
  363. {
  364. float: left;
  365. width: 10%;
  366. text-align: left;
  367. cursor: pointer;
  368. .noselect;
  369. &:hover
  370. {
  371. background-color: #f4f4f4;
  372. }
  373. }
  374. .month
  375. {
  376. text-align: center;
  377. width: 80%;
  378. margin: 0 auto;
  379. }
  380. .clndr-next-button
  381. {
  382. float: right;
  383. width: 10%;
  384. text-align: right;
  385. cursor: pointer;
  386. .noselect;
  387. &:hover
  388. {
  389. background-color: #f4f4f4;
  390. }
  391. }
  392. }
  393. .clndr-grid
  394. {
  395. text-align: center;
  396. border: 1px solid #FF4545;
  397. .clearfix;
  398. .header-day
  399. {
  400. float: left;
  401. width: @box-size;
  402. height: @box-size;
  403. // padding-top: 5px;
  404. background: #FF4545;
  405. }
  406. .day
  407. {
  408. float: left;
  409. width: @box-size;
  410. height: @box-size;
  411. &.event
  412. {
  413. background-color: #B4E09F;
  414. }
  415. &.today
  416. {
  417. background-color: #E3C57F;
  418. }
  419. }
  420. .empty, .adjacent-month
  421. {
  422. float: left;
  423. width: @box-size;
  424. height: @box-size;
  425. background: #ddd;
  426. }
  427. }
  428. .clndr-today-button
  429. {
  430. width: 100%;
  431. text-align: center;
  432. cursor: pointer;
  433. &:hover
  434. {
  435. background-color: #ddd;
  436. }
  437. }
  438. }
  439. .multi-month-controls
  440. {
  441. .quarter-button
  442. {
  443. display: inline-block;
  444. width: 25%;
  445. &:hover
  446. {
  447. cursor: pointer;
  448. background-color: #f4f4f4;
  449. }
  450. }
  451. }
  452. }
  453. .clndr-next-button, .clndr-previous-button, .clndr-next-year-button, .clndr-previous-year-button
  454. {
  455. .noselect;
  456. &.inactive
  457. {
  458. opacity: 0.5;
  459. cursor: default;
  460. }
  461. }