bootstrap-datepicker.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. /*!
  2. * Datepicker for Bootstrap v1.4.0 (https://github.com/eternicode/bootstrap-datepicker)
  3. *
  4. * Copyright 2012 Stefan Petre
  5. * Improvements by Andrew Rowls
  6. * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
  7. */
  8. .datepicker {
  9. padding: 4px;
  10. -webkit-border-radius: 4px;
  11. -moz-border-radius: 4px;
  12. border-radius: 4px;
  13. direction: ltr;
  14. }
  15. .datepicker-inline {
  16. width: 220px;
  17. }
  18. .datepicker.datepicker-rtl {
  19. direction: rtl;
  20. }
  21. .datepicker.datepicker-rtl table tr td span {
  22. float: right;
  23. }
  24. .datepicker-dropdown {
  25. top: 0;
  26. left: 0;
  27. }
  28. .datepicker-dropdown:before {
  29. content: '';
  30. display: inline-block;
  31. border-left: 7px solid transparent;
  32. border-right: 7px solid transparent;
  33. border-bottom: 7px solid #ccc;
  34. border-top: 0;
  35. border-bottom-color: rgba(0, 0, 0, 0.2);
  36. position: absolute;
  37. }
  38. .datepicker-dropdown:after {
  39. content: '';
  40. display: inline-block;
  41. border-left: 6px solid transparent;
  42. border-right: 6px solid transparent;
  43. border-bottom: 6px solid #ffffff;
  44. border-top: 0;
  45. position: absolute;
  46. }
  47. .datepicker-dropdown.datepicker-orient-left:before {
  48. left: 6px;
  49. }
  50. .datepicker-dropdown.datepicker-orient-left:after {
  51. left: 7px;
  52. }
  53. .datepicker-dropdown.datepicker-orient-right:before {
  54. right: 6px;
  55. }
  56. .datepicker-dropdown.datepicker-orient-right:after {
  57. right: 7px;
  58. }
  59. .datepicker-dropdown.datepicker-orient-top:before {
  60. top: -7px;
  61. }
  62. .datepicker-dropdown.datepicker-orient-top:after {
  63. top: -6px;
  64. }
  65. .datepicker-dropdown.datepicker-orient-bottom:before {
  66. bottom: -7px;
  67. border-bottom: 0;
  68. border-top: 7px solid #999;
  69. }
  70. .datepicker-dropdown.datepicker-orient-bottom:after {
  71. bottom: -6px;
  72. border-bottom: 0;
  73. border-top: 6px solid #ffffff;
  74. }
  75. .datepicker > div {
  76. display: none;
  77. }
  78. .datepicker.days .datepicker-days,
  79. .datepicker.months .datepicker-months,
  80. .datepicker.years .datepicker-years {
  81. display: block;
  82. }
  83. .datepicker table {
  84. margin: 0;
  85. -webkit-touch-callout: none;
  86. -webkit-user-select: none;
  87. -khtml-user-select: none;
  88. -moz-user-select: none;
  89. -ms-user-select: none;
  90. user-select: none;
  91. }
  92. .datepicker td,
  93. .datepicker th {
  94. text-align: center;
  95. width: 20px;
  96. height: 20px;
  97. -webkit-border-radius: 4px;
  98. -moz-border-radius: 4px;
  99. border-radius: 4px;
  100. border: none;
  101. }
  102. .table-striped .datepicker table tr td,
  103. .table-striped .datepicker table tr th {
  104. background-color: transparent;
  105. }
  106. .datepicker table tr td.day:hover,
  107. .datepicker table tr td.day.focused {
  108. background: #eeeeee;
  109. cursor: pointer;
  110. }
  111. .datepicker table tr td.old,
  112. .datepicker table tr td.new {
  113. color: #999999;
  114. }
  115. .datepicker table tr td.disabled,
  116. .datepicker table tr td.disabled:hover {
  117. background: none;
  118. color: #999999;
  119. cursor: default;
  120. }
  121. .datepicker table tr td.today,
  122. .datepicker table tr td.today:hover,
  123. .datepicker table tr td.today.disabled,
  124. .datepicker table tr td.today.disabled:hover {
  125. background-color: #fde19a;
  126. background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  127. background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  128. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  129. background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  130. background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  131. background-image: linear-gradient(top, #fdd49a, #fdf59a);
  132. background-repeat: repeat-x;
  133. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  134. border-color: #fdf59a #fdf59a #fbed50;
  135. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  136. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  137. color: #000;
  138. }
  139. .datepicker table tr td.today:hover,
  140. .datepicker table tr td.today:hover:hover,
  141. .datepicker table tr td.today.disabled:hover,
  142. .datepicker table tr td.today.disabled:hover:hover,
  143. .datepicker table tr td.today:active,
  144. .datepicker table tr td.today:hover:active,
  145. .datepicker table tr td.today.disabled:active,
  146. .datepicker table tr td.today.disabled:hover:active,
  147. .datepicker table tr td.today.active,
  148. .datepicker table tr td.today:hover.active,
  149. .datepicker table tr td.today.disabled.active,
  150. .datepicker table tr td.today.disabled:hover.active,
  151. .datepicker table tr td.today.disabled,
  152. .datepicker table tr td.today:hover.disabled,
  153. .datepicker table tr td.today.disabled.disabled,
  154. .datepicker table tr td.today.disabled:hover.disabled,
  155. .datepicker table tr td.today[disabled],
  156. .datepicker table tr td.today:hover[disabled],
  157. .datepicker table tr td.today.disabled[disabled],
  158. .datepicker table tr td.today.disabled:hover[disabled] {
  159. background-color: #fdf59a;
  160. }
  161. .datepicker table tr td.today:active,
  162. .datepicker table tr td.today:hover:active,
  163. .datepicker table tr td.today.disabled:active,
  164. .datepicker table tr td.today.disabled:hover:active,
  165. .datepicker table tr td.today.active,
  166. .datepicker table tr td.today:hover.active,
  167. .datepicker table tr td.today.disabled.active,
  168. .datepicker table tr td.today.disabled:hover.active {
  169. background-color: #fbf069 \9;
  170. }
  171. .datepicker table tr td.today:hover:hover {
  172. color: #000;
  173. }
  174. .datepicker table tr td.today.active:hover {
  175. color: #fff;
  176. }
  177. .datepicker table tr td.range,
  178. .datepicker table tr td.range:hover,
  179. .datepicker table tr td.range.disabled,
  180. .datepicker table tr td.range.disabled:hover {
  181. background: #eeeeee;
  182. -webkit-border-radius: 0;
  183. -moz-border-radius: 0;
  184. border-radius: 0;
  185. }
  186. .datepicker table tr td.range.today,
  187. .datepicker table tr td.range.today:hover,
  188. .datepicker table tr td.range.today.disabled,
  189. .datepicker table tr td.range.today.disabled:hover {
  190. background-color: #f3d17a;
  191. background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);
  192. background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);
  193. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));
  194. background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);
  195. background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);
  196. background-image: linear-gradient(top, #f3c17a, #f3e97a);
  197. background-repeat: repeat-x;
  198. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);
  199. border-color: #f3e97a #f3e97a #edde34;
  200. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  201. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  202. -webkit-border-radius: 0;
  203. -moz-border-radius: 0;
  204. border-radius: 0;
  205. }
  206. .datepicker table tr td.range.today:hover,
  207. .datepicker table tr td.range.today:hover:hover,
  208. .datepicker table tr td.range.today.disabled:hover,
  209. .datepicker table tr td.range.today.disabled:hover:hover,
  210. .datepicker table tr td.range.today:active,
  211. .datepicker table tr td.range.today:hover:active,
  212. .datepicker table tr td.range.today.disabled:active,
  213. .datepicker table tr td.range.today.disabled:hover:active,
  214. .datepicker table tr td.range.today.active,
  215. .datepicker table tr td.range.today:hover.active,
  216. .datepicker table tr td.range.today.disabled.active,
  217. .datepicker table tr td.range.today.disabled:hover.active,
  218. .datepicker table tr td.range.today.disabled,
  219. .datepicker table tr td.range.today:hover.disabled,
  220. .datepicker table tr td.range.today.disabled.disabled,
  221. .datepicker table tr td.range.today.disabled:hover.disabled,
  222. .datepicker table tr td.range.today[disabled],
  223. .datepicker table tr td.range.today:hover[disabled],
  224. .datepicker table tr td.range.today.disabled[disabled],
  225. .datepicker table tr td.range.today.disabled:hover[disabled] {
  226. background-color: #f3e97a;
  227. }
  228. .datepicker table tr td.range.today:active,
  229. .datepicker table tr td.range.today:hover:active,
  230. .datepicker table tr td.range.today.disabled:active,
  231. .datepicker table tr td.range.today.disabled:hover:active,
  232. .datepicker table tr td.range.today.active,
  233. .datepicker table tr td.range.today:hover.active,
  234. .datepicker table tr td.range.today.disabled.active,
  235. .datepicker table tr td.range.today.disabled:hover.active {
  236. background-color: #efe24b \9;
  237. }
  238. .datepicker table tr td.selected,
  239. .datepicker table tr td.selected:hover,
  240. .datepicker table tr td.selected.disabled,
  241. .datepicker table tr td.selected.disabled:hover {
  242. background-color: #9e9e9e;
  243. background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
  244. background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
  245. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));
  246. background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
  247. background-image: -o-linear-gradient(top, #b3b3b3, #808080);
  248. background-image: linear-gradient(top, #b3b3b3, #808080);
  249. background-repeat: repeat-x;
  250. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);
  251. border-color: #808080 #808080 #595959;
  252. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  253. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  254. color: #fff;
  255. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  256. }
  257. .datepicker table tr td.selected:hover,
  258. .datepicker table tr td.selected:hover:hover,
  259. .datepicker table tr td.selected.disabled:hover,
  260. .datepicker table tr td.selected.disabled:hover:hover,
  261. .datepicker table tr td.selected:active,
  262. .datepicker table tr td.selected:hover:active,
  263. .datepicker table tr td.selected.disabled:active,
  264. .datepicker table tr td.selected.disabled:hover:active,
  265. .datepicker table tr td.selected.active,
  266. .datepicker table tr td.selected:hover.active,
  267. .datepicker table tr td.selected.disabled.active,
  268. .datepicker table tr td.selected.disabled:hover.active,
  269. .datepicker table tr td.selected.disabled,
  270. .datepicker table tr td.selected:hover.disabled,
  271. .datepicker table tr td.selected.disabled.disabled,
  272. .datepicker table tr td.selected.disabled:hover.disabled,
  273. .datepicker table tr td.selected[disabled],
  274. .datepicker table tr td.selected:hover[disabled],
  275. .datepicker table tr td.selected.disabled[disabled],
  276. .datepicker table tr td.selected.disabled:hover[disabled] {
  277. background-color: #808080;
  278. }
  279. .datepicker table tr td.selected:active,
  280. .datepicker table tr td.selected:hover:active,
  281. .datepicker table tr td.selected.disabled:active,
  282. .datepicker table tr td.selected.disabled:hover:active,
  283. .datepicker table tr td.selected.active,
  284. .datepicker table tr td.selected:hover.active,
  285. .datepicker table tr td.selected.disabled.active,
  286. .datepicker table tr td.selected.disabled:hover.active {
  287. background-color: #666666 \9;
  288. }
  289. .datepicker table tr td.active,
  290. .datepicker table tr td.active:hover,
  291. .datepicker table tr td.active.disabled,
  292. .datepicker table tr td.active.disabled:hover {
  293. background-color: #006dcc;
  294. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  295. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  296. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  297. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  298. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  299. background-image: linear-gradient(top, #0088cc, #0044cc);
  300. background-repeat: repeat-x;
  301. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  302. border-color: #0044cc #0044cc #002a80;
  303. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  304. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  305. color: #fff;
  306. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  307. }
  308. .datepicker table tr td.active:hover,
  309. .datepicker table tr td.active:hover:hover,
  310. .datepicker table tr td.active.disabled:hover,
  311. .datepicker table tr td.active.disabled:hover:hover,
  312. .datepicker table tr td.active:active,
  313. .datepicker table tr td.active:hover:active,
  314. .datepicker table tr td.active.disabled:active,
  315. .datepicker table tr td.active.disabled:hover:active,
  316. .datepicker table tr td.active.active,
  317. .datepicker table tr td.active:hover.active,
  318. .datepicker table tr td.active.disabled.active,
  319. .datepicker table tr td.active.disabled:hover.active,
  320. .datepicker table tr td.active.disabled,
  321. .datepicker table tr td.active:hover.disabled,
  322. .datepicker table tr td.active.disabled.disabled,
  323. .datepicker table tr td.active.disabled:hover.disabled,
  324. .datepicker table tr td.active[disabled],
  325. .datepicker table tr td.active:hover[disabled],
  326. .datepicker table tr td.active.disabled[disabled],
  327. .datepicker table tr td.active.disabled:hover[disabled] {
  328. background-color: #0044cc;
  329. }
  330. .datepicker table tr td.active:active,
  331. .datepicker table tr td.active:hover:active,
  332. .datepicker table tr td.active.disabled:active,
  333. .datepicker table tr td.active.disabled:hover:active,
  334. .datepicker table tr td.active.active,
  335. .datepicker table tr td.active:hover.active,
  336. .datepicker table tr td.active.disabled.active,
  337. .datepicker table tr td.active.disabled:hover.active {
  338. background-color: #003399 \9;
  339. }
  340. .datepicker table tr td span {
  341. display: block;
  342. width: 23%;
  343. height: 54px;
  344. line-height: 54px;
  345. float: left;
  346. margin: 1%;
  347. cursor: pointer;
  348. -webkit-border-radius: 4px;
  349. -moz-border-radius: 4px;
  350. border-radius: 4px;
  351. }
  352. .datepicker table tr td span:hover {
  353. background: #eeeeee;
  354. }
  355. .datepicker table tr td span.disabled,
  356. .datepicker table tr td span.disabled:hover {
  357. background: none;
  358. color: #999999;
  359. cursor: default;
  360. }
  361. .datepicker table tr td span.active,
  362. .datepicker table tr td span.active:hover,
  363. .datepicker table tr td span.active.disabled,
  364. .datepicker table tr td span.active.disabled:hover {
  365. background-color: #006dcc;
  366. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  367. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  368. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  369. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  370. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  371. background-image: linear-gradient(top, #0088cc, #0044cc);
  372. background-repeat: repeat-x;
  373. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  374. border-color: #0044cc #0044cc #002a80;
  375. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  376. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  377. color: #fff;
  378. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  379. }
  380. .datepicker table tr td span.active:hover,
  381. .datepicker table tr td span.active:hover:hover,
  382. .datepicker table tr td span.active.disabled:hover,
  383. .datepicker table tr td span.active.disabled:hover:hover,
  384. .datepicker table tr td span.active:active,
  385. .datepicker table tr td span.active:hover:active,
  386. .datepicker table tr td span.active.disabled:active,
  387. .datepicker table tr td span.active.disabled:hover:active,
  388. .datepicker table tr td span.active.active,
  389. .datepicker table tr td span.active:hover.active,
  390. .datepicker table tr td span.active.disabled.active,
  391. .datepicker table tr td span.active.disabled:hover.active,
  392. .datepicker table tr td span.active.disabled,
  393. .datepicker table tr td span.active:hover.disabled,
  394. .datepicker table tr td span.active.disabled.disabled,
  395. .datepicker table tr td span.active.disabled:hover.disabled,
  396. .datepicker table tr td span.active[disabled],
  397. .datepicker table tr td span.active:hover[disabled],
  398. .datepicker table tr td span.active.disabled[disabled],
  399. .datepicker table tr td span.active.disabled:hover[disabled] {
  400. background-color: #0044cc;
  401. }
  402. .datepicker table tr td span.active:active,
  403. .datepicker table tr td span.active:hover:active,
  404. .datepicker table tr td span.active.disabled:active,
  405. .datepicker table tr td span.active.disabled:hover:active,
  406. .datepicker table tr td span.active.active,
  407. .datepicker table tr td span.active:hover.active,
  408. .datepicker table tr td span.active.disabled.active,
  409. .datepicker table tr td span.active.disabled:hover.active {
  410. background-color: #003399 \9;
  411. }
  412. .datepicker table tr td span.old,
  413. .datepicker table tr td span.new {
  414. color: #999999;
  415. }
  416. .datepicker .datepicker-switch {
  417. width: 145px;
  418. }
  419. .datepicker thead tr:first-child th,
  420. .datepicker tfoot tr th {
  421. cursor: pointer;
  422. }
  423. .datepicker thead tr:first-child th:hover,
  424. .datepicker tfoot tr th:hover {
  425. background: #eeeeee;
  426. }
  427. .datepicker .cw {
  428. font-size: 10px;
  429. width: 12px;
  430. padding: 0 2px 0 5px;
  431. vertical-align: middle;
  432. }
  433. .datepicker thead tr:first-child .cw {
  434. cursor: default;
  435. background-color: transparent;
  436. }
  437. .input-append.date .add-on,
  438. .input-prepend.date .add-on {
  439. cursor: pointer;
  440. }
  441. .input-append.date .add-on i,
  442. .input-prepend.date .add-on i {
  443. margin-top: 3px;
  444. }
  445. .input-daterange input {
  446. text-align: center;
  447. }
  448. .input-daterange input:first-child {
  449. -webkit-border-radius: 3px 0 0 3px;
  450. -moz-border-radius: 3px 0 0 3px;
  451. border-radius: 3px 0 0 3px;
  452. }
  453. .input-daterange input:last-child {
  454. -webkit-border-radius: 0 3px 3px 0;
  455. -moz-border-radius: 0 3px 3px 0;
  456. border-radius: 0 3px 3px 0;
  457. }
  458. .input-daterange .add-on {
  459. display: inline-block;
  460. width: auto;
  461. min-width: 16px;
  462. height: 18px;
  463. padding: 4px 5px;
  464. font-weight: normal;
  465. line-height: 18px;
  466. text-align: center;
  467. text-shadow: 0 1px 0 #ffffff;
  468. vertical-align: middle;
  469. background-color: #eeeeee;
  470. border: 1px solid #ccc;
  471. margin-left: -5px;
  472. margin-right: -5px;
  473. }