_datepicker.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /*----- Date Picker ----*/
  2. .ui-datepicker {
  3. background-color: $white;
  4. border: 1px solid #e9ebfa;
  5. font-family: inherit;
  6. font-size: inherit;
  7. padding: 10px;
  8. margin: 1px 0 0;
  9. display: none;
  10. width: auto !important;
  11. z-index: 5 !important;
  12. box-shadow: 0px 16px 18px rgba(104, 113, 123, .2);
  13. border-radius: 7px;
  14. .ui-datepicker-header {
  15. display: flex;
  16. justify-content: space-between;
  17. align-items: center;
  18. position: relative;
  19. font-weight: 500;
  20. font-size: 12px;
  21. text-transform: uppercase;
  22. color: #473b52;
  23. padding: 0 0 5px;
  24. letter-spacing: 1px;
  25. border: 0;
  26. background-color: transparent;
  27. border-start-start-radius: 7px;
  28. border-start-end-radius: 7px;
  29. .ui-datepicker-next,
  30. .ui-datepicker-prev {
  31. text-indent: -99999px;
  32. color: #6c757d;
  33. inset-block-start: 1px;
  34. }
  35. .ui-datepicker-next::before,
  36. .ui-datepicker-prev::before {
  37. font-size: 16px;
  38. font-family: 'FontAwesome';
  39. position: absolute;
  40. inset-block-start: -4px;
  41. text-indent: 0;
  42. }
  43. .ui-datepicker-next {
  44. &:hover::before,
  45. &:focus::before {
  46. color: $dark;
  47. }
  48. }
  49. .ui-datepicker-prev {
  50. &:hover::before,
  51. &:focus::before {
  52. color: $dark;
  53. }
  54. }
  55. .ui-datepicker-next {
  56. order: 3;
  57. &:before {
  58. inset-inline-end: 5px;
  59. content: '\f105';
  60. }
  61. }
  62. .ui-datepicker-prev:before {
  63. inset-inline-start: 5px;
  64. content: '\f104';
  65. }
  66. .ui-datepicker-next-hover,
  67. .ui-datepicker-prev-hover {
  68. color: #495057;
  69. cursor: pointer;
  70. inset-block-start: 1px;
  71. border: 0;
  72. background-color: transparent;
  73. }
  74. }
  75. .ui-datepicker-calendar {
  76. margin: 0;
  77. background-color: transparent;
  78. border-end-end-radius: 3px;
  79. border-end-start-radius: 3px;
  80. th {
  81. text-transform: uppercase;
  82. font-size: 10px;
  83. font-weight: 500;
  84. letter-spacing: 1px;
  85. padding: 6px 10px;
  86. color: #a3a7b7;
  87. }
  88. td {
  89. border: 1px solid #eceef9;
  90. padding: 0;
  91. background-color: #eceef9;
  92. text-align: end;
  93. &:last-child {
  94. border-inline-end: 0;
  95. }
  96. &.ui-datepicker-other-month .ui-state-default {
  97. color: #ccc;
  98. }
  99. span {
  100. transition: all 0.2s ease-in-out;
  101. padding: 5px;
  102. background-color: $white;
  103. color: #473b52;
  104. padding: 6px 10px;
  105. display: block;
  106. font-weight: 400;
  107. font-size: 12px;
  108. border: 0;
  109. border-radius: 1px;
  110. }
  111. a {
  112. transition: all 0.2s ease-in-out;
  113. padding: 5px;
  114. background-color: $white;
  115. color: #473b52;
  116. padding: 6px 10px;
  117. display: block;
  118. font-weight: 400;
  119. font-size: 12px;
  120. border: 0;
  121. border-radius: 1px;
  122. &:hover {
  123. background-color: #f0f2f7;
  124. color: #473b52;
  125. }
  126. }
  127. }
  128. .ui-datepicker-today a {
  129. background-color: #f8f9fa;
  130. color: #473b52;
  131. }
  132. }
  133. }
  134. @media (max-width: 320px) {
  135. .ui-datepicker .ui-datepicker-calendar th {
  136. padding: 4px 0;
  137. letter-spacing: normal;
  138. }
  139. }
  140. .ui-datepicker-multi {
  141. .ui-datepicker-group {
  142. padding-inline-end: 15px;
  143. width: auto;
  144. float: $float-left;
  145. .ui-datepicker-title {
  146. margin: auto;
  147. }
  148. .ui-datepicker-prev::before {
  149. inset-inline-start: 10px;
  150. }
  151. .ui-datepicker-next::before {
  152. inset-inline-end: 10px;
  153. }
  154. table {
  155. margin: 0;
  156. }
  157. }
  158. .ui-datepicker-group-last {
  159. padding-inline-end: 0;
  160. }
  161. }
  162. .ui-datepicker-inline {
  163. max-width: 270px;
  164. border-radius: 12px;
  165. }
  166. @media (max-width: 576px){
  167. #ui-datepicker-div .ui-datepicker-group{
  168. float: none;
  169. padding-inline-end: 0;
  170. &.ui-datepicker-group-last{
  171. .ui-datepicker-header{
  172. margin-block-start: 10px;
  173. }
  174. }
  175. }
  176. }