form-pickadate.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. @import '../../../bootstrap-extended/include'; // Bootstrap includes
  2. @import '../../../components/include'; // Components includes
  3. // remove picker outline
  4. .picker__holder {
  5. outline: none;
  6. }
  7. // Updated picker color as per theme color
  8. .picker__day--today:before,
  9. .picker__button--today:before {
  10. border-top: 6px solid $primary;
  11. }
  12. .picker__button--clear:before {
  13. border-top: 2px solid $danger;
  14. }
  15. .picker__day--highlighted,
  16. .picker__day--highlighted:hover,
  17. .picker--focused .picker__day--highlighted,
  18. .picker__list-item--selected,
  19. .picker__list-item--selected:hover,
  20. .picker--focused .picker__list-item--selected {
  21. background-color: $primary;
  22. }
  23. // Updated picker svg icons
  24. .picker__nav--prev:before,
  25. .picker__nav--next:before,
  26. .picker__button--close:before {
  27. content: '';
  28. background-repeat: no-repeat;
  29. background-position: center;
  30. background-size: 18px;
  31. color: $body-color;
  32. width: 8px;
  33. height: 18px;
  34. }
  35. .picker__nav--prev:before {
  36. background-image: url(str-replace(str-replace($chevron-left, 'currentColor', $body-color), '#', '%23'));
  37. }
  38. .picker__nav--next:before {
  39. background-image: url(str-replace(str-replace($chevron-right, 'currentColor', $body-color), '#', '%23'));
  40. }
  41. .picker__button--close:before {
  42. background-image: url(str-replace(str-replace($remove, 'currentColor', $danger), '#', '%23'));
  43. height: 10px !important;
  44. }
  45. // Dark layout style
  46. .dark-layout {
  47. // date picker
  48. .picker__holder {
  49. background-color: $theme-dark-body-bg;
  50. border-color: $theme-dark-border-color;
  51. .picker__header {
  52. .picker__month,
  53. .picker__year {
  54. color: $theme-dark-body-color;
  55. }
  56. .picker__select--year,
  57. .picker__select--month {
  58. color: $theme-dark-body-color;
  59. background-color: $theme-dark-body-bg;
  60. border-color: $theme-dark-border-color;
  61. }
  62. .picker__nav--next,
  63. .picker__nav--prev {
  64. &:hover {
  65. background-color: $theme-dark-card-bg;
  66. }
  67. }
  68. }
  69. .picker__frame {
  70. border-color: $theme-dark-border-color;
  71. }
  72. .picker__table {
  73. thead {
  74. tr {
  75. .picker__weekday {
  76. color: $theme-dark-body-color;
  77. }
  78. }
  79. }
  80. tbody {
  81. tr {
  82. td {
  83. .picker__day {
  84. &:not(.picker__day--highlighted){
  85. color: $theme-dark-body-color;
  86. }
  87. &.picker__day--selected {
  88. color: $white;
  89. // color: $theme-dark-body-color;
  90. }
  91. &.picker__day--outfocus {
  92. opacity: 0.65;
  93. }
  94. &:not(.picker__day--today):not(.picker__day--highlighted):hover {
  95. background-color: $theme-dark-border-color;
  96. color: $white;
  97. }
  98. &.picker__day--disabled {
  99. color: $theme-dark-body-color;
  100. opacity: 0.5;
  101. background: $theme-dark-card-bg;
  102. }
  103. }
  104. .picker__day--today:not(.picker__day--highlighted) {
  105. background-color: $theme-dark-card-bg;
  106. }
  107. }
  108. }
  109. }
  110. }
  111. .picker__footer {
  112. .picker__button--today,
  113. .picker__button--clear,
  114. .picker__button--close {
  115. background-color: $theme-dark-body-bg;
  116. color: $theme-dark-body-color;
  117. &:hover {
  118. background-color: $theme-dark-border-color;
  119. }
  120. }
  121. }
  122. }
  123. // time picker
  124. .picker--time {
  125. .picker__holder {
  126. .picker__list {
  127. background-color: $theme-dark-body-bg;
  128. .picker__list-item {
  129. &.picker__list-item--selected,
  130. &:hover {
  131. background-color: $theme-dark-card-bg;
  132. }
  133. &.picker__list-item--disabled {
  134. background-color: $theme-dark-card-bg;
  135. color: $secondary;
  136. opacity: 0.5;
  137. }
  138. }
  139. .picker__button--clear {
  140. background-color: $theme-dark-body-bg;
  141. color: $theme-dark-body-color;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. //RTL Style
  148. [dir='rtl'] {
  149. .picker__nav--prev:before {
  150. background-image: url(str-replace(str-replace($chevron-right, 'currentColor', $body-color), '#', '%23'));
  151. }
  152. .picker__nav--next:before {
  153. background-image: url(str-replace(str-replace($chevron-left, 'currentColor', $body-color), '#', '%23'));
  154. }
  155. }