index.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. @import '../common/abstracts/variable';
  2. @import '../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(calendar) {
  5. @include e(title) {
  6. color: $-dark-color;
  7. }
  8. :deep(.wd-calendar__arrow),
  9. :deep(.wd-calendar__close),
  10. :deep(.wd-calendar__clear) {
  11. color: $-dark-color;
  12. }
  13. @include e(range-label-item) {
  14. color: $-dark-color;
  15. @include when(placeholder) {
  16. color: $-dark-color-gray;
  17. }
  18. }
  19. @include e(range-sperator) {
  20. color: $-dark-color-gray;
  21. }
  22. :deep(.wd-calendar__cell--placeholder) {
  23. .wd-cell__value {
  24. color: $-dark-color-gray;
  25. }
  26. }
  27. }
  28. }
  29. @include b(calendar) {
  30. @include e(header) {
  31. position: relative;
  32. overflow: hidden;
  33. }
  34. @include e(title) {
  35. color: $-action-sheet-color;
  36. height: $-action-sheet-title-height;
  37. line-height: $-action-sheet-title-height;
  38. text-align: center;
  39. font-size: $-action-sheet-title-fs;
  40. font-weight: $-action-sheet-weight;
  41. }
  42. @include edeep(close) {
  43. position: absolute;
  44. top: $-action-sheet-close-top;
  45. right: $-action-sheet-close-right;
  46. color: $-action-sheet-close-color;
  47. font-size: $-action-sheet-close-fs;
  48. transform: rotate(-45deg);
  49. line-height: 1.1;
  50. }
  51. @include e(tabs) {
  52. width: 222px;
  53. margin: 10px auto 12px;
  54. }
  55. @include e(shortcuts) {
  56. padding: 20px 0;
  57. text-align: center;
  58. }
  59. @include edeep(tag) {
  60. margin-right: 8px;
  61. }
  62. @include e(view) {
  63. @include when(show-confirm) {
  64. height: 394px;
  65. @include when(range) {
  66. height: 384px;
  67. }
  68. }
  69. }
  70. @include e(range-label) {
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. font-size: 14px;
  75. @include when(monthrange) {
  76. padding-bottom: 10px;
  77. box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.02);
  78. }
  79. }
  80. @include e(range-label-item) {
  81. flex: 1;
  82. color: rgba(0, 0, 0, 0.85);
  83. @include when(placeholder) {
  84. color: rgba(0, 0, 0, 0.25);
  85. }
  86. }
  87. @include e(range-sperator) {
  88. margin: 0 24px;
  89. color: rgba(0, 0, 0, 0.25);
  90. }
  91. @include e(confirm) {
  92. padding: 12px 25px 14px;
  93. }
  94. @include edeep(cell) {
  95. @include when(disabled) {
  96. .wd-cell__value {
  97. color: $-input-disabled-color;
  98. cursor: not-allowed;
  99. }
  100. }
  101. @include when(error) {
  102. .wd-cell__value {
  103. color: $-input-error-color;
  104. }
  105. :deep(.wd-calendar__arrow) {
  106. color: $-input-error-color;
  107. }
  108. }
  109. @include when(large) {
  110. .wd-calendar__arrow {
  111. font-size: $-cell-icon-size-large;
  112. }
  113. }
  114. @include m(placeholder) {
  115. .wd-cell__value {
  116. color: $-input-placeholder-color;
  117. }
  118. }
  119. }
  120. @include edeep(arrow) {
  121. display: block;
  122. font-size: $-cell-icon-size;
  123. color: $-cell-arrow-color;
  124. line-height: $-cell-line-height;
  125. }
  126. @include edeep(clear) {
  127. display: block;
  128. font-size: $-cell-icon-size;
  129. color: $-cell-clear-color;
  130. line-height: $-cell-line-height;
  131. }
  132. }