index.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. @import '../../common/abstracts/variable';
  2. @import '../../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(month) {
  5. @include e(title) {
  6. color: $-dark-color;
  7. }
  8. @include e(days) {
  9. color: $-dark-color;
  10. }
  11. @include e(day) {
  12. @include when(disabled) {
  13. .wd-month__day-text {
  14. color: $-dark-color-gray;
  15. }
  16. }
  17. }
  18. }
  19. }
  20. @include b(month) {
  21. @include e(title) {
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. height: 45px;
  26. font-size: $-calendar-panel-title-fs;
  27. color: $-calendar-panel-title-color;
  28. }
  29. @include e(days) {
  30. display: flex;
  31. flex-wrap: wrap;
  32. font-size: $-calendar-day-fs;
  33. color: $-calendar-day-color;
  34. }
  35. @include e(day) {
  36. position: relative;
  37. width: 14.285%;
  38. height: $-calendar-day-height;
  39. line-height: $-calendar-day-height;
  40. text-align: center;
  41. margin-bottom: $-calendar-item-margin-bottom;
  42. @include when(disabled) {
  43. .wd-month__day-text {
  44. color: $-calendar-disabled-color;
  45. }
  46. }
  47. @include when(current) {
  48. color: $-calendar-active-color;
  49. }
  50. @include when(selected, multiple-selected) {
  51. .wd-month__day-container {
  52. border-radius: $-calendar-active-border;
  53. background: $-calendar-active-color;
  54. color: $-calendar-selected-color;
  55. }
  56. }
  57. @include when(middle) {
  58. .wd-month__day-container {
  59. background: $-calendar-range-color;
  60. }
  61. }
  62. @include when(multiple-middle) {
  63. .wd-month__day-container {
  64. background: $-calendar-active-color;
  65. color: $-calendar-selected-color;
  66. }
  67. }
  68. @include when(start) {
  69. &::after {
  70. position: absolute;
  71. content: '';
  72. height: $-calendar-day-height;
  73. top: 0;
  74. right: 0;
  75. left: 50%;
  76. background: $-calendar-range-color;
  77. z-index: 1;
  78. }
  79. &.is-without-end::after {
  80. display: none;
  81. }
  82. .wd-month__day-container {
  83. background: $-calendar-active-color;
  84. color: $-calendar-selected-color;
  85. border-radius: $-calendar-active-border 0 0 $-calendar-active-border;
  86. }
  87. }
  88. @include when(end) {
  89. &::after {
  90. position: absolute;
  91. content: '';
  92. height: $-calendar-day-height;
  93. top: 0;
  94. left: 0;
  95. right: 50%;
  96. background: $-calendar-range-color;
  97. z-index: 1;
  98. }
  99. .wd-month__day-container {
  100. background: $-calendar-active-color;
  101. color: $-calendar-selected-color;
  102. border-radius: 0 $-calendar-active-border $-calendar-active-border 0;
  103. }
  104. }
  105. @include when(same) {
  106. .wd-month__day-container {
  107. background: $-calendar-active-color;
  108. color: $-calendar-selected-color;
  109. border-radius: $-calendar-active-border;
  110. }
  111. }
  112. @include when(last-row){
  113. margin-bottom: 0;
  114. }
  115. }
  116. @include e(day-container) {
  117. position: relative;
  118. z-index: 2;
  119. }
  120. @include e(day-text) {
  121. font-weight: $-calendar-day-fw;
  122. }
  123. @include e(day-top) {
  124. position: absolute;
  125. top: 10px;
  126. left: 0;
  127. right: 0;
  128. line-height: 1.1;
  129. font-size: $-calendar-info-fs;
  130. text-align: center;
  131. }
  132. @include e(day-bottom) {
  133. position: absolute;
  134. bottom: 10px;
  135. left: 0;
  136. right: 0;
  137. line-height: 1.1;
  138. font-size: $-calendar-info-fs;
  139. text-align: center;
  140. }
  141. }