daterangepicker.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. .daterangepicker {
  2. position: absolute;
  3. color: inherit;
  4. background-color: #fff;
  5. border-radius: 4px;
  6. border: 1px solid #ddd;
  7. width: 278px;
  8. max-width: none;
  9. padding: 0;
  10. margin-top: 7px;
  11. top: 100px;
  12. left: 20px;
  13. z-index: 3001;
  14. display: none;
  15. font-family: arial;
  16. font-size: 15px;
  17. line-height: 1em;
  18. }
  19. .daterangepicker:before, .daterangepicker:after {
  20. position: absolute;
  21. display: inline-block;
  22. border-bottom-color: rgba(0, 0, 0, 0.2);
  23. content: '';
  24. }
  25. .daterangepicker:before {
  26. top: -7px;
  27. border-right: 7px solid transparent;
  28. border-left: 7px solid transparent;
  29. border-bottom: 7px solid #ccc;
  30. }
  31. .daterangepicker:after {
  32. top: -6px;
  33. border-right: 6px solid transparent;
  34. border-bottom: 6px solid #fff;
  35. border-left: 6px solid transparent;
  36. }
  37. .daterangepicker.opensleft:before {
  38. right: 9px;
  39. }
  40. .daterangepicker.opensleft:after {
  41. right: 10px;
  42. }
  43. .daterangepicker.openscenter:before {
  44. left: 0;
  45. right: 0;
  46. width: 0;
  47. margin-left: auto;
  48. margin-right: auto;
  49. }
  50. .daterangepicker.openscenter:after {
  51. left: 0;
  52. right: 0;
  53. width: 0;
  54. margin-left: auto;
  55. margin-right: auto;
  56. }
  57. .daterangepicker.opensright:before {
  58. left: 9px;
  59. }
  60. .daterangepicker.opensright:after {
  61. left: 10px;
  62. }
  63. .daterangepicker.drop-up {
  64. margin-top: -7px;
  65. }
  66. .daterangepicker.drop-up:before {
  67. top: initial;
  68. bottom: -7px;
  69. border-bottom: initial;
  70. border-top: 7px solid #ccc;
  71. }
  72. .daterangepicker.drop-up:after {
  73. top: initial;
  74. bottom: -6px;
  75. border-bottom: initial;
  76. border-top: 6px solid #fff;
  77. }
  78. .daterangepicker.single .daterangepicker .ranges, .daterangepicker.single .drp-calendar {
  79. float: none;
  80. }
  81. .daterangepicker.single .drp-selected {
  82. display: none;
  83. }
  84. .daterangepicker.show-calendar .drp-calendar {
  85. display: block;
  86. }
  87. .daterangepicker.show-calendar .drp-buttons {
  88. display: block;
  89. }
  90. .daterangepicker.auto-apply .drp-buttons {
  91. display: none;
  92. }
  93. .daterangepicker .drp-calendar {
  94. display: none;
  95. max-width: 270px;
  96. }
  97. .daterangepicker .drp-calendar.left {
  98. padding: 8px 0 8px 8px;
  99. }
  100. .daterangepicker .drp-calendar.right {
  101. padding: 8px;
  102. }
  103. .daterangepicker .drp-calendar.single .calendar-table {
  104. border: none;
  105. }
  106. .daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span {
  107. color: #fff;
  108. border: solid black;
  109. border-width: 0 2px 2px 0;
  110. border-radius: 0;
  111. display: inline-block;
  112. padding: 3px;
  113. }
  114. .daterangepicker .calendar-table .next span {
  115. transform: rotate(-45deg);
  116. -webkit-transform: rotate(-45deg);
  117. }
  118. .daterangepicker .calendar-table .prev span {
  119. transform: rotate(135deg);
  120. -webkit-transform: rotate(135deg);
  121. }
  122. .daterangepicker .calendar-table th, .daterangepicker .calendar-table td {
  123. white-space: nowrap;
  124. text-align: center;
  125. vertical-align: middle;
  126. min-width: 32px;
  127. width: 32px;
  128. height: 24px;
  129. line-height: 24px;
  130. font-size: 12px;
  131. border-radius: 4px;
  132. border: 1px solid transparent;
  133. white-space: nowrap;
  134. cursor: pointer;
  135. }
  136. .daterangepicker .calendar-table {
  137. border: 1px solid #fff;
  138. border-radius: 4px;
  139. background-color: #fff;
  140. }
  141. .daterangepicker .calendar-table table {
  142. width: 100%;
  143. margin: 0;
  144. border-spacing: 0;
  145. border-collapse: collapse;
  146. }
  147. .daterangepicker td.available:hover, .daterangepicker th.available:hover {
  148. background-color: #eee;
  149. border-color: transparent;
  150. color: inherit;
  151. }
  152. .daterangepicker td.week, .daterangepicker th.week {
  153. font-size: 80%;
  154. color: #ccc;
  155. }
  156. .daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {
  157. background-color: #fff;
  158. border-color: transparent;
  159. color: #999;
  160. }
  161. .daterangepicker td.in-range {
  162. background-color: #ebf4f8;
  163. border-color: transparent;
  164. color: #000;
  165. border-radius: 0;
  166. }
  167. .daterangepicker td.start-date {
  168. border-radius: 4px 0 0 4px;
  169. }
  170. .daterangepicker td.end-date {
  171. border-radius: 0 4px 4px 0;
  172. }
  173. .daterangepicker td.start-date.end-date {
  174. border-radius: 4px;
  175. }
  176. .daterangepicker td.active, .daterangepicker td.active:hover {
  177. background-color: #357ebd;
  178. border-color: transparent;
  179. color: #fff;
  180. }
  181. .daterangepicker th.month {
  182. width: auto;
  183. }
  184. .daterangepicker td.disabled, .daterangepicker option.disabled {
  185. color: #999;
  186. cursor: not-allowed;
  187. text-decoration: line-through;
  188. }
  189. .daterangepicker select.monthselect, .daterangepicker select.yearselect {
  190. font-size: 12px;
  191. padding: 1px;
  192. height: auto;
  193. margin: 0;
  194. cursor: default;
  195. }
  196. .daterangepicker select.monthselect {
  197. margin-right: 2%;
  198. width: 56%;
  199. }
  200. .daterangepicker select.yearselect {
  201. width: 40%;
  202. }
  203. .daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {
  204. width: 50px;
  205. margin: 0 auto;
  206. background: #eee;
  207. border: 1px solid #eee;
  208. padding: 2px;
  209. outline: 0;
  210. font-size: 12px;
  211. }
  212. .daterangepicker .calendar-time {
  213. text-align: center;
  214. margin: 4px auto 0 auto;
  215. line-height: 30px;
  216. position: relative;
  217. }
  218. .daterangepicker .calendar-time select.disabled {
  219. color: #ccc;
  220. cursor: not-allowed;
  221. }
  222. .daterangepicker .drp-buttons {
  223. clear: both;
  224. text-align: right;
  225. padding: 8px;
  226. border-top: 1px solid #ddd;
  227. display: none;
  228. line-height: 12px;
  229. vertical-align: middle;
  230. }
  231. .daterangepicker .drp-selected {
  232. display: inline-block;
  233. font-size: 12px;
  234. padding-right: 8px;
  235. }
  236. .daterangepicker .drp-buttons .btn {
  237. margin-left: 8px;
  238. font-size: 12px;
  239. font-weight: bold;
  240. padding: 4px 8px;
  241. }
  242. .daterangepicker.show-ranges.single.rtl .drp-calendar.left {
  243. border-right: 1px solid #ddd;
  244. }
  245. .daterangepicker.show-ranges.single.ltr .drp-calendar.left {
  246. border-left: 1px solid #ddd;
  247. }
  248. .daterangepicker.show-ranges.rtl .drp-calendar.right {
  249. border-right: 1px solid #ddd;
  250. }
  251. .daterangepicker.show-ranges.ltr .drp-calendar.left {
  252. border-left: 1px solid #ddd;
  253. }
  254. .daterangepicker .ranges {
  255. float: none;
  256. text-align: left;
  257. margin: 0;
  258. }
  259. .daterangepicker.show-calendar .ranges {
  260. margin-top: 8px;
  261. }
  262. .daterangepicker .ranges ul {
  263. list-style: none;
  264. margin: 0 auto;
  265. padding: 0;
  266. width: 100%;
  267. }
  268. .daterangepicker .ranges li {
  269. font-size: 12px;
  270. padding: 8px 12px;
  271. cursor: pointer;
  272. }
  273. .daterangepicker .ranges li:hover {
  274. background-color: #eee;
  275. }
  276. .daterangepicker .ranges li.active {
  277. background-color: #08c;
  278. color: #fff;
  279. }
  280. /* Larger Screen Styling */
  281. @media (min-width: 564px) {
  282. .daterangepicker {
  283. width: auto;
  284. }
  285. .daterangepicker .ranges ul {
  286. width: 140px;
  287. }
  288. .daterangepicker.single .ranges ul {
  289. width: 100%;
  290. }
  291. .daterangepicker.single .drp-calendar.left {
  292. clear: none;
  293. }
  294. .daterangepicker.single .ranges, .daterangepicker.single .drp-calendar {
  295. float: left;
  296. }
  297. .daterangepicker {
  298. direction: ltr;
  299. text-align: left;
  300. }
  301. .daterangepicker .drp-calendar.left {
  302. clear: left;
  303. margin-right: 0;
  304. }
  305. .daterangepicker .drp-calendar.left .calendar-table {
  306. border-right: none;
  307. border-top-right-radius: 0;
  308. border-bottom-right-radius: 0;
  309. }
  310. .daterangepicker .drp-calendar.right {
  311. margin-left: 0;
  312. }
  313. .daterangepicker .drp-calendar.right .calendar-table {
  314. border-left: none;
  315. border-top-left-radius: 0;
  316. border-bottom-left-radius: 0;
  317. }
  318. .daterangepicker .drp-calendar.left .calendar-table {
  319. padding-right: 8px;
  320. }
  321. .daterangepicker .ranges, .daterangepicker .drp-calendar {
  322. float: left;
  323. }
  324. }
  325. @media (min-width: 730px) {
  326. .daterangepicker .ranges {
  327. width: auto;
  328. }
  329. .daterangepicker .ranges {
  330. float: left;
  331. }
  332. .daterangepicker.rtl .ranges {
  333. float: right;
  334. }
  335. .daterangepicker .drp-calendar.left {
  336. clear: none !important;
  337. }
  338. }