| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- @import '../../common/abstracts/variable';
- @import '../../common/abstracts/mixin';
- .wot-theme-dark {
- @include b(month) {
- @include e(title) {
- color: $-dark-color;
- }
- @include e(days) {
- color: $-dark-color;
- }
- @include e(day) {
- @include when(disabled) {
- .wd-month__day-text {
- color: $-dark-color-gray;
- }
- }
- }
- }
- }
- @include b(month) {
- @include e(title) {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 45px;
- font-size: $-calendar-panel-title-fs;
- color: $-calendar-panel-title-color;
- }
- @include e(days) {
- display: flex;
- flex-wrap: wrap;
- font-size: $-calendar-day-fs;
- color: $-calendar-day-color;
- }
- @include e(day) {
- position: relative;
- width: 14.285%;
- height: $-calendar-day-height;
- line-height: $-calendar-day-height;
- text-align: center;
- margin-bottom: $-calendar-item-margin-bottom;
- @include when(disabled) {
- .wd-month__day-text {
- color: $-calendar-disabled-color;
- }
- }
- @include when(current) {
- color: $-calendar-active-color;
- }
- @include when(selected, multiple-selected) {
- .wd-month__day-container {
- border-radius: $-calendar-active-border;
- background: $-calendar-active-color;
- color: $-calendar-selected-color;
- }
- }
- @include when(middle) {
- .wd-month__day-container {
- background: $-calendar-range-color;
- }
- }
- @include when(multiple-middle) {
- .wd-month__day-container {
- background: $-calendar-active-color;
- color: $-calendar-selected-color;
- }
- }
- @include when(start) {
- &::after {
- position: absolute;
- content: '';
- height: $-calendar-day-height;
- top: 0;
- right: 0;
- left: 50%;
- background: $-calendar-range-color;
- z-index: 1;
- }
- &.is-without-end::after {
- display: none;
- }
- .wd-month__day-container {
- background: $-calendar-active-color;
- color: $-calendar-selected-color;
- border-radius: $-calendar-active-border 0 0 $-calendar-active-border;
- }
- }
- @include when(end) {
- &::after {
- position: absolute;
- content: '';
- height: $-calendar-day-height;
- top: 0;
- left: 0;
- right: 50%;
- background: $-calendar-range-color;
- z-index: 1;
- }
- .wd-month__day-container {
- background: $-calendar-active-color;
- color: $-calendar-selected-color;
- border-radius: 0 $-calendar-active-border $-calendar-active-border 0;
- }
- }
- @include when(same) {
- .wd-month__day-container {
- background: $-calendar-active-color;
- color: $-calendar-selected-color;
- border-radius: $-calendar-active-border;
- }
- }
- @include when(last-row){
- margin-bottom: 0;
- }
- }
- @include e(day-container) {
- position: relative;
- z-index: 2;
- }
- @include e(day-text) {
- font-weight: $-calendar-day-fw;
- }
- @include e(day-top) {
- position: absolute;
- top: 10px;
- left: 0;
- right: 0;
- line-height: 1.1;
- font-size: $-calendar-info-fs;
- text-align: center;
- }
- @include e(day-bottom) {
- position: absolute;
- bottom: 10px;
- left: 0;
- right: 0;
- line-height: 1.1;
- font-size: $-calendar-info-fs;
- text-align: center;
- }
- }
|