bootstrap-datepicker.css 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. top: 0;
  12. left: 0;
  13. padding: 4px;
  14. margin-top: 1px;
  15. -webkit-border-radius: 4px;
  16. -moz-border-radius: 4px;
  17. border-radius: 4px;
  18. /*.dow {
  19. border-top: 1px solid #ddd !important;
  20. }*/
  21. }
  22. .datepicker:before {
  23. content: '';
  24. display: inline-block;
  25. border-left: 7px solid transparent;
  26. border-right: 7px solid transparent;
  27. border-bottom: 7px solid #ccc;
  28. border-bottom-color: rgba(0, 0, 0, 0.2);
  29. position: absolute;
  30. top: -7px;
  31. left: 6px;
  32. }
  33. .datepicker:after {
  34. content: '';
  35. display: inline-block;
  36. border-left: 6px solid transparent;
  37. border-right: 6px solid transparent;
  38. border-bottom: 6px solid #ffffff;
  39. position: absolute;
  40. top: -6px;
  41. left: 7px;
  42. }
  43. .datepicker > div {
  44. display: none;
  45. }
  46. .datepicker.days div.datepicker-days {
  47. display: block;
  48. }
  49. .datepicker.months div.datepicker-months {
  50. display: block;
  51. }
  52. .datepicker.years div.datepicker-years {
  53. display: block;
  54. }
  55. .datepicker table {
  56. margin: 0;
  57. }
  58. .datepicker td,
  59. .datepicker th {
  60. text-align: center;
  61. width: 20px;
  62. height: 20px;
  63. -webkit-border-radius: 4px;
  64. -moz-border-radius: 4px;
  65. border-radius: 4px;
  66. }
  67. .datepicker td.day:hover {
  68. background: #eeeeee;
  69. cursor: pointer;
  70. }
  71. .datepicker td.old,
  72. .datepicker td.new {
  73. color: #999999;
  74. }
  75. .datepicker td.disabled,
  76. .datepicker td.disabled:hover {
  77. background: none;
  78. color: #999999;
  79. cursor: default;
  80. }
  81. .datepicker td.active,
  82. .datepicker td.active:hover,
  83. .datepicker td.active.disabled,
  84. .datepicker td.active.disabled:hover {
  85. background-color: #006dcc;
  86. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  87. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  88. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  89. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  90. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  91. background-image: linear-gradient(top, #0088cc, #0044cc);
  92. background-repeat: repeat-x;
  93. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  94. border-color: #0044cc #0044cc #002a80;
  95. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  96. filter: progid:dximagetransform.microsoft.gradient(enabled=false);
  97. color: #fff;
  98. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  99. }
  100. .datepicker td.active:hover,
  101. .datepicker td.active:hover:hover,
  102. .datepicker td.active.disabled:hover,
  103. .datepicker td.active.disabled:hover:hover,
  104. .datepicker td.active:active,
  105. .datepicker td.active:hover:active,
  106. .datepicker td.active.disabled:active,
  107. .datepicker td.active.disabled:hover:active,
  108. .datepicker td.active.active,
  109. .datepicker td.active:hover.active,
  110. .datepicker td.active.disabled.active,
  111. .datepicker td.active.disabled:hover.active,
  112. .datepicker td.active.disabled,
  113. .datepicker td.active:hover.disabled,
  114. .datepicker td.active.disabled.disabled,
  115. .datepicker td.active.disabled:hover.disabled,
  116. .datepicker td.active[disabled],
  117. .datepicker td.active:hover[disabled],
  118. .datepicker td.active.disabled[disabled],
  119. .datepicker td.active.disabled:hover[disabled] {
  120. background-color: #0044cc;
  121. }
  122. .datepicker td.active:active,
  123. .datepicker td.active:hover:active,
  124. .datepicker td.active.disabled:active,
  125. .datepicker td.active.disabled:hover:active,
  126. .datepicker td.active.active,
  127. .datepicker td.active:hover.active,
  128. .datepicker td.active.disabled.active,
  129. .datepicker td.active.disabled:hover.active {
  130. background-color: #003399 \9;
  131. }
  132. .datepicker td span {
  133. display: block;
  134. width: 23%;
  135. height: 54px;
  136. line-height: 54px;
  137. float: left;
  138. margin: 1%;
  139. cursor: pointer;
  140. -webkit-border-radius: 4px;
  141. -moz-border-radius: 4px;
  142. border-radius: 4px;
  143. }
  144. .datepicker td span:hover {
  145. background: #eeeeee;
  146. }
  147. .datepicker td span.disabled,
  148. .datepicker td span.disabled:hover {
  149. background: none;
  150. color: #999999;
  151. cursor: default;
  152. }
  153. .datepicker td span.active,
  154. .datepicker td span.active:hover,
  155. .datepicker td span.active.disabled,
  156. .datepicker td span.active.disabled:hover {
  157. background-color: #006dcc;
  158. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  159. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  160. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  161. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  162. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  163. background-image: linear-gradient(top, #0088cc, #0044cc);
  164. background-repeat: repeat-x;
  165. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  166. border-color: #0044cc #0044cc #002a80;
  167. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  168. filter: progid:dximagetransform.microsoft.gradient(enabled=false);
  169. color: #fff;
  170. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  171. }
  172. .datepicker td span.active:hover,
  173. .datepicker td span.active:hover:hover,
  174. .datepicker td span.active.disabled:hover,
  175. .datepicker td span.active.disabled:hover:hover,
  176. .datepicker td span.active:active,
  177. .datepicker td span.active:hover:active,
  178. .datepicker td span.active.disabled:active,
  179. .datepicker td span.active.disabled:hover:active,
  180. .datepicker td span.active.active,
  181. .datepicker td span.active:hover.active,
  182. .datepicker td span.active.disabled.active,
  183. .datepicker td span.active.disabled:hover.active,
  184. .datepicker td span.active.disabled,
  185. .datepicker td span.active:hover.disabled,
  186. .datepicker td span.active.disabled.disabled,
  187. .datepicker td span.active.disabled:hover.disabled,
  188. .datepicker td span.active[disabled],
  189. .datepicker td span.active:hover[disabled],
  190. .datepicker td span.active.disabled[disabled],
  191. .datepicker td span.active.disabled:hover[disabled] {
  192. background-color: #0044cc;
  193. }
  194. .datepicker td span.active:active,
  195. .datepicker td span.active:hover:active,
  196. .datepicker td span.active.disabled:active,
  197. .datepicker td span.active.disabled:hover:active,
  198. .datepicker td span.active.active,
  199. .datepicker td span.active:hover.active,
  200. .datepicker td span.active.disabled.active,
  201. .datepicker td span.active.disabled:hover.active {
  202. background-color: #003399 \9;
  203. }
  204. .datepicker td span.old {
  205. color: #999999;
  206. }
  207. .datepicker th.switch {
  208. width: 145px;
  209. }
  210. .datepicker thead tr:first-child th {
  211. cursor: pointer;
  212. }
  213. .datepicker thead tr:first-child th:hover {
  214. background: #eeeeee;
  215. }
  216. .input-append.date .add-on i,
  217. .input-prepend.date .add-on i {
  218. display: block;
  219. cursor: pointer;
  220. width: 16px;
  221. height: 16px;
  222. }