datepicker.css 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. /*!
  2. * Datepicker for Bootstrap
  3. *
  4. * Copyright 2012 Stefan Petre
  5. * Improvements by Andrew Rowls
  6. * Licensed under the Apache License v2.0
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. */
  10. .datepicker {
  11. padding: 4px;
  12. -webkit-border-radius: 4px;
  13. -moz-border-radius: 4px;
  14. border-radius: 4px;
  15. direction: ltr;
  16. /*.dow {
  17. border-top: 1px solid #ddd !important;
  18. }*/
  19. }
  20. .datepicker-inline {
  21. width: 220px;
  22. }
  23. .datepicker.datepicker-rtl {
  24. direction: rtl;
  25. }
  26. .datepicker.datepicker-rtl table tr td span {
  27. float: right;
  28. }
  29. .datepicker-dropdown {
  30. top: 0;
  31. left: 0;
  32. }
  33. .datepicker-dropdown:before {
  34. content: '';
  35. display: inline-block;
  36. border-left: 7px solid transparent;
  37. border-right: 7px solid transparent;
  38. border-bottom: 7px solid #ccc;
  39. border-bottom-color: rgba(0, 0, 0, 0.2);
  40. position: absolute;
  41. top: -7px;
  42. left: 6px;
  43. }
  44. .datepicker-dropdown:after {
  45. content: '';
  46. display: inline-block;
  47. border-left: 6px solid transparent;
  48. border-right: 6px solid transparent;
  49. border-bottom: 6px solid #ffffff;
  50. position: absolute;
  51. top: -6px;
  52. left: 7px;
  53. }
  54. .datepicker > div {
  55. display: none;
  56. }
  57. .datepicker.days div.datepicker-days {
  58. display: block;
  59. }
  60. .datepicker.months div.datepicker-months {
  61. display: block;
  62. }
  63. .datepicker.years div.datepicker-years {
  64. display: block;
  65. }
  66. .datepicker table {
  67. margin: 0;
  68. }
  69. .datepicker td,
  70. .datepicker th {
  71. text-align: center;
  72. width: 20px;
  73. height: 20px;
  74. -webkit-border-radius: 4px;
  75. -moz-border-radius: 4px;
  76. border-radius: 4px;
  77. border: none;
  78. }
  79. .table-striped .datepicker table tr td,
  80. .table-striped .datepicker table tr th {
  81. background-color: transparent;
  82. }
  83. .datepicker table tr td.day:hover {
  84. background: #eeeeee;
  85. cursor: pointer;
  86. }
  87. .datepicker table tr td.old,
  88. .datepicker table tr td.new {
  89. color: #999999;
  90. }
  91. .datepicker table tr td.disabled,
  92. .datepicker table tr td.disabled:hover {
  93. background: none;
  94. color: #999999;
  95. cursor: default;
  96. }
  97. .datepicker table tr td.today,
  98. .datepicker table tr td.today:hover,
  99. .datepicker table tr td.today.disabled,
  100. .datepicker table tr td.today.disabled:hover {
  101. background-color: #fde19a;
  102. background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  103. background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  104. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  105. background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  106. background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  107. background-image: linear-gradient(top, #fdd49a, #fdf59a);
  108. background-repeat: repeat-x;
  109. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  110. border-color: #fdf59a #fdf59a #fbed50;
  111. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  112. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  113. color: #000 !important;
  114. }
  115. .datepicker table tr td.today:hover,
  116. .datepicker table tr td.today:hover:hover,
  117. .datepicker table tr td.today.disabled:hover,
  118. .datepicker table tr td.today.disabled:hover:hover,
  119. .datepicker table tr td.today:active,
  120. .datepicker table tr td.today:hover:active,
  121. .datepicker table tr td.today.disabled:active,
  122. .datepicker table tr td.today.disabled:hover:active,
  123. .datepicker table tr td.today.active,
  124. .datepicker table tr td.today:hover.active,
  125. .datepicker table tr td.today.disabled.active,
  126. .datepicker table tr td.today.disabled:hover.active,
  127. .datepicker table tr td.today.disabled,
  128. .datepicker table tr td.today:hover.disabled,
  129. .datepicker table tr td.today.disabled.disabled,
  130. .datepicker table tr td.today.disabled:hover.disabled,
  131. .datepicker table tr td.today[disabled],
  132. .datepicker table tr td.today:hover[disabled],
  133. .datepicker table tr td.today.disabled[disabled],
  134. .datepicker table tr td.today.disabled:hover[disabled] {
  135. background-color: #fdf59a;
  136. }
  137. .datepicker table tr td.today:active,
  138. .datepicker table tr td.today:hover:active,
  139. .datepicker table tr td.today.disabled:active,
  140. .datepicker table tr td.today.disabled:hover:active,
  141. .datepicker table tr td.today.active,
  142. .datepicker table tr td.today:hover.active,
  143. .datepicker table tr td.today.disabled.active,
  144. .datepicker table tr td.today.disabled:hover.active {
  145. background-color: #fbf069 \9;
  146. }
  147. .datepicker table tr td.active,
  148. .datepicker table tr td.active:hover,
  149. .datepicker table tr td.active.disabled,
  150. .datepicker table tr td.active.disabled:hover {
  151. background-color: #006dcc;
  152. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  153. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  154. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  155. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  156. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  157. background-image: linear-gradient(top, #0088cc, #0044cc);
  158. background-repeat: repeat-x;
  159. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  160. border-color: #0044cc #0044cc #002a80;
  161. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  162. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  163. color: #fff;
  164. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  165. }
  166. .datepicker table tr td.active:hover,
  167. .datepicker table tr td.active:hover:hover,
  168. .datepicker table tr td.active.disabled:hover,
  169. .datepicker table tr td.active.disabled:hover:hover,
  170. .datepicker table tr td.active:active,
  171. .datepicker table tr td.active:hover:active,
  172. .datepicker table tr td.active.disabled:active,
  173. .datepicker table tr td.active.disabled:hover:active,
  174. .datepicker table tr td.active.active,
  175. .datepicker table tr td.active:hover.active,
  176. .datepicker table tr td.active.disabled.active,
  177. .datepicker table tr td.active.disabled:hover.active,
  178. .datepicker table tr td.active.disabled,
  179. .datepicker table tr td.active:hover.disabled,
  180. .datepicker table tr td.active.disabled.disabled,
  181. .datepicker table tr td.active.disabled:hover.disabled,
  182. .datepicker table tr td.active[disabled],
  183. .datepicker table tr td.active:hover[disabled],
  184. .datepicker table tr td.active.disabled[disabled],
  185. .datepicker table tr td.active.disabled:hover[disabled] {
  186. background-color: #0044cc;
  187. }
  188. .datepicker table tr td.active:active,
  189. .datepicker table tr td.active:hover:active,
  190. .datepicker table tr td.active.disabled:active,
  191. .datepicker table tr td.active.disabled:hover:active,
  192. .datepicker table tr td.active.active,
  193. .datepicker table tr td.active:hover.active,
  194. .datepicker table tr td.active.disabled.active,
  195. .datepicker table tr td.active.disabled:hover.active {
  196. background-color: #003399 \9;
  197. }
  198. .datepicker table tr td span {
  199. display: block;
  200. width: 23%;
  201. height: 54px;
  202. line-height: 54px;
  203. float: left;
  204. margin: 1%;
  205. cursor: pointer;
  206. -webkit-border-radius: 4px;
  207. -moz-border-radius: 4px;
  208. border-radius: 4px;
  209. }
  210. .datepicker table tr td span:hover {
  211. background: #eeeeee;
  212. }
  213. .datepicker table tr td span.disabled,
  214. .datepicker table tr td span.disabled:hover {
  215. background: none;
  216. color: #999999;
  217. cursor: default;
  218. }
  219. .datepicker table tr td span.active,
  220. .datepicker table tr td span.active:hover,
  221. .datepicker table tr td span.active.disabled,
  222. .datepicker table tr td span.active.disabled:hover {
  223. background-color: #006dcc;
  224. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  225. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  226. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  227. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  228. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  229. background-image: linear-gradient(top, #0088cc, #0044cc);
  230. background-repeat: repeat-x;
  231. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  232. border-color: #0044cc #0044cc #002a80;
  233. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  234. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  235. color: #fff;
  236. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  237. }
  238. .datepicker table tr td span.active:hover,
  239. .datepicker table tr td span.active:hover:hover,
  240. .datepicker table tr td span.active.disabled:hover,
  241. .datepicker table tr td span.active.disabled:hover:hover,
  242. .datepicker table tr td span.active:active,
  243. .datepicker table tr td span.active:hover:active,
  244. .datepicker table tr td span.active.disabled:active,
  245. .datepicker table tr td span.active.disabled:hover:active,
  246. .datepicker table tr td span.active.active,
  247. .datepicker table tr td span.active:hover.active,
  248. .datepicker table tr td span.active.disabled.active,
  249. .datepicker table tr td span.active.disabled:hover.active,
  250. .datepicker table tr td span.active.disabled,
  251. .datepicker table tr td span.active:hover.disabled,
  252. .datepicker table tr td span.active.disabled.disabled,
  253. .datepicker table tr td span.active.disabled:hover.disabled,
  254. .datepicker table tr td span.active[disabled],
  255. .datepicker table tr td span.active:hover[disabled],
  256. .datepicker table tr td span.active.disabled[disabled],
  257. .datepicker table tr td span.active.disabled:hover[disabled] {
  258. background-color: #0044cc;
  259. }
  260. .datepicker table tr td span.active:active,
  261. .datepicker table tr td span.active:hover:active,
  262. .datepicker table tr td span.active.disabled:active,
  263. .datepicker table tr td span.active.disabled:hover:active,
  264. .datepicker table tr td span.active.active,
  265. .datepicker table tr td span.active:hover.active,
  266. .datepicker table tr td span.active.disabled.active,
  267. .datepicker table tr td span.active.disabled:hover.active {
  268. background-color: #003399 \9;
  269. }
  270. .datepicker table tr td span.old {
  271. color: #999999;
  272. }
  273. .datepicker th.switch {
  274. width: 145px;
  275. }
  276. .datepicker thead tr:first-child th,
  277. .datepicker tfoot tr:first-child th {
  278. cursor: pointer;
  279. }
  280. .datepicker thead tr:first-child th:hover,
  281. .datepicker tfoot tr:first-child th:hover {
  282. background: #eeeeee;
  283. }
  284. .datepicker .cw {
  285. font-size: 10px;
  286. width: 12px;
  287. padding: 0 2px 0 5px;
  288. vertical-align: middle;
  289. }
  290. .datepicker thead tr:first-child th.cw {
  291. cursor: default;
  292. background-color: transparent;
  293. }
  294. .input-append.date .add-on i,
  295. .input-prepend.date .add-on i {
  296. display: block;
  297. cursor: pointer;
  298. width: 16px;
  299. height: 16px;
  300. }