| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- @import '../../common/abstracts/variable';
- @import '../../common/abstracts/mixin';
- .wot-theme-dark {
- @include b(year) {
- @include e(title) {
- color: $-dark-color;
- }
- @include e(months) {
- color: $-dark-color;
- }
- @include e(month) {
- @include when(disabled) {
- .wd-year__month-text {
- color: $-dark-color-gray;
- }
- }
- }
- }
- }
- @include b(year) {
- @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(months) {
- display: flex;
- flex-wrap: wrap;
- font-size: $-calendar-day-fs;
- color: $-calendar-day-color;
- }
- @include e(month) {
- position: relative;
- width: 25%;
- height: $-calendar-day-height;
- line-height: $-calendar-day-height;
- text-align: center;
- margin-bottom: $-calendar-item-margin-bottom;
- @include when(disabled) {
- .wd-year__month-text {
- color: $-calendar-disabled-color;
- }
- }
- @include when(current) {
- color: $-calendar-active-color;
- }
- @include when(selected) {
- color: #fff;
- .wd-year__month-text {
- border-radius: $-calendar-active-border;
- background: $-calendar-active-color;
- }
- }
- @include when(middle) {
- background: $-calendar-range-color;
- }
- @include when(start) {
- color: $-calendar-selected-color;
- &::after {
- position: absolute;
- top: 0;
- right: 0;
- left: 50%;
- bottom: 0;
- content: '';
- background: $-calendar-range-color;
- }
- .wd-year__month-text {
- background: $-calendar-active-color;
- border-radius: $-calendar-active-border 0 0 $-calendar-active-border;
- }
- &.is-without-end::after {
- display: none;
- }
- }
- @include when(end) {
- color: $-calendar-selected-color;
- &::after {
- position: absolute;
- top: 0;
- left: 0;
- right: 50%;
- bottom: 0;
- content: '';
- background: $-calendar-range-color;
- }
- .wd-year__month-text {
- background: $-calendar-active-color;
- border-radius: 0 $-calendar-active-border $-calendar-active-border 0;
- }
- }
- @include when(same) {
- color: $-calendar-selected-color;
- .wd-year__month-text {
- background: $-calendar-active-color;
- border-radius: $-calendar-active-border;
- }
- }
- @include when(last-row){
- margin-bottom: 0;
- }
- }
- @include e(month-text) {
- width: $-calendar-month-width;
- margin: 0 auto;
- text-align: center;
- }
- @include e(month-top) {
- position: absolute;
- top: 10px;
- left: 0;
- right: 0;
- line-height: 1.1;
- font-size: $-calendar-info-fs;
- text-align: center;
- }
- @include e(month-bottom) {
- position: absolute;
- bottom: 10px;
- left: 0;
- right: 0;
- line-height: 1.1;
- font-size: $-calendar-info-fs;
- text-align: center;
- }
- }
|