index.wxss 5.21 KB
/* component/calendar/calendar.wxss */
.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swiper {
  transition: height 0.3s;
}

.header-wrap {
  height: var(--fontSize88);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.today {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: var(--fontSize28);
  color: #323233;
}

.today .img {
  width: var(--fontSize40);
  height: var(--fontSize40);
  margin-left: var(--fontSize4);
}

.direction-column {
  flex-direction: column;
}

.flex1 {
  flex: 1;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flex-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.align-stretch {
  align-items: stretch;
}

.calendar {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 var(--fontSize12) var(--fontSize20) 0 rgba(131, 134, 163, 0.12);
  border-radius: 0 0 var(--fontSize40) var(--fontSize40);
}

.calendar .title {
  padding: var(--fontSize10) var(--fontSize16) var(--fontSize10) var(--fontSize20);
  font-size: var(--fontSize64);
  font-weight: 500;
  letter-spacing: 0px;
  line-height: var(--fontSize64);
  color: rgba(51, 51, 51, 1);
}

.calendar .title .year-month {
  margin-right: var(--fontSize20);
}

.calendar .title .icon {
  padding: 0 var(--fontSize16);
  font-size: var(--fontSize32);
  color: #999;
}

.calendar .title .open {
  background-color: #f6f6f6;
  color: #999;
  font-size: var(--fontSize22);
  line-height: var(--fontSize36);
  border-radius: var(--fontSize18);
  padding: 0 var(--fontSize14);
}

.list-open {
  position: relative;
  justify-content: center;
  padding: var(--fontSize20) 0;
}

.icon {
  width: var(--fontSize64);
  height: var(--fontSize6);
  border-radius: var(--fontSize6);
  background: #DADEF0;
}

.fold {
  transform: rotate(0deg);
}

.unfold {
  transform: rotate(180deg);
}

.calendar .calendar-week {
  line-height: var(--fontSize40);
  padding: 0 var(--fontSize22);
  font-size: var(--fontSize28);
  color: #999;
}

.calendar .calendar-week .view {
  width: var(--fontSize100);
  text-align: center;
}

.calendar .calendar-main {
  padding: var(--fontSize18) var(--fontSize22) 0;
  align-content: flex-start;
  overflow: hidden;
  border-radius: 0 0, var(--fontSize100), var(--fontSize100);
}

.calendar .calendar-main .day {
  position: relative;
  /* width: var(--fontSize100); */
  width: calc(100 / 750 * 100%);
  color: #666;
  text-align: center;
  height: var(--fontSize98);
  padding: var(--fontSize8) 0;
  box-sizing: border-box;
}

.calendar .calendar-main .day .bg {
  height: var(--fontSize66);
  line-height: var(--fontSize66);
  font-size: var(--fontSize28);
  color: #333;
}

.calendar .calendar-main .day .now {
  /* width: var(--fontSize66); */
  border-radius: 50%;
  color: #167FFF;
  margin: 0 auto;
}

.calendar .calendar-main .day .select {
  width: var(--fontSize66);
  border-radius: 50%;
  text-align: center;
  color: #FFFFFF;
  background: #347BFF;
  margin: 0 auto;
}

.calendar .calendar-main .day .cur-txt {
  display: flex;
  justify-content: center;
  height: var(--fontSize28);
  align-items: center;
  font-size: var(--fontSize20);
  color: #666666;
  text-align: center;
}

.calendar .calendar-main .day .invite-point {
  position: absolute;
  top: 0;
  right: 0;
  height: var(--fontSize28);
  line-height: var(--fontSize28);
  font-size: var(--fontSize20);
  color: #FFFFFF;
  background: #FF9D0A;
  border-radius: var(--fontSize14);
  padding: 0 var(--fontSize8);
}

.calendar .calendar-main .day .spot::after {
  position: absolute;
  content: "";
  display: block;
  width: var(--fontSize8);
  height: var(--fontSize8);
  bottom: var(--fontSize22);
  background: #0EC0B8;
  border-radius: 50%;
  left: 0;
  right: 0;
  margin: auto;
}

.calendar .calendar-main .day .deep-spot::after {
  position: absolute;
  content: "";
  display: block;
  width: var(--fontSize8);
  height: var(--fontSize8);
  bottom: var(--fontSize22);
  background: #FF7416;
  border-radius: 50%;
  left: 0;
  right: 0;
  margin: auto;
}

.calendar .calendar-main .day .other-month {
  color: #ccc;
  background: transparent;
}

.header-wrap .month {
  display: flex;
  align-items: center;
  width: calc(100% - var(--fontSize240));
  height: var(--fontSize40);
  font-size: var(--fontSize28);
  color: #929797;

}

.header-wrap .month .img {
  width: var(--fontSize40);
  height: var(--fontSize40);
}

.dot_list {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: var(--fontSize8);
  left: 0;
  right: 0;
}


.dot {
  width: var(--fontSize8);
  height: var(--fontSize8);
  border-radius: 100%;
  margin: 0 var(--fontSize6) 0 0;
}

.dot:last-child {
  margin: 0;
}

.red {
  background: #EC2C2C;
}

.orange {
  background: #FF7D00;
}

.green {
  background: #00B42A;
}

.blue {
  background: #167FFF;
}

.grey {
  background: #999;
}