2 Star 8 Fork 0

horiz0n/日历

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
calendar.wxss 3.35 KB
一键复制 编辑 原始数据 按行查看 历史
Felix Zhu 提交于 2024-05-29 14:35 . feat:新增最大最小日期设置
/* component/hz_calendar/calendar.wxss */
/* 遮罩 */
.hz-mask {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
opacity: 0;
z-index: 80;
}
/* 日历 */
.hz-box {
--select-color: #0370cc;
--disabled-color: #909090;
--other-month-color: #909090;
--weekday-color: #909090;
width: 100%;
z-index: 81;
background: white;
padding: 55rpx 50rpx;
box-sizing: border-box;
border-radius: 20rpx 20rpx 0 0;
}
.hz-arrow {
width: 40rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.hz-arrow__l {
border-style: solid;
border-width: 12rpx 21rpx 12rpx 0rpx;
border-color: transparent #a0a0a0 transparent transparent;
}
.hz-arrow__r {
border-style: solid;
border-width: 12rpx 0rpx 12rpx 21rpx;
border-color: transparent transparent transparent #a0a0a0;
}
.hz-control {
display: flex;
align-items: center;
justify-content: center;
}
.hz-control-mid {
position: relative;
height: 60rpx;
display: flex;
align-items: center;
justify-content: center;
width: 240rpx;
}
.hz-control-date {
font-size: 36rpx;
color: #151414;
font-weight: bold;
}
.hz-control-picker {
width: 100%;
height: 100%;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 1;
}
.hz-control-picker__holder {
width: 100%;
height: 100%;
position: absolute;
}
.hz-weekday-tab {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 28rpx;
color: var(--weekday-color);
margin-top: 30rpx;
}
.hz-days {
width: 85rpx;
height: 85rpx;
display: flex;
justify-content: center;
align-items: center;
}
.hz-days_day {
width: 51rpx;
height: 51rpx;
text-align: center;
line-height: 51rpx;
border-radius: 50%;
transition: transform 0.3s;
}
.hz-animation-box {
width: 100%;
min-height: 510rpx;
position: relative;
overflow: hidden;
}
.hz-month-view {
width: 100%;
height: 100%;
font-size: 28rpx;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
position: absolute;
left: 0;
background: white;
z-index: 1;
}
.hz-days__now {
color: black;
}
.hz-days__last,
.hz-days__next {
color: var(--other-month-color);
}
.hz-days--today {
position: relative;
color: var(--select-color);
}
.hz-days--today::after {
content: "今天";
color: var(--select-color);
position: absolute;
bottom: -30rpx;
display: block;
font-size: 20rpx;
white-space: nowrap;
left: 50%;
transform: translateX(-50%);
pointer-events: none;
transition: transform .3s;
}
.hz-days--select {
background: var(--select-color);
color: white;
transform: scale(1.2);
}
.hz-days--select::after {
transform: translateX(-50%) translateY(10%) scale(0.8);
}
.hz-days--disabled {
color: var(--disabled-color);
}
.hz-fade-in {
left: 0;
}
.hz-fade-out__left {
left: -700rpx;
}
.hz-fade-out__right {
left: 700rpx;
}
.hz-fade-ani {
transition: left 0.5s;
}
.hz-box .hz-confirm {
width: 509rpx;
height: 68rpx;
line-height: 68rpx;
color: white;
border-radius: 10rpx;
background: var(--select-color);
margin-top: 30rpx;
padding: 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
微信
1
https://gitee.com/horiz0n/wx_mini_calendar.git
git@gitee.com:horiz0n/wx_mini_calendar.git
horiz0n
wx_mini_calendar
日历
master

搜索帮助