daterangepicker-bs2.css 6.6 KB

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