weeklyCalendar.wxss 1.78 KB
.row {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background: #fff;
}

.line {
  height: 1rpx;
  width: 100%;
  background-color: gainsboro;
}

.year-select {
  height: 80rpx;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 30rpx;
}

.last-year,
.next-year {
  flex-direction: row;
  font-size: 28rpx;
  color: #181A1F;
  align-items: center;
}

.icon {
  width: 36rpx;
  height: 36rpx;
}

.left {
  margin-right: 10rpx;
}

.left {
    margin-left: 10rpx;
}

.right {
    margin-right: 10rpx;
}

.timeType {
  font-family: PingFangSC-Medium;
  font-weight: 500;
  font-size: 28rpx;
  color: #181A1F;
  width: 280rpx;
  height: 64rpx;
  text-align: center;
  line-height: 64rpx;
  border-radius: 20px;
  background: #f2f3f5;
}

.month-scroll {
  width: 100%;
  white-space: nowrap;
  background: #fff;
  padding-top: 12rpx;
  /* padding: 30rpx 0; */
}

.month-container {
  display: flex;
  padding: 15rpx 30rpx 30rpx 30rpx;
}

.month-item {
  box-sizing: border-box;
  padding: 10rpx 20rpx;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* width: 160rpx; */
  min-width: 180rpx;
  height: 64rpx;
  margin: 0 10rpx;
  border-radius: 364rpx;
  position: relative;
  flex-shrink: 0;
}

.month-text {
  font-size: 28rpx;
  color: #292D33;
}

.month-item.selected {
  background-color: #347BFF;
}

.month-item.selected .month-text {
  color: #fff;
}

.month-item.disabled .month-text {
  color: #BEC1C7;
}

.empty-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #F24724;
  color: #fff;
  height: 32rpx;
  line-height: 32rpx;
  font-size: 22rpx;
  padding: 2rpx 6rpx;
  border-radius: 16rpx;
  transform: translate(30%, -30%);
  z-index: 10;
  white-space: nowrap;
}