index.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. @import '../../common/abstracts/variable';
  2. @import '../../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(year) {
  5. @include e(title) {
  6. color: $-dark-color;
  7. }
  8. @include e(months) {
  9. color: $-dark-color;
  10. }
  11. @include e(month) {
  12. @include when(disabled) {
  13. .wd-year__month-text {
  14. color: $-dark-color-gray;
  15. }
  16. }
  17. }
  18. }
  19. }
  20. @include b(year) {
  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(months) {
  30. display: flex;
  31. flex-wrap: wrap;
  32. font-size: $-calendar-day-fs;
  33. color: $-calendar-day-color;
  34. }
  35. @include e(month) {
  36. position: relative;
  37. width: 25%;
  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-year__month-text {
  44. color: $-calendar-disabled-color;
  45. }
  46. }
  47. @include when(current) {
  48. color: $-calendar-active-color;
  49. }
  50. @include when(selected) {
  51. color: #fff;
  52. .wd-year__month-text {
  53. border-radius: $-calendar-active-border;
  54. background: $-calendar-active-color;
  55. }
  56. }
  57. @include when(middle) {
  58. background: $-calendar-range-color;
  59. }
  60. @include when(start) {
  61. color: $-calendar-selected-color;
  62. &::after {
  63. position: absolute;
  64. top: 0;
  65. right: 0;
  66. left: 50%;
  67. bottom: 0;
  68. content: '';
  69. background: $-calendar-range-color;
  70. }
  71. .wd-year__month-text {
  72. background: $-calendar-active-color;
  73. border-radius: $-calendar-active-border 0 0 $-calendar-active-border;
  74. }
  75. &.is-without-end::after {
  76. display: none;
  77. }
  78. }
  79. @include when(end) {
  80. color: $-calendar-selected-color;
  81. &::after {
  82. position: absolute;
  83. top: 0;
  84. left: 0;
  85. right: 50%;
  86. bottom: 0;
  87. content: '';
  88. background: $-calendar-range-color;
  89. }
  90. .wd-year__month-text {
  91. background: $-calendar-active-color;
  92. border-radius: 0 $-calendar-active-border $-calendar-active-border 0;
  93. }
  94. }
  95. @include when(same) {
  96. color: $-calendar-selected-color;
  97. .wd-year__month-text {
  98. background: $-calendar-active-color;
  99. border-radius: $-calendar-active-border;
  100. }
  101. }
  102. @include when(last-row){
  103. margin-bottom: 0;
  104. }
  105. }
  106. @include e(month-text) {
  107. width: $-calendar-month-width;
  108. margin: 0 auto;
  109. text-align: center;
  110. }
  111. @include e(month-top) {
  112. position: absolute;
  113. top: 10px;
  114. left: 0;
  115. right: 0;
  116. line-height: 1.1;
  117. font-size: $-calendar-info-fs;
  118. text-align: center;
  119. }
  120. @include e(month-bottom) {
  121. position: absolute;
  122. bottom: 10px;
  123. left: 0;
  124. right: 0;
  125. line-height: 1.1;
  126. font-size: $-calendar-info-fs;
  127. text-align: center;
  128. }
  129. }