datepicker-bulma.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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-header .datepicker-controls .button {
  73. border-color: transparent;
  74. font-weight: bold;
  75. }
  76. .datepicker-header .datepicker-controls .button:hover {
  77. background-color: #f9f9f9;
  78. }
  79. .datepicker-header .datepicker-controls .button:focus:not(:active) {
  80. box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25);
  81. }
  82. .datepicker-header .datepicker-controls .button:active {
  83. background-color: #f2f2f2;
  84. }
  85. .datepicker-header .datepicker-controls .button[disabled] {
  86. box-shadow: none;
  87. }
  88. .datepicker-footer .datepicker-controls .button {
  89. margin: calc(0.375rem - 1px) 0.375rem;
  90. border-radius: 2px;
  91. width: 100%;
  92. font-size: 0.75rem;
  93. }
  94. .datepicker-controls .view-switch {
  95. flex: auto;
  96. }
  97. .datepicker-controls .prev-btn,
  98. .datepicker-controls .next-btn {
  99. padding-right: 0.375rem;
  100. padding-left: 0.375rem;
  101. width: 2.25rem;
  102. }
  103. .datepicker-controls .prev-btn.disabled,
  104. .datepicker-controls .next-btn.disabled {
  105. visibility: hidden;
  106. }
  107. .datepicker-view .dow {
  108. height: 1.5rem;
  109. line-height: 1.5rem;
  110. font-size: 0.875rem;
  111. font-weight: 700;
  112. }
  113. .datepicker-view .week {
  114. width: 2.25rem;
  115. color: #b5b5b5;
  116. font-size: 0.75rem;
  117. }
  118. @media (max-width: 22.5rem) {
  119. .datepicker-view .week {
  120. width: 1.96875rem;
  121. }
  122. }
  123. .datepicker-grid {
  124. width: 15.75rem;
  125. }
  126. @media (max-width: 22.5rem) {
  127. .calendar-weeks + .days .datepicker-grid {
  128. width: 13.78125rem;
  129. }
  130. }
  131. .datepicker-cell:not(.disabled):hover {
  132. background-color: #f9f9f9;
  133. cursor: pointer;
  134. }
  135. .datepicker-cell.focused:not(.selected) {
  136. background-color: #e8e8e8;
  137. }
  138. .datepicker-cell.selected, .datepicker-cell.selected:hover {
  139. background-color: #3273dc;
  140. color: #fff;
  141. font-weight: 600;
  142. }
  143. .datepicker-cell.disabled {
  144. color: #dbdbdb;
  145. }
  146. .datepicker-cell.prev:not(.disabled), .datepicker-cell.next:not(.disabled) {
  147. color: #7a7a7a;
  148. }
  149. .datepicker-cell.prev.selected, .datepicker-cell.next.selected {
  150. color: #e6e6e6;
  151. }
  152. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today) {
  153. border-radius: 0;
  154. background-color: whitesmoke;
  155. }
  156. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today):not(.disabled):hover {
  157. background-color: #eeeeee;
  158. }
  159. .datepicker-cell.highlighted:not(.selected):not(.range):not(.today).focused {
  160. background-color: #e8e8e8;
  161. }
  162. .datepicker-cell.today:not(.selected) {
  163. background-color: #00d1b2;
  164. }
  165. .datepicker-cell.today:not(.selected):not(.disabled) {
  166. color: #fff;
  167. }
  168. .datepicker-cell.today.focused:not(.selected) {
  169. background-color: #00c4a7;
  170. }
  171. .datepicker-cell.range-start:not(.selected), .datepicker-cell.range-end:not(.selected) {
  172. background-color: #b5b5b5;
  173. color: #fff;
  174. }
  175. .datepicker-cell.range-start.focused:not(.selected), .datepicker-cell.range-end.focused:not(.selected) {
  176. background-color: #afafaf;
  177. }
  178. .datepicker-cell.range-start {
  179. border-radius: 4px 0 0 4px;
  180. }
  181. .datepicker-cell.range-end {
  182. border-radius: 0 4px 4px 0;
  183. }
  184. .datepicker-cell.range {
  185. border-radius: 0;
  186. background-color: #dbdbdb;
  187. }
  188. .datepicker-cell.range:not(.disabled):not(.focused):not(.today):hover {
  189. background-color: #d5d5d5;
  190. }
  191. .datepicker-cell.range.disabled {
  192. color: #c2c2c2;
  193. }
  194. .datepicker-cell.range.focused {
  195. background-color: #cfcfcf;
  196. }
  197. .datepicker-view.datepicker-grid .datepicker-cell {
  198. height: 4.5rem;
  199. line-height: 4.5rem;
  200. }
  201. .datepicker-input.in-edit {
  202. border-color: #2366d1;
  203. }
  204. .datepicker-input.in-edit:focus, .datepicker-input.in-edit:active {
  205. box-shadow: 0 0 0.25em 0.25em rgba(35, 102, 209, 0.2);
  206. }