angular-bootstrap-calendar.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. /**
  2. * angular-bootstrap-calendar - A pure AngularJS bootstrap themed responsive calendar that can display events and has views for year, month, week and day
  3. * @version v0.18.0
  4. * @link https://github.com/mattlewis92/angular-bootstrap-calendar
  5. * @license MIT
  6. */
  7. [class*="cal-cell"] {
  8. float: left;
  9. margin-left: 0;
  10. min-height: 1px;
  11. }
  12. .cal-row-fluid {
  13. width: 100%;
  14. *zoom: 1;
  15. }
  16. .cal-row-fluid:before,
  17. .cal-row-fluid:after {
  18. display: table;
  19. content: "";
  20. line-height: 0;
  21. }
  22. .cal-row-fluid:after {
  23. clear: both;
  24. }
  25. .cal-row-fluid [class*="cal-cell"] {
  26. display: block;
  27. width: 100%;
  28. -webkit-box-sizing: border-box;
  29. -moz-box-sizing: border-box;
  30. box-sizing: border-box;
  31. float: left;
  32. margin-left: 0%;
  33. *margin-left: -0.05213764%;
  34. }
  35. .cal-row-fluid [class*="cal-cell"]:first-child {
  36. margin-left: 0;
  37. }
  38. .cal-row-fluid .controls-row [class*="cal-cell"]+[class*="cal-cell"] {
  39. margin-left: 0%;
  40. }
  41. .cal-row-fluid .cal-cell7 {
  42. width: 100%;
  43. *width: 99.94669509594883%;
  44. }
  45. .cal-row-fluid .cal-cell6 {
  46. width: 85.71428571428571%;
  47. *width: 85.66098081023453%;
  48. }
  49. .cal-row-fluid .cal-cell5 {
  50. width: 71.42857142857142%;
  51. *width: 71.37526652452024%;
  52. }
  53. .cal-row-fluid .cal-cell4 {
  54. width: 57.14285714285714%;
  55. *width: 57.089552238805965%;
  56. }
  57. .cal-row-fluid .cal-cell3 {
  58. width: 42.857142857142854%;
  59. *width: 42.80383795309168%;
  60. }
  61. .cal-row-fluid .cal-cell2 {
  62. width: 28.57142857142857%;
  63. *width: 28.518123667377395%;
  64. }
  65. .cal-row-fluid .cal-cell1 {
  66. width: 14.285714285714285%;
  67. *width: 14.232409381663112%;
  68. }
  69. .cal-week-box .cal-offset7,
  70. .cal-row-fluid .cal-offset7,
  71. .cal-row-fluid .cal-offset7:first-child {
  72. margin-left: 100%;
  73. *margin-left: 99.89339019189765%;
  74. }
  75. .cal-week-box .cal-offset6,
  76. .cal-row-fluid .cal-offset6,
  77. .cal-row-fluid .cal-offset6:first-child {
  78. margin-left: 85.71428571428571%;
  79. *margin-left: 85.60767590618336%;
  80. }
  81. .cal-week-box .cal-offset5,
  82. .cal-row-fluid .cal-offset5,
  83. .cal-row-fluid .cal-offset5:first-child {
  84. margin-left: 71.42857142857142%;
  85. *margin-left: 71.32196162046907%;
  86. }
  87. .cal-week-box .cal-offset4,
  88. .cal-row-fluid .cal-offset4,
  89. .cal-row-fluid .cal-offset4:first-child {
  90. margin-left: 57.14285714285714%;
  91. *margin-left: 57.03624733475479%;
  92. }
  93. .cal-week-box .cal-offset3,
  94. .cal-row-fluid .cal-offset3,
  95. .cal-row-fluid .cal-offset3:first-child {
  96. margin-left: 42.857142857142854%;
  97. *margin-left: 42.750533049040506%;
  98. }
  99. .cal-week-box .cal-offset2,
  100. .cal-row-fluid .cal-offset2,
  101. .cal-row-fluid .cal-offset2:first-child {
  102. margin-left: 28.57142857142857%;
  103. *margin-left: 28.46481876332622%;
  104. }
  105. .cal-week-box .cal-offset1,
  106. .cal-row-fluid .cal-offset1,
  107. .cal-row-fluid .cal-offset1:first-child {
  108. margin-left: 14.285714285714285%;
  109. *margin-left: 14.17910447761194%;
  110. }
  111. .cal-row-fluid .cal-cell1 {
  112. width: 14.285714285714285%;
  113. *width: 14.233576642335766%;
  114. }
  115. [class*="cal-cell"].hide,
  116. .cal-row-fluid [class*="cal-cell"].hide {
  117. display: none;
  118. }
  119. [class*="cal-cell"].pull-right,
  120. .cal-row-fluid [class*="cal-cell"].pull-right {
  121. float: right;
  122. }
  123. .cal-row-head [class*="cal-cell"]:first-child,
  124. .cal-row-head [class*="cal-cell"] {
  125. min-height: auto;
  126. overflow: hidden;
  127. text-overflow: ellipsis;
  128. }
  129. .cal-events-num {
  130. margin-top: 20px;
  131. }
  132. .cal-month-day {
  133. position: relative;
  134. display: block;
  135. width: 100%;
  136. }
  137. .cal-month-day .cal-events-num {
  138. margin-left: 10px;
  139. margin-top: 18px;
  140. }
  141. #cal-week-box {
  142. position: absolute;
  143. width: 70px;
  144. left: -71px;
  145. top: -1px;
  146. padding: 8px 5px;
  147. cursor: pointer;
  148. }
  149. .cal-day-tick {
  150. position: absolute;
  151. right: 50%;
  152. bottom: -21px;
  153. padding: 0px 5px;
  154. cursor: pointer;
  155. z-index: 5;
  156. text-align: center;
  157. width: 26px;
  158. margin-right: -17px;
  159. }
  160. .cal-year-box #cal-day-tick {
  161. margin-right: -7px;
  162. }
  163. .cal-slide-box {
  164. position: relative;
  165. }
  166. .cal-slide-tick {
  167. position: absolute;
  168. width: 16px;
  169. margin-left: -7px;
  170. height: 9px;
  171. top: -1px;
  172. z-index: 1;
  173. }
  174. .cal-slide-tick.tick-month1 {
  175. left: 12.5%;
  176. }
  177. .cal-slide-tick.tick-month2 {
  178. left: 37.5%;
  179. }
  180. .cal-slide-tick.tick-month3 {
  181. left: 62.5%;
  182. }
  183. .cal-slide-tick.tick-month4 {
  184. left: 87.5%;
  185. }
  186. .cal-slide-tick.tick-day1 {
  187. left: 7.14285714285715%;
  188. }
  189. .cal-slide-tick.tick-day2 {
  190. left: 21.42857142857143%;
  191. }
  192. .cal-slide-tick.tick-day3 {
  193. left: 35.71428571428572%;
  194. }
  195. .cal-slide-tick.tick-day4 {
  196. left: 50%;
  197. }
  198. .cal-slide-tick.tick-day5 {
  199. left: 64.2857142857143%;
  200. }
  201. .cal-slide-tick.tick-day6 {
  202. left: 78.57142857142859%;
  203. }
  204. .cal-slide-tick.tick-day7 {
  205. left: 92.85714285714285%;
  206. }
  207. .events-list {
  208. position: absolute;
  209. bottom: 0;
  210. left: 0;
  211. z-index: 1000;
  212. }
  213. .cal-slide-content ul.unstyled {
  214. margin-bottom: 0;
  215. }
  216. .cal-slide-content ul li.dragging-active .event-item {
  217. color: black;
  218. }
  219. .cal-week-box {
  220. position: relative;
  221. }
  222. .cal-week-box [data-event-class] {
  223. white-space: nowrap;
  224. height: 30px;
  225. line-height: 30px;
  226. text-overflow: ellipsis;
  227. overflow: hidden;
  228. padding-top: 0px !important;
  229. margin-top: 0px !important;
  230. margin-bottom: 0px !important;
  231. font-size: 12px;
  232. padding: 0 3px !important;
  233. }
  234. .cal-week-box .cal-day-panel {
  235. border: 0px !important;
  236. }
  237. .cal-week-box.cal-day-box .cal-row-head {
  238. padding-left: 60px;
  239. }
  240. .cal-week-box.cal-day-box .cal-day-panel {
  241. overflow-x: hidden;
  242. }
  243. .cal-day-box {
  244. text-wrap: none;
  245. overflow-x: auto !important;
  246. overflow-y: hidden;
  247. }
  248. .cal-day-box .cal-day-hour-part {
  249. height: 30px;
  250. box-sizing: border-box;
  251. -moz-box-sizing: border-box;
  252. -webkit-box-sizing: border-box;
  253. border-bottom: thin dashed #e1e1e1;
  254. }
  255. .cal-day-box .cal-day-hour .day-highlight {
  256. height: 30px;
  257. }
  258. .cal-day-box .cal-hours {
  259. font-weight: bold;
  260. font-size: 12px;
  261. }
  262. .cal-day-box .cal-day-hour:nth-child(odd) {
  263. background-color: #fafafa;
  264. }
  265. .cal-day-box .cal-day-panel {
  266. position: relative;
  267. padding-left: 60px;
  268. border: solid 1px #e1e1e1;
  269. }
  270. .cal-day-box .cal-day-panel-hour {
  271. position: absolute;
  272. width: 100%;
  273. margin-left: -60px;
  274. }
  275. .cal-day-box .day-event {
  276. position: absolute;
  277. width: 150px;
  278. overflow: hidden;
  279. padding: 2px 3px !important;
  280. }
  281. .cal-day-box .day-event a {
  282. font-size: 12px;
  283. text-overflow: ellipsis;
  284. }
  285. .cal-day-box .day-highlight {
  286. padding-top: 2px;
  287. padding-left: 8px;
  288. padding-right: 8px;
  289. box-sizing: border-box;
  290. -moz-box-sizing: border-box;
  291. -webkit-box-sizing: border-box;
  292. border: 1px solid #c3c3c3;
  293. margin: 1px 1px;
  294. overflow: hidden;
  295. text-overflow: ellipsis;
  296. }
  297. .cal-day-box .day-highlight.dh-event-important {
  298. border: 1px solid #ad2121;
  299. }
  300. .cal-day-box .day-highlight.dh-event-warning {
  301. border: 1px solid #e3bc08;
  302. }
  303. .cal-day-box .day-highlight.dh-event-info {
  304. border: 1px solid dodgerblue;
  305. }
  306. .cal-day-box .day-highlight.dh-event-inverse {
  307. border: 1px solid #1b1b1b;
  308. }
  309. .cal-day-box .day-highlight.dh-event-success {
  310. border: 1px solid darkgreen;
  311. }
  312. .cal-day-box .day-highlight.dh-event-special {
  313. background-color: #ffe6ff;
  314. border: 1px solid #800080;
  315. }
  316. .event {
  317. display: block;
  318. background-color: #c3c3c3;
  319. /* width: 12px; */
  320. height: 12px;
  321. margin-right: 2px;
  322. margin-bottom: 2px;
  323. -webkit-box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.4);
  324. box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.4);
  325. border-radius: 8px;
  326. border: 1px solid #ffffff;
  327. }
  328. .event-block {
  329. display: block;
  330. background-color: #c3c3c3;
  331. width: 20px;
  332. height: 100%;
  333. }
  334. .cal-event-list .event.pull-left {
  335. margin-top: 3px;
  336. }
  337. .event-important {
  338. background-color: #ad2121;
  339. }
  340. .event-info {
  341. background-color: dodgerblue;
  342. }
  343. .event-warning {
  344. background-color: #e3bc08;
  345. }
  346. .event-inverse {
  347. background-color: #1b1b1b;
  348. }
  349. .event-success {
  350. background-color: darkgreen;
  351. }
  352. .event-special {
  353. background-color: #800080;
  354. }
  355. .day-highlight:hover,
  356. .day-highlight {
  357. background-color: #dddddd;
  358. }
  359. .day-highlight.dh-event-important:hover,
  360. .day-highlight.dh-event-important {
  361. background-color: #fae3e3;
  362. }
  363. .day-highlight.dh-event-warning:hover,
  364. .day-highlight.dh-event-warning {
  365. background-color: #fdf1ba;
  366. }
  367. .day-highlight.dh-event-info:hover,
  368. .day-highlight.dh-event-info {
  369. background-color: #d1e8ff;
  370. }
  371. .day-highlight.dh-event-inverse:hover,
  372. .day-highlight.dh-event-inverse {
  373. background-color: #c1c1c1;
  374. }
  375. .day-highlight.dh-event-success:hover,
  376. .day-highlight.dh-event-success {
  377. background-color: #caffca;
  378. }
  379. .day-highlight.dh-event-special:hover,
  380. .day-highlight.dh-event-special {
  381. background-color: #ffe6ff;
  382. }
  383. .cal-row-head [class*="cal-cell"]:first-child,
  384. .cal-row-head [class*="cal-cell"] {
  385. font-weight: bolder;
  386. text-align: center;
  387. border: 0px solid;
  388. padding: 5px 0;
  389. }
  390. .cal-row-head [class*="cal-cell"] small {
  391. font-weight: normal;
  392. }
  393. .cal-year-box .row:hover,
  394. .cal-row-fluid:hover {
  395. background-color: #fafafa;
  396. }
  397. .cal-month-day {
  398. height: 60px;
  399. }
  400. [class*="cal-cell"]:hover,
  401. .cell-focus,
  402. [class*="cal-cell"] .drop-active,
  403. .cal-cell.drop-active {
  404. background-color: #ededed;
  405. }
  406. .cal-year-box [class*="span"],
  407. .cal-month-box [class*="cal-cell"] {
  408. min-height: 45px;
  409. border-right: 1px solid #e1e1e1;
  410. position: relative;
  411. }
  412. .cal-year-box [class*="span"] {
  413. min-height: 60px;
  414. }
  415. .cal-year-box .row [class*="col-"]:last-child,
  416. .cal-month-box .cal-row [class*="cal-cell"]:last-child {
  417. border-right: 0px;
  418. }
  419. .cal-year-box .row,
  420. .cal-month-box .cal-row-fluid {
  421. border-bottom: 1px solid #e1e1e1;
  422. margin-left: 0px;
  423. margin-right: 0px;
  424. }
  425. .cal-year-box .row:last-child,
  426. .cal-month-box .cal-row-fluid:last-child {
  427. border-bottom: 0px;
  428. }
  429. .cal-month-box,
  430. .cal-year-box,
  431. .cal-week-box {
  432. border-top: 1px solid #e1e1e1;
  433. border-bottom: 1px solid #e1e1e1;
  434. border-right: 1px solid #e1e1e1;
  435. border-left: 1px solid #e1e1e1;
  436. border-radius: 2px;
  437. }
  438. .cal-month-box {
  439. border-right: 0px;
  440. border-bottom: 0px;
  441. }
  442. span[data-cal-date] {
  443. font-size: 1.2em;
  444. font-weight: normal;
  445. opacity: 0.5;
  446. transition: all 0.3s ease-in-out;
  447. -webkit-transition: all 0.1s ease-in-out;
  448. -moz-transition: all 0.1s ease-in-out;
  449. -ms-transition: all 0.1s ease-in-out;
  450. -o-transition: all 0.1s ease-in-out;
  451. margin-top: 15px;
  452. margin-right: 15px;
  453. }
  454. span[data-cal-date]:hover {
  455. opacity: 1;
  456. }
  457. .cal-day-outmonth span[data-cal-date] {
  458. opacity: 0.1;
  459. cursor: default;
  460. }
  461. .cal-day-today {
  462. background-color: #e8fde7;
  463. }
  464. .cal-day-today span[data-cal-date] {
  465. color: darkgreen;
  466. }
  467. .cal-month-box .cal-day-today span[data-cal-date] {
  468. font-size: 1.9em;
  469. }
  470. .cal-day-holiday span[data-cal-date] {
  471. color: #800080;
  472. }
  473. .cal-day-weekend span[data-cal-date] {
  474. color: darkred;
  475. }
  476. #cal-week-box {
  477. border: 1px solid #e1e1e1;
  478. border-right: 0px;
  479. border-radius: 5px 0 0 5px;
  480. background-color: #fafafa;
  481. text-align: right;
  482. }
  483. .cal-week-box .cal-row-head {
  484. border-bottom: 1px solid #e1e1e1;
  485. }
  486. .cal-day-tick {
  487. border: 1px solid #e1e1e1;
  488. border-top: 0px solid;
  489. border-radius: 0 0 5px 5px;
  490. background-color: #ededed;
  491. text-align: center;
  492. }
  493. .cal-day-tick .fa {
  494. display: none;
  495. }
  496. .cal-slide-box {
  497. border-top: 0px solid #8c8c8c;
  498. }
  499. .cal-slide-content {
  500. padding: 20px;
  501. color: #ffffff;
  502. background-color: #555555;
  503. -webkit-box-shadow: inset 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
  504. box-shadow: inset 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
  505. }
  506. .cal-slide-content a.event-item {
  507. color: #ffffff;
  508. font-weight: normal;
  509. }
  510. a.event-item-edit,
  511. a.event-item-delete {
  512. padding-left: 5px;
  513. }
  514. .cal-year-box .cal-slide-content a.event-item,
  515. .cal-year-box a.event-item-edit,
  516. .cal-year-box a.event-item-delete {
  517. position: relative;
  518. top: -3px;
  519. }
  520. .events-list {
  521. max-height: 47px;
  522. padding-left: 5px;
  523. }
  524. .cal-column {
  525. border-left: 1px solid #e1e1e1;
  526. }
  527. a.cal-event-week {
  528. text-decoration: none;
  529. color: #151515;
  530. }
  531. .badge-important {
  532. background-color: #b94a48;
  533. }
  534. .pointer {
  535. cursor: pointer;
  536. }
  537. .cal-year-box:last-child {
  538. border-bottom: 0px;
  539. }
  540. .cal-context {
  541. width: 100%;
  542. }
  543. @media (max-width: 991px) {
  544. .cal-year-box [class*="span"]:nth-child(2) {
  545. border-right: 0px;
  546. }
  547. .cal-year-box [class*="span"]:nth-child(1),
  548. .cal-year-box [class*="span"]:nth-child(2) {
  549. border-bottom: 1px solid #e1e1e1;
  550. }
  551. }