bootstrap-datetimepicker.css 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. .bootstrap-datetimepicker-widget.dropdown-menu {
  2. margin: 2px 0;
  3. padding: 4px;
  4. width: 19em;
  5. }
  6. @media (min-width: 768px) {
  7. .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {
  8. width: 38em;
  9. }
  10. }
  11. @media (min-width: 992px) {
  12. .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {
  13. width: 38em;
  14. }
  15. }
  16. @media (min-width: 1200px) {
  17. .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {
  18. width: 38em;
  19. }
  20. }
  21. .bootstrap-datetimepicker-widget.dropdown-menu:before,
  22. .bootstrap-datetimepicker-widget.dropdown-menu:after {
  23. content: '';
  24. display: inline-block;
  25. position: absolute;
  26. }
  27. .bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {
  28. border-left: 7px solid transparent;
  29. border-right: 7px solid transparent;
  30. border-bottom: 7px solid #ccc;
  31. border-bottom-color: rgba(0, 0, 0, 0.2);
  32. top: -7px;
  33. left: 7px;
  34. }
  35. .bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {
  36. border-left: 6px solid transparent;
  37. border-right: 6px solid transparent;
  38. border-bottom: 6px solid white;
  39. top: -6px;
  40. left: 8px;
  41. }
  42. .bootstrap-datetimepicker-widget.dropdown-menu.top:before {
  43. border-left: 7px solid transparent;
  44. border-right: 7px solid transparent;
  45. border-top: 7px solid #ccc;
  46. border-top-color: rgba(0, 0, 0, 0.2);
  47. bottom: -7px;
  48. left: 6px;
  49. }
  50. .bootstrap-datetimepicker-widget.dropdown-menu.top:after {
  51. border-left: 6px solid transparent;
  52. border-right: 6px solid transparent;
  53. border-top: 6px solid white;
  54. bottom: -6px;
  55. left: 7px;
  56. }
  57. .bootstrap-datetimepicker-widget.dropdown-menu.pull-right:before {
  58. left: auto;
  59. right: 6px;
  60. }
  61. .bootstrap-datetimepicker-widget.dropdown-menu.pull-right:after {
  62. left: auto;
  63. right: 7px;
  64. }
  65. .bootstrap-datetimepicker-widget .list-unstyled {
  66. margin: 0;
  67. }
  68. .bootstrap-datetimepicker-widget a[data-action] {
  69. padding: 6px 0;
  70. }
  71. .bootstrap-datetimepicker-widget a[data-action]:active {
  72. box-shadow: none;
  73. }
  74. .bootstrap-datetimepicker-widget .timepicker-hour,
  75. .bootstrap-datetimepicker-widget .timepicker-minute,
  76. .bootstrap-datetimepicker-widget .timepicker-second {
  77. width: 54px;
  78. font-weight: bold;
  79. font-size: 1.2em;
  80. margin: 0;
  81. }
  82. .bootstrap-datetimepicker-widget button[data-action] {
  83. padding: 6px;
  84. }
  85. .bootstrap-datetimepicker-widget .btn[data-action="incrementHours"]::after {
  86. position: absolute;
  87. width: 1px;
  88. height: 1px;
  89. margin: -1px;
  90. padding: 0;
  91. overflow: hidden;
  92. clip: rect(0, 0, 0, 0);
  93. border: 0;
  94. content: "Increment Hours";
  95. }
  96. .bootstrap-datetimepicker-widget .btn[data-action="incrementMinutes"]::after {
  97. position: absolute;
  98. width: 1px;
  99. height: 1px;
  100. margin: -1px;
  101. padding: 0;
  102. overflow: hidden;
  103. clip: rect(0, 0, 0, 0);
  104. border: 0;
  105. content: "Increment Minutes";
  106. }
  107. .bootstrap-datetimepicker-widget .btn[data-action="decrementHours"]::after {
  108. position: absolute;
  109. width: 1px;
  110. height: 1px;
  111. margin: -1px;
  112. padding: 0;
  113. overflow: hidden;
  114. clip: rect(0, 0, 0, 0);
  115. border: 0;
  116. content: "Decrement Hours";
  117. }
  118. .bootstrap-datetimepicker-widget .btn[data-action="decrementMinutes"]::after {
  119. position: absolute;
  120. width: 1px;
  121. height: 1px;
  122. margin: -1px;
  123. padding: 0;
  124. overflow: hidden;
  125. clip: rect(0, 0, 0, 0);
  126. border: 0;
  127. content: "Decrement Minutes";
  128. }
  129. .bootstrap-datetimepicker-widget .btn[data-action="showHours"]::after {
  130. position: absolute;
  131. width: 1px;
  132. height: 1px;
  133. margin: -1px;
  134. padding: 0;
  135. overflow: hidden;
  136. clip: rect(0, 0, 0, 0);
  137. border: 0;
  138. content: "Show Hours";
  139. }
  140. .bootstrap-datetimepicker-widget .btn[data-action="showMinutes"]::after {
  141. position: absolute;
  142. width: 1px;
  143. height: 1px;
  144. margin: -1px;
  145. padding: 0;
  146. overflow: hidden;
  147. clip: rect(0, 0, 0, 0);
  148. border: 0;
  149. content: "Show Minutes";
  150. }
  151. .bootstrap-datetimepicker-widget .btn[data-action="togglePeriod"]::after {
  152. position: absolute;
  153. width: 1px;
  154. height: 1px;
  155. margin: -1px;
  156. padding: 0;
  157. overflow: hidden;
  158. clip: rect(0, 0, 0, 0);
  159. border: 0;
  160. content: "Toggle AM/PM";
  161. }
  162. .bootstrap-datetimepicker-widget .picker-switch {
  163. text-align: center;
  164. }
  165. .bootstrap-datetimepicker-widget .picker-switch::after {
  166. position: absolute;
  167. width: 1px;
  168. height: 1px;
  169. margin: -1px;
  170. padding: 0;
  171. overflow: hidden;
  172. clip: rect(0, 0, 0, 0);
  173. border: 0;
  174. content: "Toggle Date and Time Screens";
  175. }
  176. .bootstrap-datetimepicker-widget .picker-switch td {
  177. padding: 0;
  178. margin: 0;
  179. height: auto;
  180. width: auto;
  181. line-height: inherit;
  182. }
  183. .bootstrap-datetimepicker-widget .picker-switch td span {
  184. line-height: 2.5;
  185. height: 2.5em;
  186. width: 100%;
  187. }
  188. .bootstrap-datetimepicker-widget table {
  189. width: 100%;
  190. margin: 0;
  191. }
  192. .bootstrap-datetimepicker-widget td,
  193. .bootstrap-datetimepicker-widget th {
  194. text-align: center;
  195. border-radius: 4px;
  196. }
  197. .bootstrap-datetimepicker-widget th {
  198. height: 20px;
  199. line-height: 20px;
  200. width: 20px;
  201. }
  202. .bootstrap-datetimepicker-widget th.picker-switch {
  203. width: 145px;
  204. }
  205. .bootstrap-datetimepicker-widget th.disabled,
  206. .bootstrap-datetimepicker-widget th.disabled:hover {
  207. background: none;
  208. color: #777777;
  209. cursor: not-allowed;
  210. }
  211. .bootstrap-datetimepicker-widget th.prev::after {
  212. position: absolute;
  213. width: 1px;
  214. height: 1px;
  215. margin: -1px;
  216. padding: 0;
  217. overflow: hidden;
  218. clip: rect(0, 0, 0, 0);
  219. border: 0;
  220. background:
  221. content: "Previous Month";
  222. }
  223. .bootstrap-datetimepicker-widget th.next::after {
  224. position: absolute;
  225. width: 1px;
  226. height: 1px;
  227. margin: -1px;
  228. padding: 0;
  229. overflow: hidden;
  230. clip: rect(0, 0, 0, 0);
  231. border: 0;
  232. content: "Next Month";
  233. }
  234. .bootstrap-datetimepicker-widget thead tr:first-child th {
  235. cursor: pointer;
  236. }
  237. .bootstrap-datetimepicker-widget thead tr:first-child th:hover {
  238. background: #eeeeee;
  239. }
  240. .bootstrap-datetimepicker-widget td {
  241. height: 54px;
  242. line-height: 54px;
  243. width: 54px;
  244. }
  245. .bootstrap-datetimepicker-widget td.cw {
  246. font-size: .8em;
  247. height: 20px;
  248. line-height: 20px;
  249. color: #777777;
  250. }
  251. .bootstrap-datetimepicker-widget td.day {
  252. height: 20px;
  253. line-height: 20px;
  254. width: 20px;
  255. }
  256. .bootstrap-datetimepicker-widget td.day:hover,
  257. .bootstrap-datetimepicker-widget td.hour:hover,
  258. .bootstrap-datetimepicker-widget td.minute:hover,
  259. .bootstrap-datetimepicker-widget td.second:hover {
  260. background: #eeeeee;
  261. cursor: pointer;
  262. }
  263. .bootstrap-datetimepicker-widget td.old,
  264. .bootstrap-datetimepicker-widget td.new {
  265. color: #777777;
  266. }
  267. .bootstrap-datetimepicker-widget td.today {
  268. position: relative;
  269. }
  270. .bootstrap-datetimepicker-widget td.today:before {
  271. content: '';
  272. display: inline-block;
  273. border-left: 7px solid transparent;
  274. border-bottom: 7px solid #428bca;
  275. border-top-color: rgba(0, 0, 0, 0.2);
  276. position: absolute;
  277. bottom: 4px;
  278. right: 4px;
  279. }
  280. .bootstrap-datetimepicker-widget td.active,
  281. .bootstrap-datetimepicker-widget td.active:hover {
  282. background-color: #428bca;
  283. color: #ffffff;
  284. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  285. }
  286. .bootstrap-datetimepicker-widget td.active.today:before {
  287. border-bottom-color: #fff;
  288. }
  289. .bootstrap-datetimepicker-widget td.disabled,
  290. .bootstrap-datetimepicker-widget td.disabled:hover {
  291. background: none;
  292. color: #777777;
  293. cursor: not-allowed;
  294. }
  295. .bootstrap-datetimepicker-widget td span {
  296. display: inline-block;
  297. width: 54px;
  298. height: 54px;
  299. line-height: 54px;
  300. margin: 2px 1.5px;
  301. cursor: pointer;
  302. border-radius: 4px;
  303. }
  304. .bootstrap-datetimepicker-widget td span:hover {
  305. background: #eeeeee;
  306. }
  307. .bootstrap-datetimepicker-widget td span.active {
  308. background-color: #428bca;
  309. color: #ffffff;
  310. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  311. }
  312. .bootstrap-datetimepicker-widget td span.old {
  313. color: #777777;
  314. }
  315. .bootstrap-datetimepicker-widget td span.disabled,
  316. .bootstrap-datetimepicker-widget td span.disabled:hover {
  317. background: none;
  318. color: #777777;
  319. cursor: not-allowed;
  320. }
  321. .bootstrap-datetimepicker-widget.usetwentyfour td.hour {
  322. height: 27px;
  323. line-height: 27px;
  324. }
  325. .input-group.date .input-group-addon {
  326. cursor: pointer;
  327. }
  328. .sr-only {
  329. position: absolute;
  330. width: 1px;
  331. height: 1px;
  332. margin: -1px;
  333. padding: 0;
  334. overflow: hidden;
  335. clip: rect(0, 0, 0, 0);
  336. border: 0;
  337. }