datepicker-foundation.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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: 10;
  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: 0;
  21. background-color: #fefefe;
  22. }
  23. .datepicker-dropdown .datepicker-picker {
  24. box-shadow: 0 0 0 1px #cacaca;
  25. }
  26. .datepicker-picker span {
  27. display: block;
  28. flex: 1;
  29. border: 0;
  30. border-radius: 0;
  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: #e6e6e6;
  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: #e6e6e6;
  65. padding: 0.375rem 0.75rem;
  66. text-align: center;
  67. font-weight: bold;
  68. }
  69. .datepicker-header .datepicker-controls {
  70. padding: 2px 2px 0;
  71. }
  72. .datepicker-controls .button {
  73. margin: 0;
  74. background-color: #fefefe;
  75. color: #0a0a0a;
  76. }
  77. .datepicker-controls .button:hover, .datepicker-controls .button:focus {
  78. background-color: #d8d8d8;
  79. }
  80. .datepicker-controls .button:hover[disabled], .datepicker-controls .button:focus[disabled] {
  81. opacity: 0.25;
  82. background-color: #fefefe;
  83. color: #0a0a0a;
  84. }
  85. .datepicker-header .datepicker-controls .button {
  86. border-color: transparent;
  87. font-weight: bold;
  88. }
  89. .datepicker-footer .datepicker-controls .button {
  90. margin: calc(0.375rem - 1px) 0.375rem;
  91. border-radius: 0;
  92. width: 100%;
  93. font-size: 0.75rem;
  94. }
  95. .datepicker-controls .view-switch {
  96. flex: auto;
  97. }
  98. .datepicker-controls .prev-btn,
  99. .datepicker-controls .next-btn {
  100. padding-right: 0.375rem;
  101. padding-left: 0.375rem;
  102. width: 2.25rem;
  103. }
  104. .datepicker-controls .prev-btn.disabled,
  105. .datepicker-controls .next-btn.disabled {
  106. visibility: hidden;
  107. }
  108. .datepicker-view .dow {
  109. height: 1.5rem;
  110. line-height: 1.5rem;
  111. font-size: 0.875rem;
  112. font-weight: bold;
  113. }
  114. .datepicker-view .week {
  115. width: 2.25rem;
  116. color: #8a8a8a;
  117. font-size: 0.75rem;
  118. }
  119. @media (max-width: 22.5rem) {
  120. .datepicker-view .week {
  121. width: 1.96875rem;
  122. }
  123. }
  124. .datepicker-grid {
  125. width: 15.75rem;
  126. }
  127. @media (max-width: 22.5rem) {
  128. .calendar-weeks + .days .datepicker-grid {
  129. width: 13.78125rem;
  130. }
  131. }
  132. .datepicker-cell:not(.disabled):hover {
  133. background-color: #f8f8f8;
  134. cursor: pointer;
  135. }
  136. .datepicker-cell.focused:not(.selected) {
  137. background-color: #f1f1f1;
  138. }
  139. .datepicker-cell.selected, .datepicker-cell.selected:hover {
  140. background-color: #1779ba;
  141. color: #fefefe;
  142. font-weight: semibold;
  143. }
  144. .datepicker-cell.disabled {
  145. color: #e6e6e6;
  146. }
  147. .datepicker-cell.prev:not(.disabled), .datepicker-cell.next:not(.disabled) {
  148. color: #cacaca;
  149. }
  150. .datepicker-cell.prev.selected, .datepicker-cell.next.selected {
  151. color: #e5e5e5;
  152. }
  153. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today) {
  154. border-radius: 0;
  155. background-color: #f7f7f7;
  156. }
  157. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today):not(.disabled):hover {
  158. background-color: #f1f1f1;
  159. }
  160. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today).focused {
  161. background-color: #f1f1f1;
  162. }
  163. .datepicker-cell.today:not(.selected) {
  164. background-color: #d7ecfa;
  165. }
  166. .datepicker-cell.today:not(.selected):not(.disabled) {
  167. color: #8a8a8a;
  168. }
  169. .datepicker-cell.today.focused:not(.selected) {
  170. background-color: #cbe7f9;
  171. }
  172. .datepicker-cell.range-start:not(.selected), .datepicker-cell.range-end:not(.selected) {
  173. background-color: #767676;
  174. color: #fefefe;
  175. }
  176. .datepicker-cell.range-start.focused:not(.selected), .datepicker-cell.range-end.focused:not(.selected) {
  177. background-color: #707070;
  178. }
  179. .datepicker-cell.range-start {
  180. border-radius: 0 0 0 0;
  181. }
  182. .datepicker-cell.range-end {
  183. border-radius: 0 0 0 0;
  184. }
  185. .datepicker-cell.range {
  186. border-radius: 0;
  187. background-color: #e6e6e6;
  188. }
  189. .datepicker-cell.range:not(.disabled):not(.focused):not(.today):hover {
  190. background-color: #e0e0e0;
  191. }
  192. .datepicker-cell.range.disabled {
  193. color: #cdcdcd;
  194. }
  195. .datepicker-cell.range.focused {
  196. background-color: #d9d9d9;
  197. }
  198. .datepicker-cell.range.today {
  199. background-color: #b3dbf6;
  200. }
  201. .datepicker-view.datepicker-grid .datepicker-cell {
  202. height: 4.5rem;
  203. line-height: 4.5rem;
  204. }
  205. .datepicker-input.in-edit {
  206. border-color: #a4a4a4;
  207. }
  208. .datepicker-input.in-edit:focus, .datepicker-input.in-edit:active {
  209. box-shadow: 0 0 0.25em 0.25em rgba(164, 164, 164, 0.2);
  210. }