neverland 1a7889590f
perf: remove CSS variables polyfill (#4487)
* perf: remove CSS variables polyfill

* style: fix missing calc value

* perf: reduce some useless css vars
2021-09-23 17:31:28 +08:00

40 lines
916 B
Plaintext

@import '../../../common/style/var.less';
.van-calendar {
&__header {
flex-shrink: 0;
box-shadow: var(--calendar-header-box-shadow, @calendar-header-box-shadow);
}
&__header-title,
&__header-subtitle {
text-align: center;
height: var(--calendar-header-title-height, @calendar-header-title-height);
font-weight: var(--font-weight-bold, @font-weight-bold);
line-height: var(
--calendar-header-title-height,
@calendar-header-title-height
);
}
&__header-title:empty,
&__header-title + &__header-title {
display: none;
}
&__header-title:empty + &__header-title {
display: block !important;
}
&__weekdays {
display: flex;
}
&__weekday {
flex: 1;
text-align: center;
font-size: var(--calendar-weekdays-font-size, @calendar-weekdays-font-size);
line-height: var(--calendar-weekdays-height, @calendar-weekdays-height);
}
}