timepicker.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  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: linear-gradient(to top, #fdd49a, #fdf59a);
  103. background-repeat: repeat-x;
  104. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  105. border-color: #fdf59a #fdf59a #fbed50;
  106. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  107. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  108. color: #000 !important;
  109. }
  110. .datepicker table tr td.today:hover,
  111. .datepicker table tr td.today:hover:hover,
  112. .datepicker table tr td.today.disabled:hover,
  113. .datepicker table tr td.today.disabled:hover:hover,
  114. .datepicker table tr td.today:active,
  115. .datepicker table tr td.today:hover:active,
  116. .datepicker table tr td.today.disabled:active,
  117. .datepicker table tr td.today.disabled:hover:active,
  118. .datepicker table tr td.today.active,
  119. .datepicker table tr td.today:hover.active,
  120. .datepicker table tr td.today.disabled.active,
  121. .datepicker table tr td.today.disabled:hover.active,
  122. .datepicker table tr td.today.disabled,
  123. .datepicker table tr td.today:hover.disabled,
  124. .datepicker table tr td.today.disabled.disabled,
  125. .datepicker table tr td.today.disabled:hover.disabled,
  126. .datepicker table tr td.today[disabled],
  127. .datepicker table tr td.today:hover[disabled],
  128. .datepicker table tr td.today.disabled[disabled],
  129. .datepicker table tr td.today.disabled:hover[disabled] {
  130. background-color: #fdf59a;
  131. }
  132. .datepicker table tr td.today:active,
  133. .datepicker table tr td.today:hover:active,
  134. .datepicker table tr td.today.disabled:active,
  135. .datepicker table tr td.today.disabled:hover:active,
  136. .datepicker table tr td.today.active,
  137. .datepicker table tr td.today:hover.active,
  138. .datepicker table tr td.today.disabled.active,
  139. .datepicker table tr td.today.disabled:hover.active {
  140. background-color: #fbf069 \9;
  141. }
  142. .datepicker table tr td.active,
  143. .datepicker table tr td.active:hover,
  144. .datepicker table tr td.active.disabled,
  145. .datepicker table tr td.active.disabled:hover {
  146. background-color: #006dcc;
  147. background-image: linear-gradient(to top, #0088cc, #0044cc);
  148. background-repeat: repeat-x;
  149. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  150. border-color: #0044cc #0044cc #002a80;
  151. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  152. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  153. color: #fff;
  154. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  155. }
  156. .datepicker table tr td.active:hover,
  157. .datepicker table tr td.active:hover:hover,
  158. .datepicker table tr td.active.disabled:hover,
  159. .datepicker table tr td.active.disabled:hover:hover,
  160. .datepicker table tr td.active:active,
  161. .datepicker table tr td.active:hover:active,
  162. .datepicker table tr td.active.disabled:active,
  163. .datepicker table tr td.active.disabled:hover:active,
  164. .datepicker table tr td.active.active,
  165. .datepicker table tr td.active:hover.active,
  166. .datepicker table tr td.active.disabled.active,
  167. .datepicker table tr td.active.disabled:hover.active,
  168. .datepicker table tr td.active.disabled,
  169. .datepicker table tr td.active:hover.disabled,
  170. .datepicker table tr td.active.disabled.disabled,
  171. .datepicker table tr td.active.disabled:hover.disabled,
  172. .datepicker table tr td.active[disabled],
  173. .datepicker table tr td.active:hover[disabled],
  174. .datepicker table tr td.active.disabled[disabled],
  175. .datepicker table tr td.active.disabled:hover[disabled] {
  176. background-color: #0044cc;
  177. }
  178. .datepicker table tr td.active:active,
  179. .datepicker table tr td.active:hover:active,
  180. .datepicker table tr td.active.disabled:active,
  181. .datepicker table tr td.active.disabled:hover:active,
  182. .datepicker table tr td.active.active,
  183. .datepicker table tr td.active:hover.active,
  184. .datepicker table tr td.active.disabled.active,
  185. .datepicker table tr td.active.disabled:hover.active {
  186. background-color: #003399 \9;
  187. }
  188. .datepicker table tr td span {
  189. display: block;
  190. width: 23%;
  191. height: 54px;
  192. line-height: 54px;
  193. float: left;
  194. margin: 1%;
  195. cursor: pointer;
  196. -webkit-border-radius: 4px;
  197. -moz-border-radius: 4px;
  198. border-radius: 4px;
  199. }
  200. .datepicker table tr td span:hover {
  201. background: #eeeeee;
  202. }
  203. .datepicker table tr td span.disabled,
  204. .datepicker table tr td span.disabled:hover {
  205. background: none;
  206. color: #999999;
  207. cursor: default;
  208. }
  209. .datepicker table tr td span.active,
  210. .datepicker table tr td span.active:hover,
  211. .datepicker table tr td span.active.disabled,
  212. .datepicker table tr td span.active.disabled:hover {
  213. background-color: #006dcc;
  214. background-image: linear-gradient(to top, #0088cc, #0044cc);
  215. background-repeat: repeat-x;
  216. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  217. border-color: #0044cc #0044cc #002a80;
  218. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  219. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  220. color: #fff;
  221. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  222. }
  223. .datepicker table tr td span.active:hover,
  224. .datepicker table tr td span.active:hover:hover,
  225. .datepicker table tr td span.active.disabled:hover,
  226. .datepicker table tr td span.active.disabled:hover:hover,
  227. .datepicker table tr td span.active:active,
  228. .datepicker table tr td span.active:hover:active,
  229. .datepicker table tr td span.active.disabled:active,
  230. .datepicker table tr td span.active.disabled:hover:active,
  231. .datepicker table tr td span.active.active,
  232. .datepicker table tr td span.active:hover.active,
  233. .datepicker table tr td span.active.disabled.active,
  234. .datepicker table tr td span.active.disabled:hover.active,
  235. .datepicker table tr td span.active.disabled,
  236. .datepicker table tr td span.active:hover.disabled,
  237. .datepicker table tr td span.active.disabled.disabled,
  238. .datepicker table tr td span.active.disabled:hover.disabled,
  239. .datepicker table tr td span.active[disabled],
  240. .datepicker table tr td span.active:hover[disabled],
  241. .datepicker table tr td span.active.disabled[disabled],
  242. .datepicker table tr td span.active.disabled:hover[disabled] {
  243. background-color: #0044cc;
  244. }
  245. .datepicker table tr td span.active:active,
  246. .datepicker table tr td span.active:hover:active,
  247. .datepicker table tr td span.active.disabled:active,
  248. .datepicker table tr td span.active.disabled:hover:active,
  249. .datepicker table tr td span.active.active,
  250. .datepicker table tr td span.active:hover.active,
  251. .datepicker table tr td span.active.disabled.active,
  252. .datepicker table tr td span.active.disabled:hover.active {
  253. background-color: #003399 \9;
  254. }
  255. .datepicker table tr td span.old {
  256. color: #999999;
  257. }
  258. .datepicker th.switch {
  259. width: 145px;
  260. }
  261. .datepicker thead tr:first-child th,
  262. .datepicker tfoot tr:first-child th {
  263. cursor: pointer;
  264. }
  265. .datepicker thead tr:first-child th:hover,
  266. .datepicker tfoot tr:first-child th:hover {
  267. background: #eeeeee;
  268. }
  269. .datepicker .cw {
  270. font-size: 10px;
  271. width: 12px;
  272. padding: 0 2px 0 5px;
  273. vertical-align: middle;
  274. }
  275. .datepicker thead tr:first-child th.cw {
  276. cursor: default;
  277. background-color: transparent;
  278. }
  279. .input-append.date .add-on i,
  280. .input-prepend.date .add-on i {
  281. display: block;
  282. cursor: pointer;
  283. width: 16px;
  284. height: 16px;
  285. }
  286. /*!
  287. * Timepicker Component for Twitter Bootstrap
  288. *
  289. * Copyright 2013 Joris de Wit
  290. *
  291. * Contributors https://github.com/jdewit/bootstrap-timepicker/graphs/contributors
  292. *
  293. * For the full copyright and license information, please view the LICENSE
  294. * file that was distributed with this source code.
  295. */
  296. .bootstrap-timepicker {
  297. position: relative;
  298. }
  299. .bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu {
  300. left: auto;
  301. right: 0;
  302. }
  303. .bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu:before {
  304. left: auto;
  305. right: 12px;
  306. }
  307. .bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu:after {
  308. left: auto;
  309. right: 13px;
  310. }
  311. .bootstrap-timepicker .add-on {
  312. cursor: pointer;
  313. }
  314. .bootstrap-timepicker .add-on i {
  315. display: inline-block;
  316. width: 16px;
  317. height: 16px;
  318. }
  319. .bootstrap-timepicker-widget.dropdown-menu {
  320. padding: 2px 3px 2px 2px;
  321. }
  322. .bootstrap-timepicker-widget.dropdown-menu.open {
  323. display: inline-block;
  324. }
  325. .bootstrap-timepicker-widget.dropdown-menu:before {
  326. border-bottom: 7px solid rgba(0, 0, 0, 0.2);
  327. border-left: 7px solid transparent;
  328. border-right: 7px solid transparent;
  329. content: "";
  330. display: inline-block;
  331. left: 9px;
  332. position: absolute;
  333. top: -7px;
  334. }
  335. .bootstrap-timepicker-widget.dropdown-menu:after {
  336. border-bottom: 6px solid #FFFFFF;
  337. border-left: 6px solid transparent;
  338. border-right: 6px solid transparent;
  339. content: "";
  340. display: inline-block;
  341. left: 10px;
  342. position: absolute;
  343. top: -6px;
  344. }
  345. .bootstrap-timepicker-widget a.btn,
  346. .bootstrap-timepicker-widget input {
  347. border-radius: 4px;
  348. }
  349. .bootstrap-timepicker-widget table {
  350. width: 100%;
  351. margin: 0;
  352. }
  353. .bootstrap-timepicker-widget table td {
  354. text-align: center;
  355. height: 30px;
  356. margin: 0;
  357. padding: 2px;
  358. }
  359. .bootstrap-timepicker-widget table td:not(.separator) {
  360. min-width: 30px;
  361. }
  362. .bootstrap-timepicker-widget table td span {
  363. width: 100%;
  364. }
  365. .bootstrap-timepicker-widget table td a {
  366. border: 1px transparent solid;
  367. width: 100%;
  368. display: inline-block;
  369. margin: 0;
  370. padding: 8px 0;
  371. outline: 0;
  372. color: #333;
  373. }
  374. .bootstrap-timepicker-widget table td a:hover {
  375. text-decoration: none;
  376. background-color: #eee;
  377. -webkit-border-radius: 4px;
  378. -moz-border-radius: 4px;
  379. border-radius: 4px;
  380. border-color: #ddd;
  381. }
  382. .bootstrap-timepicker-widget table td a i {
  383. margin-top: 2px;
  384. }
  385. .bootstrap-timepicker-widget table td input {
  386. width: 25px;
  387. margin: 0;
  388. text-align: center;
  389. }
  390. .bootstrap-timepicker-widget .modal-content {
  391. padding: 4px;
  392. }
  393. @media (min-width: 767px) {
  394. .bootstrap-timepicker-widget.modal {
  395. width: 200px;
  396. margin-left: -100px;
  397. }
  398. }
  399. @media (max-width: 767px) {
  400. .bootstrap-timepicker {
  401. width: 100%;
  402. }
  403. .bootstrap-timepicker .dropdown-menu {
  404. width: 100%;
  405. }
  406. }