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.

418 lines
12 KiB

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