datepicker.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. .datepicker {
  2. display: none;
  3. }
  4. .datepicker.active {
  5. display: block;
  6. }
  7. .datepicker-dropdown {
  8. position: absolute;
  9. top: 0;
  10. left: 0;
  11. z-index: 20;
  12. padding-top: 4px;
  13. }
  14. .datepicker-dropdown.datepicker-orient-top {
  15. padding-top: 0;
  16. padding-bottom: 4px;
  17. }
  18. .datepicker-picker {
  19. display: inline-block;
  20. border-radius: 4px;
  21. background-color: white;
  22. }
  23. .datepicker-dropdown .datepicker-picker {
  24. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  25. }
  26. .datepicker-picker span {
  27. display: block;
  28. flex: 1;
  29. border: 0;
  30. border-radius: 4px;
  31. cursor: default;
  32. text-align: center;
  33. -webkit-touch-callout: none;
  34. -webkit-user-select: none;
  35. -moz-user-select: none;
  36. -ms-user-select: none;
  37. user-select: none;
  38. }
  39. .datepicker-main {
  40. padding: 2px;
  41. }
  42. .datepicker-footer {
  43. box-shadow: inset 0 1px 1px rgba(10, 10, 10, 0.1);
  44. background-color: whitesmoke;
  45. }
  46. .datepicker-controls, .datepicker-view, .datepicker-view .days-of-week, .datepicker-grid {
  47. display: flex;
  48. }
  49. .datepicker-grid {
  50. flex-wrap: wrap;
  51. }
  52. .datepicker-view .dow, .datepicker-view .days .datepicker-cell {
  53. flex-basis: 14.28571%;
  54. }
  55. .datepicker-view.datepicker-grid .datepicker-cell {
  56. flex-basis: 25%;
  57. }
  58. .datepicker-view .week, .datepicker-cell {
  59. height: 2.25rem;
  60. line-height: 2.25rem;
  61. }
  62. .datepicker-title {
  63. box-shadow: inset 0 -1px 1px rgba(10, 10, 10, 0.1);
  64. background-color: whitesmoke;
  65. padding: 0.375rem 0.75rem;
  66. text-align: center;
  67. font-weight: 700;
  68. }
  69. .datepicker-header .datepicker-controls {
  70. padding: 2px 2px 0;
  71. }
  72. .datepicker-controls .button {
  73. display: inline-flex;
  74. position: relative;
  75. align-items: center;
  76. justify-content: center;
  77. margin: 0;
  78. border: 1px solid #dbdbdb;
  79. border-radius: 4px;
  80. box-shadow: none;
  81. background-color: white;
  82. cursor: pointer;
  83. padding: calc(0.375em - 1px) 0.75em;
  84. height: 2.25em;
  85. vertical-align: top;
  86. text-align: center;
  87. line-height: 1.5;
  88. white-space: nowrap;
  89. color: #363636;
  90. font-size: 1rem;
  91. }
  92. .datepicker-controls .button:focus, .datepicker-controls .button:active {
  93. outline: none;
  94. }
  95. .datepicker-controls .button:hover {
  96. border-color: #b5b5b5;
  97. color: #363636;
  98. }
  99. .datepicker-controls .button:focus {
  100. border-color: #3273dc;
  101. color: #363636;
  102. }
  103. .datepicker-controls .button:focus:not(:active) {
  104. box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
  105. }
  106. .datepicker-controls .button:active {
  107. border-color: #4a4a4a;
  108. color: #363636;
  109. }
  110. .datepicker-controls .button[disabled] {
  111. cursor: not-allowed;
  112. }
  113. .datepicker-header .datepicker-controls .button {
  114. border-color: transparent;
  115. font-weight: bold;
  116. }
  117. .datepicker-header .datepicker-controls .button:hover {
  118. background-color: #f9f9f9;
  119. }
  120. .datepicker-header .datepicker-controls .button:focus:not(:active) {
  121. box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25);
  122. }
  123. .datepicker-header .datepicker-controls .button:active {
  124. background-color: #f2f2f2;
  125. }
  126. .datepicker-header .datepicker-controls .button[disabled] {
  127. box-shadow: none;
  128. }
  129. .datepicker-footer .datepicker-controls .button {
  130. margin: calc(0.375rem - 1px) 0.375rem;
  131. border-radius: 2px;
  132. width: 100%;
  133. font-size: 0.75rem;
  134. }
  135. .datepicker-controls .view-switch {
  136. flex: auto;
  137. }
  138. .datepicker-controls .prev-btn,
  139. .datepicker-controls .next-btn {
  140. padding-right: 0.375rem;
  141. padding-left: 0.375rem;
  142. width: 2.25rem;
  143. }
  144. .datepicker-controls .prev-btn.disabled,
  145. .datepicker-controls .next-btn.disabled {
  146. visibility: hidden;
  147. }
  148. .datepicker-view .dow {
  149. height: 1.5rem;
  150. line-height: 1.5rem;
  151. font-size: 0.875rem;
  152. font-weight: 700;
  153. }
  154. .datepicker-view .week {
  155. width: 2.25rem;
  156. color: #b5b5b5;
  157. font-size: 0.75rem;
  158. }
  159. @media (max-width: 22.5rem) {
  160. .datepicker-view .week {
  161. width: 1.96875rem;
  162. }
  163. }
  164. .datepicker-grid {
  165. width: 15.75rem;
  166. }
  167. @media (max-width: 22.5rem) {
  168. .calendar-weeks + .days .datepicker-grid {
  169. width: 13.78125rem;
  170. }
  171. }
  172. .datepicker-cell:not(.disabled):hover {
  173. background-color: #f9f9f9;
  174. cursor: pointer;
  175. }
  176. .datepicker-cell.focused:not(.selected) {
  177. background-color: #e8e8e8;
  178. }
  179. .datepicker-cell.selected, .datepicker-cell.selected:hover {
  180. background-color: #3273dc;
  181. color: #fff;
  182. font-weight: 600;
  183. }
  184. .datepicker-cell.disabled {
  185. color: #dbdbdb;
  186. }
  187. .datepicker-cell.prev:not(.disabled), .datepicker-cell.next:not(.disabled) {
  188. color: #7a7a7a;
  189. }
  190. .datepicker-cell.prev.selected, .datepicker-cell.next.selected {
  191. color: #e6e6e6;
  192. }
  193. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today) {
  194. border-radius: 0;
  195. background-color: whitesmoke;
  196. }
  197. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today):not(.disabled):hover {
  198. background-color: #eeeeee;
  199. }
  200. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today).focused {
  201. background-color: #e8e8e8;
  202. }
  203. .datepicker-cell.today:not(.selected) {
  204. background-color: #00d1b2;
  205. }
  206. .datepicker-cell.today:not(.selected):not(.disabled) {
  207. color: #fff;
  208. }
  209. .datepicker-cell.today.focused:not(.selected) {
  210. background-color: #00c4a7;
  211. }
  212. .datepicker-cell.range-start:not(.selected), .datepicker-cell.range-end:not(.selected) {
  213. background-color: #b5b5b5;
  214. color: #fff;
  215. }
  216. .datepicker-cell.range-start.focused:not(.selected), .datepicker-cell.range-end.focused:not(.selected) {
  217. background-color: #afafaf;
  218. }
  219. .datepicker-cell.range-start {
  220. border-radius: 4px 0 0 4px;
  221. }
  222. .datepicker-cell.range-end {
  223. border-radius: 0 4px 4px 0;
  224. }
  225. .datepicker-cell.range {
  226. border-radius: 0;
  227. background-color: #dbdbdb;
  228. }
  229. .datepicker-cell.range:not(.disabled):not(.focused):not(.today):hover {
  230. background-color: #d5d5d5;
  231. }
  232. .datepicker-cell.range.disabled {
  233. color: #c2c2c2;
  234. }
  235. .datepicker-cell.range.focused {
  236. background-color: #cfcfcf;
  237. }
  238. .datepicker-view.datepicker-grid .datepicker-cell {
  239. height: 4.5rem;
  240. line-height: 4.5rem;
  241. }
  242. .datepicker-input.in-edit {
  243. border-color: #2366d1;
  244. }
  245. .datepicker-input.in-edit:focus, .datepicker-input.in-edit:active {
  246. box-shadow: 0 0 0.25em 0.25em rgba(35, 102, 209, 0.2);
  247. }