datetimepicker.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. /**
  2. * @license angular-bootstrap-datetimepicker v0.2.4
  3. * (c) 2013 Knight Rider Consulting, Inc. http://www.knightrider.com
  4. * License: MIT
  5. */
  6. .datetimepicker {
  7. padding: 4px;
  8. margin-top: 1px;
  9. -webkit-border-radius: 4px;
  10. -moz-border-radius: 4px;
  11. border-radius: 4px;
  12. direction: ltr;
  13. /*.dow {
  14. border-top: 1px solid #ddd !important;
  15. }*/
  16. }
  17. .datetimepicker-inline {
  18. width: 220px;
  19. }
  20. .datetimepicker.datetimepicker-rtl {
  21. direction: rtl;
  22. }
  23. .datetimepicker.datetimepicker-rtl table tr td span {
  24. float: right;
  25. }
  26. .datetimepicker-dropdown, .datetimepicker-dropdown-left {
  27. top: 0;
  28. left: 0;
  29. }
  30. [class*=" datetimepicker-dropdown"]:before {
  31. content: '';
  32. display: inline-block;
  33. border-left: 7px solid transparent;
  34. border-right: 7px solid transparent;
  35. border-bottom: 7px solid #ccc;
  36. border-bottom-color: rgba(0, 0, 0, 0.2);
  37. position: absolute;
  38. }
  39. [class*=" datetimepicker-dropdown"]:after {
  40. content: '';
  41. display: inline-block;
  42. border-left: 6px solid transparent;
  43. border-right: 6px solid transparent;
  44. border-bottom: 6px solid #ffffff;
  45. position: absolute;
  46. }
  47. [class*=" datetimepicker-dropdown-top"]:before {
  48. content: '';
  49. display: inline-block;
  50. border-left: 7px solid transparent;
  51. border-right: 7px solid transparent;
  52. border-top: 7px solid #ccc;
  53. border-top-color: rgba(0, 0, 0, 0.2);
  54. border-bottom: 0;
  55. }
  56. [class*=" datetimepicker-dropdown-top"]:after {
  57. content: '';
  58. display: inline-block;
  59. border-left: 6px solid transparent;
  60. border-right: 6px solid transparent;
  61. border-top: 6px solid #ffffff;
  62. border-bottom: 0;
  63. }
  64. .datetimepicker-dropdown-bottom-left:before {
  65. top: -7px;
  66. right: 6px;
  67. }
  68. .datetimepicker-dropdown-bottom-left:after {
  69. top: -6px;
  70. right: 7px;
  71. }
  72. .datetimepicker-dropdown-bottom-right:before {
  73. top: -7px;
  74. left: 6px;
  75. }
  76. .datetimepicker-dropdown-bottom-right:after {
  77. top: -6px;
  78. left: 7px;
  79. }
  80. .datetimepicker-dropdown-top-left:before {
  81. bottom: -7px;
  82. right: 6px;
  83. }
  84. .datetimepicker-dropdown-top-left:after {
  85. bottom: -6px;
  86. right: 7px;
  87. }
  88. .datetimepicker-dropdown-top-right:before {
  89. bottom: -7px;
  90. left: 6px;
  91. }
  92. .datetimepicker-dropdown-top-right:after {
  93. bottom: -6px;
  94. left: 7px;
  95. }
  96. .datetimepicker > div {
  97. display: none;
  98. }
  99. .datetimepicker.minutes div.datetimepicker-minutes {
  100. display: block;
  101. }
  102. .datetimepicker.hours div.datetimepicker-hours {
  103. display: block;
  104. }
  105. .datetimepicker.days div.datetimepicker-days {
  106. display: block;
  107. }
  108. .datetimepicker.months div.datetimepicker-months {
  109. display: block;
  110. }
  111. .datetimepicker.years div.datetimepicker-years {
  112. display: block;
  113. }
  114. .datetimepicker table {
  115. margin: 0;
  116. }
  117. .datetimepicker td,
  118. .datetimepicker th {
  119. text-align: center;
  120. width: 20px;
  121. height: 20px;
  122. -webkit-border-radius: 4px;
  123. -moz-border-radius: 4px;
  124. border-radius: 4px;
  125. border: none;
  126. }
  127. .table-striped .datetimepicker table tr td,
  128. .table-striped .datetimepicker table tr th {
  129. background-color: transparent;
  130. }
  131. .datetimepicker table tr td.minute:hover {
  132. background: #eeeeee;
  133. cursor: pointer;
  134. }
  135. .datetimepicker table tr td.hour:hover {
  136. background: #eeeeee;
  137. cursor: pointer;
  138. }
  139. .datetimepicker table tr td.day:hover {
  140. background: #eeeeee;
  141. cursor: pointer;
  142. }
  143. .datetimepicker table tr td.past,
  144. .datetimepicker table tr td.future {
  145. color: #999999;
  146. }
  147. .datetimepicker table tr td.disabled,
  148. .datetimepicker table tr td.disabled:hover {
  149. background: none;
  150. color: #999999;
  151. cursor: default;
  152. }
  153. .datetimepicker table tr td.today,
  154. .datetimepicker table tr td.today:hover,
  155. .datetimepicker table tr td.today.disabled,
  156. .datetimepicker table tr td.today.disabled:hover {
  157. background-color: #fde19a;
  158. background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  159. background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  160. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  161. background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  162. background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  163. background-image: linear-gradient(top, #fdd49a, #fdf59a);
  164. background-repeat: repeat-x;
  165. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  166. border-color: #fdf59a #fdf59a #fbed50;
  167. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  168. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  169. }
  170. .datetimepicker table tr td.today:hover,
  171. .datetimepicker table tr td.today:hover:hover,
  172. .datetimepicker table tr td.today.disabled:hover,
  173. .datetimepicker table tr td.today.disabled:hover:hover,
  174. .datetimepicker table tr td.today:active,
  175. .datetimepicker table tr td.today:hover:active,
  176. .datetimepicker table tr td.today.disabled:active,
  177. .datetimepicker table tr td.today.disabled:hover:active,
  178. .datetimepicker table tr td.today.active,
  179. .datetimepicker table tr td.today:hover.active,
  180. .datetimepicker table tr td.today.disabled.active,
  181. .datetimepicker table tr td.today.disabled:hover.active,
  182. .datetimepicker table tr td.today.disabled,
  183. .datetimepicker table tr td.today:hover.disabled,
  184. .datetimepicker table tr td.today.disabled.disabled,
  185. .datetimepicker table tr td.today.disabled:hover.disabled,
  186. .datetimepicker table tr td.today[disabled],
  187. .datetimepicker table tr td.today:hover[disabled],
  188. .datetimepicker table tr td.today.disabled[disabled],
  189. .datetimepicker table tr td.today.disabled:hover[disabled] {
  190. background-color: #fdf59a;
  191. }
  192. .datetimepicker table tr td.today:active,
  193. .datetimepicker table tr td.today:hover:active,
  194. .datetimepicker table tr td.today.disabled:active,
  195. .datetimepicker table tr td.today.disabled:hover:active,
  196. .datetimepicker table tr td.today.active,
  197. .datetimepicker table tr td.today:hover.active,
  198. .datetimepicker table tr td.today.disabled.active,
  199. .datetimepicker table tr td.today.disabled:hover.active {
  200. background-color: #fbf069 \9;
  201. }
  202. .datetimepicker table tr td.active,
  203. .datetimepicker table tr td.active:hover,
  204. .datetimepicker table tr td.active.disabled,
  205. .datetimepicker table tr td.active.disabled:hover {
  206. background-color: #006dcc;
  207. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  208. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  209. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  210. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  211. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  212. background-image: linear-gradient(top, #0088cc, #0044cc);
  213. background-repeat: repeat-x;
  214. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  215. border-color: #0044cc #0044cc #002a80;
  216. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  217. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  218. color: #fff;
  219. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  220. }
  221. .datetimepicker table tr td.active:hover,
  222. .datetimepicker table tr td.active:hover:hover,
  223. .datetimepicker table tr td.active.disabled:hover,
  224. .datetimepicker table tr td.active.disabled:hover:hover,
  225. .datetimepicker table tr td.active:active,
  226. .datetimepicker table tr td.active:hover:active,
  227. .datetimepicker table tr td.active.disabled:active,
  228. .datetimepicker table tr td.active.disabled:hover:active,
  229. .datetimepicker table tr td.active.active,
  230. .datetimepicker table tr td.active:hover.active,
  231. .datetimepicker table tr td.active.disabled.active,
  232. .datetimepicker table tr td.active.disabled:hover.active,
  233. .datetimepicker table tr td.active.disabled,
  234. .datetimepicker table tr td.active:hover.disabled,
  235. .datetimepicker table tr td.active.disabled.disabled,
  236. .datetimepicker table tr td.active.disabled:hover.disabled,
  237. .datetimepicker table tr td.active[disabled],
  238. .datetimepicker table tr td.active:hover[disabled],
  239. .datetimepicker table tr td.active.disabled[disabled],
  240. .datetimepicker table tr td.active.disabled:hover[disabled] {
  241. background-color: #0044cc;
  242. }
  243. .datetimepicker table tr td.active:active,
  244. .datetimepicker table tr td.active:hover:active,
  245. .datetimepicker table tr td.active.disabled:active,
  246. .datetimepicker table tr td.active.disabled:hover:active,
  247. .datetimepicker table tr td.active.active,
  248. .datetimepicker table tr td.active:hover.active,
  249. .datetimepicker table tr td.active.disabled.active,
  250. .datetimepicker table tr td.active.disabled:hover.active {
  251. background-color: #003399 \9;
  252. }
  253. .datetimepicker table tr td span {
  254. display: block;
  255. width: 23%;
  256. height: 54px;
  257. line-height: 54px;
  258. float: left;
  259. margin: 1%;
  260. cursor: pointer;
  261. -webkit-border-radius: 4px;
  262. -moz-border-radius: 4px;
  263. border-radius: 4px;
  264. }
  265. .datetimepicker span.hour {
  266. height: 26px;
  267. line-height: 26px;
  268. }
  269. .datetimepicker .datetimepicker-hours table tr td span.hour_am,
  270. .datetimepicker .datetimepicker-hours table tr td span.hour_pm {
  271. width: 14.6%;
  272. }
  273. .datetimepicker .datetimepicker-hours fieldset legend,
  274. .datetimepicker .datetimepicker-minutes fieldset legend {
  275. margin-bottom: inherit;
  276. line-height: 30px;
  277. }
  278. .datetimepicker span.minute {
  279. height: 26px;
  280. line-height: 26px;
  281. }
  282. .datetimepicker table tr td span:hover {
  283. background: #eeeeee;
  284. }
  285. .datetimepicker table tr td span.disabled,
  286. .datetimepicker table tr td span.disabled:hover {
  287. background: none;
  288. color: #999999;
  289. cursor: default;
  290. }
  291. .datetimepicker table tr td span.active,
  292. .datetimepicker table tr td span.active:hover,
  293. .datetimepicker table tr td span.active.disabled,
  294. .datetimepicker table tr td span.active.disabled:hover {
  295. background-color: #006dcc;
  296. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  297. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  298. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  299. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  300. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  301. background-image: linear-gradient(top, #0088cc, #0044cc);
  302. background-repeat: repeat-x;
  303. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  304. border-color: #0044cc #0044cc #002a80;
  305. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  306. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  307. color: #fff;
  308. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  309. }
  310. .datetimepicker table tr td.today,
  311. .datetimepicker table tr td.today:hover,
  312. .datetimepicker table tr td.today.disabled,
  313. .datetimepicker table tr td.today.disabled:hover,
  314. .datetimepicker table tr td span.today,
  315. .datetimepicker table tr td span.today:hover,
  316. .datetimepicker table tr td span.today.disabled,
  317. .datetimepicker table tr td span.today.disabled:hover {
  318. background-color: #FDF59A;
  319. }
  320. .datetimepicker table tr td span.active:hover,
  321. .datetimepicker table tr td span.active:hover:hover,
  322. .datetimepicker table tr td span.active.disabled:hover,
  323. .datetimepicker table tr td span.active.disabled:hover:hover,
  324. .datetimepicker table tr td span.active:active,
  325. .datetimepicker table tr td span.active:hover:active,
  326. .datetimepicker table tr td span.active.disabled:active,
  327. .datetimepicker table tr td span.active.disabled:hover:active,
  328. .datetimepicker table tr td span.active.active,
  329. .datetimepicker table tr td span.active:hover.active,
  330. .datetimepicker table tr td span.active.disabled.active,
  331. .datetimepicker table tr td span.active.disabled:hover.active,
  332. .datetimepicker table tr td span.active.disabled,
  333. .datetimepicker table tr td span.active:hover.disabled,
  334. .datetimepicker table tr td span.active.disabled.disabled,
  335. .datetimepicker table tr td span.active.disabled:hover.disabled,
  336. .datetimepicker table tr td span.active[disabled],
  337. .datetimepicker table tr td span.active:hover[disabled],
  338. .datetimepicker table tr td span.active.disabled[disabled],
  339. .datetimepicker table tr td span.active.disabled:hover[disabled] {
  340. background-color: #0044cc;
  341. }
  342. .datetimepicker table tr td span.active:active,
  343. .datetimepicker table tr td span.active:hover:active,
  344. .datetimepicker table tr td span.active.disabled:active,
  345. .datetimepicker table tr td span.active.disabled:hover:active,
  346. .datetimepicker table tr td span.active.active,
  347. .datetimepicker table tr td span.active:hover.active,
  348. .datetimepicker table tr td span.active.disabled.active,
  349. .datetimepicker table tr td span.active.disabled:hover.active {
  350. background-color: #003399 \9;
  351. }
  352. .datetimepicker table tr td span.past,
  353. .datetimepicker table tr td span.future {
  354. color: #999999;
  355. }
  356. .datetimepicker th.switch {
  357. width: 145px;
  358. }
  359. .datetimepicker thead tr:first-child th,
  360. .datetimepicker tfoot tr:first-child th {
  361. cursor: pointer;
  362. }
  363. .datetimepicker thead tr:first-child th:hover,
  364. .datetimepicker tfoot tr:first-child th:hover {
  365. background: #eeeeee;
  366. }
  367. .input-append.date .add-on i,
  368. .input-prepend.date .add-on i {
  369. cursor: pointer;
  370. width: 14px;
  371. height: 14px;
  372. }