daterangepicker.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. /*!
  2. * Stylesheet for the Date Range Picker, for use with Bootstrap 3.x
  3. *
  4. * Copyright 2013 Dan Grossman ( http://www.dangrossman.info )
  5. * Licensed under the Apache License v2.0
  6. * http://www.apache.org/licenses/LICENSE-2.0
  7. *
  8. * Built for http://www.improvely.com
  9. */
  10. .daterangepicker.dropdown-menu {
  11. max-width: none;
  12. z-index: 3000;
  13. }
  14. .daterangepicker.opensleft .ranges, .daterangepicker.opensleft .calendar {
  15. float: left;
  16. margin: 4px;
  17. }
  18. .daterangepicker.opensright .ranges, .daterangepicker.opensright .calendar,
  19. .daterangepicker.openscenter .ranges, .daterangepicker.openscenter .calendar {
  20. float: right;
  21. margin: 4px;
  22. }
  23. .daterangepicker.single .ranges, .daterangepicker.single .calendar {
  24. float: none;
  25. }
  26. .daterangepicker .ranges {
  27. width: 160px;
  28. text-align: left;
  29. }
  30. .daterangepicker .ranges .range_inputs>div {
  31. float: left;
  32. }
  33. .daterangepicker .ranges .range_inputs>div:nth-child(2) {
  34. padding-left: 11px;
  35. }
  36. .daterangepicker .calendar {
  37. display: none;
  38. max-width: 270px;
  39. }
  40. .daterangepicker.show-calendar .calendar {
  41. display: block;
  42. }
  43. .daterangepicker .calendar.single .calendar-date {
  44. border: none;
  45. }
  46. .daterangepicker .calendar th, .daterangepicker .calendar td {
  47. font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  48. white-space: nowrap;
  49. text-align: center;
  50. min-width: 32px;
  51. }
  52. .daterangepicker .daterangepicker_start_input label,
  53. .daterangepicker .daterangepicker_end_input label {
  54. color: #333;
  55. display: block;
  56. font-size: 11px;
  57. font-weight: normal;
  58. height: 20px;
  59. line-height: 20px;
  60. margin-bottom: 2px;
  61. text-shadow: #fff 1px 1px 0px;
  62. text-transform: uppercase;
  63. width: 74px;
  64. }
  65. .daterangepicker .ranges input {
  66. font-size: 11px;
  67. }
  68. .daterangepicker .ranges .input-mini {
  69. border: 1px solid #ccc;
  70. border-radius: 4px;
  71. color: #555;
  72. display: block;
  73. font-size: 11px;
  74. height: 30px;
  75. line-height: 30px;
  76. vertical-align: middle;
  77. margin: 0 0 10px 0;
  78. padding: 0 6px;
  79. width: 74px;
  80. }
  81. .daterangepicker .ranges ul {
  82. list-style: none;
  83. margin: 0;
  84. padding: 0;
  85. }
  86. .daterangepicker .ranges li {
  87. font-size: 13px;
  88. background: #f5f5f5;
  89. border: 1px solid #f5f5f5;
  90. color: #08c;
  91. padding: 3px 12px;
  92. margin-bottom: 8px;
  93. -webkit-border-radius: 5px;
  94. -moz-border-radius: 5px;
  95. border-radius: 5px;
  96. cursor: pointer;
  97. }
  98. .daterangepicker .ranges li.active, .daterangepicker .ranges li:hover {
  99. background: #08c;
  100. border: 1px solid #08c;
  101. color: #fff;
  102. }
  103. .daterangepicker .calendar-date {
  104. border: 1px solid #ddd;
  105. padding: 4px;
  106. border-radius: 4px;
  107. background: #fff;
  108. }
  109. .daterangepicker .calendar-time {
  110. text-align: center;
  111. margin: 8px auto 0 auto;
  112. line-height: 30px;
  113. }
  114. .daterangepicker {
  115. position: absolute;
  116. background: #fff;
  117. top: 100px;
  118. left: 20px;
  119. padding: 4px;
  120. margin-top: 1px;
  121. -webkit-border-radius: 4px;
  122. -moz-border-radius: 4px;
  123. border-radius: 4px;
  124. }
  125. .daterangepicker.opensleft:before {
  126. position: absolute;
  127. top: -7px;
  128. right: 9px;
  129. display: inline-block;
  130. border-right: 7px solid transparent;
  131. border-bottom: 7px solid #ccc;
  132. border-left: 7px solid transparent;
  133. border-bottom-color: rgba(0, 0, 0, 0.2);
  134. content: '';
  135. }
  136. .daterangepicker.opensleft:after {
  137. position: absolute;
  138. top: -6px;
  139. right: 10px;
  140. display: inline-block;
  141. border-right: 6px solid transparent;
  142. border-bottom: 6px solid #fff;
  143. border-left: 6px solid transparent;
  144. content: '';
  145. }
  146. .daterangepicker.openscenter:before {
  147. position: absolute;
  148. top: -7px;
  149. left: 0;
  150. right: 0;
  151. width: 0;
  152. margin-left: auto;
  153. margin-right: auto;
  154. display: inline-block;
  155. border-right: 7px solid transparent;
  156. border-bottom: 7px solid #ccc;
  157. border-left: 7px solid transparent;
  158. border-bottom-color: rgba(0, 0, 0, 0.2);
  159. content: '';
  160. }
  161. .daterangepicker.openscenter:after {
  162. position: absolute;
  163. top: -6px;
  164. left: 0;
  165. right: 0;
  166. width: 0;
  167. margin-left: auto;
  168. margin-right: auto;
  169. display: inline-block;
  170. border-right: 6px solid transparent;
  171. border-bottom: 6px solid #fff;
  172. border-left: 6px solid transparent;
  173. content: '';
  174. }
  175. .daterangepicker.opensright:before {
  176. position: absolute;
  177. top: -7px;
  178. left: 9px;
  179. display: inline-block;
  180. border-right: 7px solid transparent;
  181. border-bottom: 7px solid #ccc;
  182. border-left: 7px solid transparent;
  183. border-bottom-color: rgba(0, 0, 0, 0.2);
  184. content: '';
  185. }
  186. .daterangepicker.opensright:after {
  187. position: absolute;
  188. top: -6px;
  189. left: 10px;
  190. display: inline-block;
  191. border-right: 6px solid transparent;
  192. border-bottom: 6px solid #fff;
  193. border-left: 6px solid transparent;
  194. content: '';
  195. }
  196. .daterangepicker table {
  197. width: 100%;
  198. margin: 0;
  199. }
  200. .daterangepicker td, .daterangepicker th {
  201. text-align: center;
  202. width: 20px;
  203. height: 20px;
  204. -webkit-border-radius: 4px;
  205. -moz-border-radius: 4px;
  206. border-radius: 4px;
  207. cursor: pointer;
  208. white-space: nowrap;
  209. }
  210. .daterangepicker td.off {
  211. color: #999;
  212. }
  213. .daterangepicker td.disabled, .daterangepicker option.disabled {
  214. color: #999;
  215. }
  216. .daterangepicker td.available:hover, .daterangepicker th.available:hover {
  217. background: #eee;
  218. }
  219. .daterangepicker td.in-range {
  220. background: #ebf4f8;
  221. -webkit-border-radius: 0;
  222. -moz-border-radius: 0;
  223. border-radius: 0;
  224. }
  225. .daterangepicker td.start-date {
  226. -webkit-border-radius: 4px 0 0 4px;
  227. -moz-border-radius: 4px 0 0 4px;
  228. border-radius: 4px 0 0 4px;
  229. }
  230. .daterangepicker td.end-date {
  231. -webkit-border-radius: 0 4px 4px 0;
  232. -moz-border-radius: 0 4px 4px 0;
  233. border-radius: 0 4px 4px 0;
  234. }
  235. .daterangepicker td.start-date.end-date {
  236. -webkit-border-radius: 4px;
  237. -moz-border-radius: 4px;
  238. border-radius: 4px;
  239. }
  240. .daterangepicker td.active, .daterangepicker td.active:hover {
  241. background-color: #357ebd;
  242. border-color: #3071a9;
  243. color: #fff;
  244. }
  245. .daterangepicker td.week, .daterangepicker th.week {
  246. font-size: 80%;
  247. color: #ccc;
  248. }
  249. .daterangepicker select.monthselect, .daterangepicker select.yearselect {
  250. font-size: 12px;
  251. padding: 1px;
  252. height: auto;
  253. margin: 0;
  254. cursor: default;
  255. }
  256. .daterangepicker select.monthselect {
  257. margin-right: 2%;
  258. width: 56%;
  259. }
  260. .daterangepicker select.yearselect {
  261. width: 40%;
  262. }
  263. .daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {
  264. width: 50px;
  265. margin-bottom: 0;
  266. }
  267. .daterangepicker_start_input {
  268. float: left;
  269. }
  270. .daterangepicker_end_input {
  271. float: left;
  272. padding-left: 11px
  273. }
  274. .daterangepicker th.month {
  275. width: auto;
  276. }