123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- .wux-calendar {
- position: relative;
- background: #fff;
- height: 600rpx;
- width: 100%;
- overflow: hidden
- }
- .wux-calendar__content {
- position: relative;
- width: 100%;
- height: 100%;
- transition: transform .3s
- }
- .wux-calendar__bd {
- height: 100%;
- position: relative;
- overflow: hidden
- }
- .wux-calendar__hd {
- position: relative;
- width: 100%
- }
- .wux-calendar__hd::before {
- content: " ";
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- height: 1PX;
- border-top: 1PX solid #d9d9d9;
- color: #d9d9d9;
- transform-origin: 0 0;
- transform: scaleY(.5)
- }
- .wux-calendar__hd + .wux-calendar__bd {
- height: calc(97.8%)
- }
- .wux-calendar__toolbar {
- height: 2.2rem;
- display: -ms-flexbox;
- display: flex;
- text-align: center
- }
- .wux-calendar__picker {
- display: -ms-flexbox;
- display: flex;
- -ms-flex-align: center;
- align-items: center;
- -ms-flex-pack: justify;
- justify-content: space-between;
- width: 50%;
- max-width: 400rpx;
- -ms-flex-negative: 10;
- flex-shrink: 10;
- display: block;
- line-height: 2.2rem
- }
- .wux-calendar__link {
- float: left;
- width: 25%;
- height: 2.2rem;
- line-height: 2rem;
- min-width: 72rpx
- }
- .wux-calendar__icon {
- display: inline-block;
- vertical-align: middle;
- background-size: 100% auto;
- background-position: center
- }
- .wux-calendar__icon--next,
- .wux-calendar__icon--prev {
- width: .75rem;
- height: .75rem
- }
- .wux-calendar__icon--next {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M1%2C1.6l11.8%2C5.8L1%2C13.4V1.6%20M0%2C0v15l15-7.6L0%2C0L0%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
- }
- .wux-calendar__icon--prev {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M14%2C1.6v11.8L2.2%2C7.6L14%2C1.6%20M15%2C0L0%2C7.6L15%2C15V0L15%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
- }
- .wux-calendar__value {
- -ms-flex-negative: 1;
- flex-shrink: 1;
- position: relative;
- overflow: hidden;
- text-overflow: ellipsis;
- float: left;
- width: 50%;
- height: 2.2rem
- }
- .wux-calendar__weekdays {
- height: 36rpx;
- background: #f7f7f8;
- display: -ms-flexbox;
- display: flex;
- font-size: 22rpx;
- box-sizing: border-box;
- position: relative
- }
- .wux-calendar__weekdays::after {
- content: " ";
- position: absolute;
- left: 0;
- bottom: 0;
- right: 0;
- height: 1PX;
- border-bottom: 1PX solid #d9d9d9;
- color: #d9d9d9;
- transform-origin: 0 100%;
- transform: scaleY(.5)
- }
- .wux-calendar__weekdays + .wux-calendar__months {
- height: calc(82%)
- }
- .wux-calendar__weekday {
- -ms-flex-negative: 1;
- flex-shrink: 1;
- width: 14.28571429%;
- width: calc(14.28571429%);
- line-height: 34rpx;
- text-align: center
- }
- .wux-calendar__months {
- width: 100%;
- height: 100%;
- overflow: hidden;
- position: relative
- }
- .wux-calendar__months-content {
- width: 100%;
- height: 100%;
- display: -ms-flexbox;
- display: flex;
- position: relative;
- -webkit-backface-visibility: hidden;
- transform: translate3d(0,0,0)
- }
- .wux-calendar__month {
- display: -ms-flexbox;
- display: flex;
- -ms-flex-direction: column;
- flex-direction: column;
- width: 100%;
- height: 100%;
- position: absolute;
- left: 0;
- top: 0
- }
- .wux-calendar__days {
- height: 16.66666667%;
- height: calc(16.66666667%);
- display: -ms-flexbox;
- display: flex;
- -ms-flex-negative: 1;
- flex-shrink: 1;
- width: 100%;
- position: relative
- }
- .wux-calendar__days::after {
- content: " ";
- position: absolute;
- left: 0;
- bottom: 0;
- right: 0;
- height: 1PX;
- border-bottom: 1PX solid #d9d9d9;
- color: #d9d9d9;
- transform-origin: 0 100%;
- transform: scaleY(.5)
- }
- .wux-calendar__days:last-child::after {
- display: none
- }
- .wux-calendar__day {
- -ms-flex-negative: 1;
- flex-shrink: 1;
- display: -ms-flexbox;
- display: flex;
- -ms-flex-pack: center;
- justify-content: center;
- -ms-flex-align: center;
- align-items: center;
- box-sizing: border-box;
- width: 14.28571429%;
- width: calc(14.28571429%);
- text-align: center;
- color: #3d4145;
- font-size: 30rpx;
- cursor: pointer
- }
- .wux-calendar__day--prev {
- color: #ccc
- }
- .wux-calendar__day--next {
- color: #ccc
- }
- .wux-calendar__day--disabled {
- color: #d4d4d4;
- cursor: auto
- }
- .wux-calendar__day--today .wux-calendar__text {
- background: #e3e3e3
- }
- .wux-calendar__day--selected .wux-calendar__text {
- background: #0894ec;
- color: #fff
- }
- .wux-calendar__text {
- display: inline-block;
- border-radius: 100%;
- width: 60rpx;
- height: 60rpx;
- line-height: 60rpx
- }
|