提交 171f95b8 编写于 作者: KK's avatar KK

代码规范

上级 b8e93160
.mpvue-calendar { .mpvue-calendar {
margin:auto; margin: auto;
width: 100%; width: 100%;
min-width:350px; min-width: 350px;
background: #fff; background: #fff;
user-select:none; user-select: none;
position: relative; position: relative;
} }
.calendar-tools{ .calendar-tools {
height:40px; height: 40px;
font-size: 15px; font-size: 15px;
line-height: 40px; line-height: 40px;
color:#5e7a88; color: #5e7a88;
border-bottom: 0.3px solid #efefef; border-bottom: 0.3px solid #efefef;
} }
.calendar-tools span{ .calendar-tools span {
cursor: pointer; cursor: pointer;
} }
.calendar-prev{ .calendar-prev {
width: 14.28571429%; width: 14.28571429%;
float:left; float: left;
text-align: center; text-align: center;
} }
.calendar-prev img, .calendar-next img{ .calendar-prev img,
.calendar-next img {
width: 34px; width: 34px;
height: 34px; height: 34px;
} }
.calendar-info{ .calendar-info {
font-size:16px; font-size: 16px;
line-height: 1.3; line-height: 1.3;
text-align: center; text-align: center;
width: 220px; width: 220px;
margin: 0 auto; margin: 0 auto;
} }
.calendar-info>div.mc-month{ .calendar-info > div.mc-month {
margin:auto; margin: auto;
height:24px; height: 24px;
width:100px; width: 100px;
text-align: center; text-align: center;
color:#5e7a88; color: #5e7a88;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
.calendar-info>div.mc-month .mc-month-inner{ .calendar-info > div.mc-month .mc-month-inner {
position: absolute; position: absolute;
left:0; left: 0;
top:0; top: 0;
height:480px; height: 480px;
} }
.month-transition{ .month-transition {
transition:top .5s cubic-bezier(0.075, 0.82, 0.165, 1); transition: top 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
} }
.calendar-info .mc-month-text{ .calendar-info .mc-month-text {
display:block; display: block;
font-size:28px; font-size: 28px;
height:40px; height: 40px;
width:200px; width: 200px;
overflow:hidden; overflow: hidden;
text-align:center; text-align: center;
} }
.calendar-info>div.mc-month .mc-month-inner>span{ .calendar-info > div.mc-month .mc-month-inner > span {
display: block; display: block;
font-size: 14px; font-size: 14px;
height:24px; height: 24px;
line-height:24px; line-height: 24px;
width:100px; width: 100px;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
} }
.calendar-info>div.mc-year{ .calendar-info > div.mc-year {
font-size:10px; font-size: 10px;
line-height: 1; line-height: 1;
color:#999; color: #999;
} }
.calendar-next{ .calendar-next {
width: 14.28571429%; width: 14.28571429%;
float:right; float: right;
text-align: center; text-align: center;
} }
.mpvue-calendar table { .mpvue-calendar table {
clear: both; clear: both;
width: 100%; width: 100%;
margin-bottom:10px; margin-bottom: 10px;
border-collapse: collapse; border-collapse: collapse;
color: #444444; color: #444444;
} }
.mpvue-calendar td { .mpvue-calendar td {
margin:2px !important; margin: 2px !important;
padding: 4px; padding: 4px;
width: 14.28571429%; width: 14.28571429%;
box-sizing: border-box; box-sizing: border-box;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
font-size:14px; font-size: 14px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
vertical-align: top; vertical-align: top;
} }
.mpvue-calendar td.mc-week{ .mpvue-calendar td.mc-week {
font-size:10px; font-size: 10px;
pointer-events:none !important; pointer-events: none !important;
cursor: default !important; cursor: default !important;
} }
.mpvue-calendar td.disabled { .mpvue-calendar td.disabled {
color: #ccc; color: #ccc;
} }
.mpvue-calendar td.disabled div{ .mpvue-calendar td.disabled div {
color: #ccc; color: #ccc;
} }
.mpvue-calendar td span{ .mpvue-calendar td span {
display:block; display: block;
height:100%; height: 100%;
width:100%; width: 100%;
margin:0px auto; margin: 0px auto;
border-radius:50%; border-radius: 50%;
position: relative; position: relative;
z-index: 3; z-index: 3;
} }
.mpvue-calendar td:not(.disabled) span.mc-date-red{ .mpvue-calendar td:not(.disabled) span.mc-date-red {
color:#ea6151; color: #ea6151;
} }
.mc-today{ .mc-today {
color: #3b75fb; color: #3b75fb;
} }
.mpvue-calendar td.selected span{ .mpvue-calendar td.selected span {
background-color: #3b75fb; background-color: #3b75fb;
color: #fff; color: #fff;
border-radius: 50%; border-radius: 50%;
} }
.mpvue-calendar td .mc-text{ .mpvue-calendar td .mc-text {
box-sizing: border-box; box-sizing: border-box;
height: 0.7em; height: 0.7em;
overflow: hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
...@@ -144,23 +145,23 @@ ...@@ -144,23 +145,23 @@
} }
.mpvue-calendar td .isGregorianFestival, .mpvue-calendar td .isGregorianFestival,
.mpvue-calendar td .isTerm, .mpvue-calendar td .isTerm,
.mpvue-calendar td .isLunarFestival{ .mpvue-calendar td .isLunarFestival {
color:#ea6151; color: #ea6151;
} }
.mpvue-calendar td.selected span.mc-date-red{ .mpvue-calendar td.selected span.mc-date-red {
background-color: #3b75fb; background-color: #3b75fb;
color: #fff; color: #fff;
} }
.selected .mc-text { .selected .mc-text {
color: #fff !important; color: #fff !important;
} }
.mpvue-calendar .lunarStyle .mc-text{ .mpvue-calendar .lunarStyle .mc-text {
overflow: visible; overflow: visible;
bottom: 20%; bottom: 20%;
} }
.mpvue-calendar thead td { .mpvue-calendar thead td {
text-transform: uppercase; text-transform: uppercase;
height:30px; height: 30px;
vertical-align: middle; vertical-align: middle;
} }
.mc-head { .mc-head {
...@@ -170,7 +171,7 @@ ...@@ -170,7 +171,7 @@
overflow: hidden; overflow: hidden;
} }
.mc-head-box div { .mc-head-box div {
flex:1; flex: 1;
text-align: center; text-align: center;
font-size: 15px; font-size: 15px;
} }
...@@ -178,7 +179,7 @@ ...@@ -178,7 +179,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-content: space-between align-content: space-between;
} }
.mc-body { .mc-body {
padding-bottom: 10px; padding-bottom: 10px;
...@@ -204,7 +205,7 @@ ...@@ -204,7 +205,7 @@
box-sizing: border-box; box-sizing: border-box;
height: 0.7em; height: 0.7em;
overflow: hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
...@@ -215,41 +216,41 @@ ...@@ -215,41 +216,41 @@
line-height: 0.7em; line-height: 0.7em;
z-index: 5; z-index: 5;
} }
.slot-element{ .slot-element {
line-height: normal; line-height: normal;
position: absolute; position: absolute;
z-index: 5; z-index: 5;
} }
.mpvue-calendar-change{ .mpvue-calendar-change {
position: absolute; position: absolute;
left:0px; left: 0px;
top:42px; top: 42px;
right:0px; right: 0px;
bottom:0px; bottom: 0px;
background:#fff; background: #fff;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-wrap:wrap; flex-wrap: wrap;
overflow: auto; overflow: auto;
transition:all .5s cubic-bezier(0.075, 0.82, 0.165, 1); transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
transform: translateY(-10px); transform: translateY(-10px);
z-index: 9; z-index: 9;
} }
.mpvue-calendar-change.show{ .mpvue-calendar-change.show {
opacity: 1; opacity: 1;
pointer-events: auto; pointer-events: auto;
transform: translateY(0px); transform: translateY(0px);
} }
.mpvue-calendar-change span{ .mpvue-calendar-change span {
margin:4px 2%; margin: 4px 2%;
display: inline-block; display: inline-block;
line-height: 30px; line-height: 30px;
border-radius: 20px; border-radius: 20px;
text-align:center; text-align: center;
color:#999; color: #999;
width: 20%; width: 20%;
text-align: center; text-align: center;
border-radius: 40px; border-radius: 40px;
...@@ -257,19 +258,20 @@ ...@@ -257,19 +258,20 @@
margin-bottom: 4%; margin-bottom: 4%;
cursor: pointer; cursor: pointer;
} }
.mpvue-calendar-change span.active{ .mpvue-calendar-change span.active {
background-color: #587dff; background-color: #587dff;
box-shadow: 2px 2px 2px rgba(88, 125, 255, 0.7); box-shadow: 2px 2px 2px rgba(88, 125, 255, 0.7);
color:#fff; color: #fff;
} }
.mpvue-calendar-change .calendar-week-switch-months{ .mpvue-calendar-change .calendar-week-switch-months {
height: 100%; height: 100%;
} }
.mpvue-calendar-change .calendar-week-switch-months span { .mpvue-calendar-change .calendar-week-switch-months span {
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 0px; margin-top: 0px;
} }
.calendar-years, .calendar-months{ .calendar-years,
.calendar-months {
height: auto; height: auto;
width: 100%; width: 100%;
padding: 10px; padding: 10px;
...@@ -277,7 +279,7 @@ ...@@ -277,7 +279,7 @@
position: relative; position: relative;
} }
.calendar-years:after { .calendar-years:after {
content: ''; content: "";
display: block; display: block;
width: 86%; width: 86%;
height: 1px; height: 1px;
...@@ -287,8 +289,8 @@ ...@@ -287,8 +289,8 @@
left: 7%; left: 7%;
} }
/*range background*/ /*range background*/
.mc-range-mode .selected .mc-range-bg{ .mc-range-mode .selected .mc-range-bg {
content: ''; content: "";
display: block; display: block;
width: 150%; width: 150%;
height: 100%; height: 100%;
...@@ -297,88 +299,99 @@ ...@@ -297,88 +299,99 @@
top: -100%; top: -100%;
left: 50%; left: 50%;
} }
.mpvue-calendar .mc-range-mode .selected .calendar-date{ .mpvue-calendar .mc-range-mode .selected .calendar-date {
background-color: transparent; background-color: transparent;
} }
.mpvue-calendar .mc-range-mode .mc-range-row-last .calendar-date, .mpvue-calendar .mc-range-mode .mc-range-row-first .calendar-date{ .mpvue-calendar .mc-range-mode .mc-range-row-last .calendar-date,
.mpvue-calendar .mc-range-mode .mc-range-row-first .calendar-date {
border-radius: 4px; border-radius: 4px;
background-color: #01a1ed; background-color: #01a1ed;
} }
.mpvue-calendar .mc-range-mode .mc-range-month-first.selected .calendar-date, .mpvue-calendar .mc-range-mode .mc-range-month-last.selected .calendar-date{ .mpvue-calendar .mc-range-mode .mc-range-month-first.selected .calendar-date,
.mpvue-calendar .mc-range-mode .mc-range-month-last.selected .calendar-date {
background-color: #01a1ed; background-color: #01a1ed;
border-radius: 4px; border-radius: 4px;
} }
.mc-range-mode .mc-range-month-last .mc-range-bg{ .mc-range-mode .mc-range-month-last .mc-range-bg {
background-color: transparent; background-color: transparent;
border-radius: 4px; border-radius: 4px;
} }
.mc-range-mode .mc-range-end .mc-range-bg, .mc-range-mode .mc-range-row-last .mc-range-bg{ .mc-range-mode .mc-range-end .mc-range-bg,
.mc-range-mode .mc-range-row-last .mc-range-bg {
display: none; display: none;
} }
.mc-range-row-first.mc-range-end .mc-range-bg{ .mc-range-row-first.mc-range-end .mc-range-bg {
display: block; display: block;
margin-left: -50%; margin-left: -50%;
width: 50%; width: 50%;
border-radius: 4px; border-radius: 4px;
} }
.mpvue-calendar .mc-range-row-first.mc-range-end.month-first-date .mc-range-bg{ .mpvue-calendar .mc-range-row-first.mc-range-end.month-first-date .mc-range-bg {
margin-left: 0px; margin-left: 0px;
} }
.mc-range-row-last.mc-range-begin .mc-range-bg{ .mc-range-row-last.mc-range-begin .mc-range-bg {
display: block; display: block;
width: 50%; width: 50%;
border-radius: 4px; border-radius: 4px;
} }
.mpvue-calendar .mc-range-mode .selected.mc-range-second-to-last span{ .mpvue-calendar .mc-range-mode .selected.mc-range-second-to-last span {
background-color: #01a1ed; background-color: #01a1ed;
border-radius: 4px; border-radius: 4px;
} }
.mc-range-begin.mc-range-second-to-last{ .mc-range-begin.mc-range-second-to-last {
background-color: #01a1ed; background-color: #01a1ed;
border-radius: 4px; border-radius: 4px;
} }
.mpvue-calendar .mc-range-mode .mc-range-end span.calendar-date, .mpvue-calendar .mc-range-mode .mc-range-begin span.calendar-date{ .mpvue-calendar .mc-range-mode .mc-range-end span.calendar-date,
.mpvue-calendar .mc-range-mode .mc-range-begin span.calendar-date {
background-color: #3b75fb; background-color: #3b75fb;
color: #fff; color: #fff;
border-radius: 50%; border-radius: 50%;
} }
.mpvue-calendar .mc-range-mode .month-last-date.mc-range-begin .mc-range-bg{ .mpvue-calendar .mc-range-mode .month-last-date.mc-range-begin .mc-range-bg {
display: block; display: block;
width: 50%; width: 50%;
border-radius: 4px; border-radius: 4px;
} }
.mpvue-calendar .mc-range-mode .month-first-date.mc-range-end .mc-range-bg{ .mpvue-calendar .mc-range-mode .month-first-date.mc-range-end .mc-range-bg {
display: block; display: block;
width: 50%; width: 50%;
border-radius: 4px; border-radius: 4px;
left: 0px; left: 0px;
} }
.calendar-wrapper .mpvue-calendar .mc-range-mode .mc-range-select-one div.mc-range-bg{ .calendar-wrapper
.mpvue-calendar
.mc-range-mode
.mc-range-select-one
div.mc-range-bg {
display: none; display: none;
} }
.mc-range-mode .mc-range-second-to-last .mc-range-bg{ .mc-range-mode .mc-range-second-to-last .mc-range-bg {
border-radius: 0px 25% 25% 0px; border-radius: 0px 25% 25% 0px;
} }
.mc-today-element .calendar-date{ .mc-today-element .calendar-date {
background-color: rgba(25, 47, 89, 0.1); background-color: rgba(25, 47, 89, 0.1);
border-radius: 4px; border-radius: 4px;
} }
/*week switch*/ /*week switch*/
.mpvue-calendar .mc-range-mode.week-switch .month-last-date.mc-range-begin .mc-range-bg{ .mpvue-calendar
.mc-range-mode.week-switch
.month-last-date.mc-range-begin
.mc-range-bg {
width: 150%; width: 150%;
border-radius: 0px 20% 20% 0px; border-radius: 0px 20% 20% 0px;
} }
.mpvue-calendar .mc-range-mode.week-switch .mc-range-month-last .mc-range-bg{ .mpvue-calendar .mc-range-mode.week-switch .mc-range-month-last .mc-range-bg {
background-color: #01a1ed; background-color: #01a1ed;
border-radius: 0px 20% 20% 0px; border-radius: 0px 20% 20% 0px;
} }
/*month range*/ /*month range*/
.mpvue-calendar .month-range-mode{ .mpvue-calendar .month-range-mode {
border-bottom: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2;
position: relative; position: relative;
} }
.mpvue-calendar .mc-month-range-mode-head{ .mpvue-calendar .mc-month-range-mode-head {
box-shadow: 0 4px 8px rgba(25,47,89,.1); box-shadow: 0 4px 8px rgba(25, 47, 89, 0.1);
padding: 8px 0px; padding: 8px 0px;
position: sticky; position: sticky;
top: 0px; top: 0px;
...@@ -390,10 +403,11 @@ ...@@ -390,10 +403,11 @@
margin: 10px 0px; margin: 10px 0px;
padding-left: 10px; padding-left: 10px;
} }
.month-range-mode .mc-last-month, .month-range-mode .mc-next-month{ .month-range-mode .mc-last-month,
.month-range-mode .mc-next-month {
opacity: 0 !important; opacity: 0 !important;
} }
.month-text-background{ .month-text-background {
position: absolute; position: absolute;
font-size: 140px; font-size: 140px;
width: 100%; width: 100%;
......
@font-face {font-family: "iconfont"; @font-face {
src: url('data:font/truetype;charset=utf-8;base64,d09GRgABAAAAAASEAAsAAAAABuwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY7d0f0Y21hcAAAAYAAAABTAAABhmJUzs9nbHlmAAAB1AAAALcAAADIzC0F5mhlYWQAAAKMAAAALwAAADYS7IZUaGhlYQAAArwAAAAcAAAAJAfeA4RobXR4AAAC2AAAAAwAAAAMDAAAAGxvY2EAAALkAAAACAAAAAgANgBkbWF4cAAAAuwAAAAfAAAAIAEOACluYW1lAAADDAAAAUUAAAJtPlT+fXBvc3QAAARUAAAALQAAAEOUPjuMeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWCcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeMj5jYm7438AQw9zA0AAUZgTJAQDdSgvleJztkMERgDAIBPdIzMOxEB8W5MvuTRsRMHbhzSwHR/IBWIDiHE4FXYjQ6akyL6yZ13zT3IXd6jYGfO6S75q7xT81fm1Z9zlZXOsl+j5BD35IDU4AeJwVzUEOwUAYBeD/mfxTEso/mkEJoYluqgtajUjYsHEOSytncROJK/QErjNMd+8lL+8jEP3eqq8uNCPiokK1L4t1ihzVCSPMEekAep3mQCh4tpVm95JWz2QGj3iyiN3LZMJBODU49IMuDxk32YifuI89X4+xqwcsHUtEjfVVWt1p5MvWNs9RY4RowNLrJ7Tq8ZKNN7wmvMp8jBc7PDpW3RPfPrISV5ss4QEO9pxcdrix/gMMIyHOAHicY2BkYGAAYmNBZtV4fpuvDNwsDCBw/dlCBQT9fzMLA3MKkMvBwAQSBQDyNAlAAHicY2BkYGBu+N/AEMPCAAJAkpEBFTADAEcJAmwEAAAABAAAAAQAAAAAAAAAADYAZHicY2BkYGBgZpBlANEMDExAzAWEDAz/wXwGAAuHATgAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicY2BigAAuBuyAmZGJkZmRhYEnKzMxryS/tDgjMS+dC8qpzC9lYAAAiPIJlAAAAA=='); font-family: "iconfont";
src: url("data:font/truetype;charset=utf-8;base64,d09GRgABAAAAAASEAAsAAAAABuwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY7d0f0Y21hcAAAAYAAAABTAAABhmJUzs9nbHlmAAAB1AAAALcAAADIzC0F5mhlYWQAAAKMAAAALwAAADYS7IZUaGhlYQAAArwAAAAcAAAAJAfeA4RobXR4AAAC2AAAAAwAAAAMDAAAAGxvY2EAAALkAAAACAAAAAgANgBkbWF4cAAAAuwAAAAfAAAAIAEOACluYW1lAAADDAAAAUUAAAJtPlT+fXBvc3QAAARUAAAALQAAAEOUPjuMeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWCcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeMj5jYm7438AQw9zA0AAUZgTJAQDdSgvleJztkMERgDAIBPdIzMOxEB8W5MvuTRsRMHbhzSwHR/IBWIDiHE4FXYjQ6akyL6yZ13zT3IXd6jYGfO6S75q7xT81fm1Z9zlZXOsl+j5BD35IDU4AeJwVzUEOwUAYBeD/mfxTEso/mkEJoYluqgtajUjYsHEOSytncROJK/QErjNMd+8lL+8jEP3eqq8uNCPiokK1L4t1ihzVCSPMEekAep3mQCh4tpVm95JWz2QGj3iyiN3LZMJBODU49IMuDxk32YifuI89X4+xqwcsHUtEjfVVWt1p5MvWNs9RY4RowNLrJ7Tq8ZKNN7wmvMp8jBc7PDpW3RPfPrISV5ss4QEO9pxcdrix/gMMIyHOAHicY2BkYGAAYmNBZtV4fpuvDNwsDCBw/dlCBQT9fzMLA3MKkMvBwAQSBQDyNAlAAHicY2BkYGBu+N/AEMPCAAJAkpEBFTADAEcJAmwEAAAABAAAAAQAAAAAAAAAADYAZHicY2BkYGBgZpBlANEMDExAzAWEDAz/wXwGAAuHATgAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicY2BigAAuBuyAmZGJkZmRhYEnKzMxryS/tDgjMS+dC8qpzC9lYAAAiPIJlAAAAA==");
} }
.iconfont { .iconfont {
font-family:"iconfont" !important; font-family: "iconfont" !important;
font-size:16px; font-size: 16px;
font-style:normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-arrow-right:before { content: "\e602"; } .icon-arrow-right:before {
content: "\e602";
}
.icon-arrow-left:before { content: "\e501"; } .icon-arrow-left:before {
content: "\e501";
}
.sign { .sign {
height: 28px; height: 28px;
width: 100%; width: 100%;
...@@ -21,14 +26,14 @@ ...@@ -21,14 +26,14 @@
bottom: -11px; bottom: -11px;
left: 0; left: 0;
} }
.sign-item{ .sign-item {
line-height: 1; line-height: 1;
height: 4px; height: 4px;
color: #ccc; color: #ccc;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
} }
.changeStyle_bottom{ .changeStyle_bottom {
border-color: rgb(135, 135, 135); border-color: rgb(135, 135, 135);
border-width: 0 0 2px 2px; border-width: 0 0 2px 2px;
border-style: solid; border-style: solid;
...@@ -37,16 +42,16 @@ ...@@ -37,16 +42,16 @@
width: 10px; width: 10px;
height: 10px; height: 10px;
position: absolute; position: absolute;
right: calc(50% - 7px ); right: calc(50% - 7px);
-webkit-transition: 100 unset; -webkit-transition: 100 unset;
transition: 100 unset; transition: 100 unset;
top: 3px; top: 3px;
} }
.changebox{ .changebox {
position: relative; position: relative;
padding: 10px 0; padding: 10px 0;
} }
.changeStyle_top{ .changeStyle_top {
border-color: rgb(104, 96, 96); border-color: rgb(104, 96, 96);
border-width: 0 0 2px 2px; border-width: 0 0 2px 2px;
border-style: solid; border-style: solid;
...@@ -55,7 +60,7 @@ ...@@ -55,7 +60,7 @@
width: 10px; width: 10px;
height: 10px; height: 10px;
position: absolute; position: absolute;
right: calc(50% - 7px ); right: calc(50% - 7px);
transition: 100 unset; transition: 100 unset;
top: 3px; top: 3px;
} }
......
.mpvue-calendar { .mpvue-calendar {
margin:auto; margin: auto;
width: 100%; width: 100%;
min-width:300rpx; min-width: 300rpx;
background: #fff; background: #fff;
user-select:none; user-select: none;
position: relative; position: relative;
} }
.calendar-tools{ .calendar-tools {
height:40px; height: 40px;
font-size: 15px; font-size: 15px;
line-height: 40px; line-height: 40px;
color:#5e7a88; color: #5e7a88;
} }
.calendar-prev{ .calendar-prev {
width: 14.28571429%; width: 14.28571429%;
float:left; float: left;
text-align: center; text-align: center;
} }
.calendar-prev img, .calendar-next img{ .calendar-prev img,
.calendar-next img {
width: 34rpx; width: 34rpx;
height: 34rpx; height: 34rpx;
} }
.calendar-info{ .calendar-info {
padding-top: 3px; padding-top: 3px;
font-size:16px; font-size: 16px;
line-height: 1.3; line-height: 1.3;
text-align: center; text-align: center;
width: 220rpx; width: 220rpx;
margin: 0 auto; margin: 0 auto;
} }
.calendar-info>div.mc-month{ .calendar-info > div.mc-month {
margin:auto; margin: auto;
height:40rpx; height: 40rpx;
width:100px; width: 100px;
text-align: center; text-align: center;
color:#5e7a88; color: #5e7a88;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
.calendar-info>div.mc-month .mc-month-inner{ .calendar-info > div.mc-month .mc-month-inner {
position: absolute; position: absolute;
left:0; left: 0;
top:0; top: 0;
height:480rpx; height: 480rpx;
} }
.month-transition{ .month-transition {
transition:top .5s cubic-bezier(0.075, 0.82, 0.165, 1); transition: top 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
} }
.calendar-info .mc-month-text{ .calendar-info .mc-month-text {
display:block; display: block;
font-size:28rpx; font-size: 28rpx;
height:40rpx; height: 40rpx;
width:200rpx; width: 200rpx;
overflow:hidden; overflow: hidden;
text-align:center; text-align: center;
} }
.calendar-info>div.mc-month .mc-month-inner>span{ .calendar-info > div.mc-month .mc-month-inner > span {
display: block; display: block;
font-size: 14px; font-size: 14px;
height:20px; height: 20px;
width:100px; width: 100px;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
} }
.calendar-info>div.mc-year{ .calendar-info > div.mc-year {
font-size:10px; font-size: 10px;
line-height: 1; line-height: 1;
color:#999; color: #999;
} }
.calendar-next{ .calendar-next {
width: 14.28571429%; width: 14.28571429%;
float:right; float: right;
text-align: center; text-align: center;
} }
.mpvue-calendar table { .mpvue-calendar table {
clear: both; clear: both;
width: 100%; width: 100%;
margin-bottom:10px; margin-bottom: 10px;
border-collapse: collapse; border-collapse: collapse;
color: #444444; color: #444444;
} }
.mpvue-calendar td { .mpvue-calendar td {
margin:2px !important; margin: 2px !important;
padding:0px 0; padding: 0px 0;
width: 14.28571429%; width: 14.28571429%;
height:88rpx; height: 88rpx;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
font-size:14px; font-size: 14px;
line-height: 125%; line-height: 125%;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
vertical-align: top; vertical-align: top;
} }
.mpvue-calendar td.mc-week{ .mpvue-calendar td.mc-week {
font-size:10px; font-size: 10px;
pointer-events:none !important; pointer-events: none !important;
cursor: default !important; cursor: default !important;
} }
.mpvue-calendar td.disabled { .mpvue-calendar td.disabled {
color: #ccc; color: #ccc;
} }
.mpvue-calendar td.disabled div{ .mpvue-calendar td.disabled div {
color: #ccc; color: #ccc;
} }
.mpvue-calendar td span{ .mpvue-calendar td span {
display:block; display: block;
height:76rpx; height: 76rpx;
width:76rpx; width: 76rpx;
font-size: 28rpx; font-size: 28rpx;
line-height:76rpx; line-height: 76rpx;
margin:0px auto; margin: 0px auto;
position: relative; position: relative;
z-index: 3; z-index: 3;
} }
.mpvue-calendar td:not(.disabled) span.mc-date-red{ .mpvue-calendar td:not(.disabled) span.mc-date-red {
color:#ea6151; color: #ea6151;
} }
.mc-today{ .mc-today {
color: #3b75fb; color: #3b75fb;
} }
.mpvue-calendar td.selected span{ .mpvue-calendar td.selected span {
background-color: #3b75fb; background-color: #3b75fb;
color: #fff; color: #fff;
border-radius:50%; border-radius: 50%;
} }
.mpvue-calendar td .mc-text{ .mpvue-calendar td .mc-text {
position: absolute; position: absolute;
top:28px; top: 28px;
left:0; left: 0;
right:0; right: 0;
text-align: center; text-align: center;
padding:2px; padding: 2px;
font-size:20rpx; font-size: 20rpx;
line-height: 1.2; line-height: 1.2;
color:#444; color: #444;
z-index: 4; z-index: 4;
} }
.mpvue-calendar td .isGregorianFestival, .mpvue-calendar td .isGregorianFestival,
.mpvue-calendar td .isTerm, .mpvue-calendar td .isTerm,
.mpvue-calendar td .isLunarFestival{ .mpvue-calendar td .isLunarFestival {
color:#ea6151; color: #ea6151;
} }
.mpvue-calendar td.selected span.mc-date-red{ .mpvue-calendar td.selected span.mc-date-red {
background-color: #3b75fb; background-color: #3b75fb;
color: #fff; color: #fff;
} }
.selected .mc-text { .selected .mc-text {
color: #fff !important; color: #fff !important;
} }
.mpvue-calendar .lunarStyle span{ .mpvue-calendar .lunarStyle span {
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
line-height:54rpx; line-height: 54rpx;
} }
.mpvue-calendar .lunarStyle .mc-text{ .mpvue-calendar .lunarStyle .mc-text {
top: 44rpx; top: 44rpx;
} }
.mpvue-calendar thead td { .mpvue-calendar thead td {
text-transform: uppercase; text-transform: uppercase;
height:30px; height: 30px;
vertical-align: middle; vertical-align: middle;
} }
.mc-head { .mc-head {
...@@ -170,14 +171,14 @@ ...@@ -170,14 +171,14 @@
overflow: hidden; overflow: hidden;
} }
.mc-head-box div { .mc-head-box div {
flex:1; flex: 1;
text-align: center; text-align: center;
} }
.mc-head-box { .mc-head-box {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-content: space-between align-content: space-between;
} }
.mc-head-box div { .mc-head-box div {
/* font-size: 28rpx; */ /* font-size: 28rpx; */
...@@ -186,7 +187,7 @@ ...@@ -186,7 +187,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-content: space-between align-content: space-between;
} }
.mc-dot { .mc-dot {
width: 10rpx; width: 10rpx;
...@@ -207,44 +208,44 @@ ...@@ -207,44 +208,44 @@
box-sizing: border-box; box-sizing: border-box;
height: 34rpx; height: 34rpx;
overflow: hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.slot-element{ .slot-element {
line-height: normal; line-height: normal;
position: absolute; position: absolute;
z-index: 5; z-index: 5;
} }
.mpvue-calendar-change{ .mpvue-calendar-change {
position: absolute; position: absolute;
left:0rpx; left: 0rpx;
top:85rpx; top: 85rpx;
right:0rpx; right: 0rpx;
bottom:0rpx; bottom: 0rpx;
background:#fff; background: #fff;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-wrap:wrap; flex-wrap: wrap;
overflow: auto; overflow: auto;
transition:all .5s cubic-bezier(0.075, 0.82, 0.165, 1); transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
transform: translateY(-10px); transform: translateY(-10px);
z-index: 9; z-index: 9;
} }
.mpvue-calendar-change.show{ .mpvue-calendar-change.show {
opacity: 1; opacity: 1;
pointer-events: auto; pointer-events: auto;
transform: translateY(0px); transform: translateY(0px);
} }
.mpvue-calendar-change span{ .mpvue-calendar-change span {
margin:4px 2%; margin: 4px 2%;
display: inline-block; display: inline-block;
line-height: 30px; line-height: 30px;
border-radius: 20px; border-radius: 20px;
text-align:center; text-align: center;
color:#999; color: #999;
width: 20%; width: 20%;
float: left; float: left;
text-align: center; text-align: center;
...@@ -252,12 +253,12 @@ ...@@ -252,12 +253,12 @@
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 4%; margin-bottom: 4%;
} }
.mpvue-calendar-change span.active{ .mpvue-calendar-change span.active {
background-color: #587dff; background-color: #587dff;
box-shadow: 2px 2px 2px rgba(88, 125, 255, 0.7); box-shadow: 2px 2px 2px rgba(88, 125, 255, 0.7);
color:#fff; color: #fff;
} }
.mpvue-calendar-change .calendar-week-switch-months{ .mpvue-calendar-change .calendar-week-switch-months {
height: 100%; height: 100%;
padding: 10rpx 20rpx; padding: 10rpx 20rpx;
} }
...@@ -267,7 +268,8 @@ ...@@ -267,7 +268,8 @@
font-size: 26rpx; font-size: 26rpx;
line-height: 40rpx; line-height: 40rpx;
} }
.calendar-years, .calendar-months{ .calendar-years,
.calendar-months {
height: 50%; height: 50%;
width: 100%; width: 100%;
padding: 10px; padding: 10px;
...@@ -275,7 +277,7 @@ ...@@ -275,7 +277,7 @@
position: relative; position: relative;
} }
.calendar-years:after { .calendar-years:after {
content: ''; content: "";
display: block; display: block;
width: 86%; width: 86%;
height: 1rpx; height: 1rpx;
...@@ -285,8 +287,8 @@ ...@@ -285,8 +287,8 @@
left: 7%; left: 7%;
} }
/*range background*/ /*range background*/
.mc-range-mode .selected .mc-range-bg{ .mc-range-mode .selected .mc-range-bg {
content: ''; content: "";
display: block; display: block;
width: 110rpx; width: 110rpx;
height: 80rpx; height: 80rpx;
...@@ -295,78 +297,85 @@ ...@@ -295,78 +297,85 @@
top: 0rpx; top: 0rpx;
left: 50%; left: 50%;
} }
.mpvue-calendar .mc-range-mode .selected .calendar-date{ .mpvue-calendar .mc-range-mode .selected .calendar-date {
background-color: transparent; background-color: transparent;
} }
.mpvue-calendar .mc-range-mode .mc-range-row-last span.calendar-date, .mpvue-calendar .mc-range-mode .mc-range-row-first span.calendar-date{ .mpvue-calendar .mc-range-mode .mc-range-row-last span.calendar-date,
.mpvue-calendar .mc-range-mode .mc-range-row-first span.calendar-date {
border-radius: 6rpx; border-radius: 6rpx;
background-color: #01a1ed; background-color: #01a1ed;
} }
.mpvue-calendar .mc-range-mode .mc-range-month-first.selected .calendar-date, .mpvue-calendar .mc-range-mode .mc-range-month-last.selected .calendar-date{ .mpvue-calendar .mc-range-mode .mc-range-month-first.selected .calendar-date,
.mpvue-calendar .mc-range-mode .mc-range-month-last.selected .calendar-date {
border-radius: 6rpx; border-radius: 6rpx;
background-color: #01a1ed; background-color: #01a1ed;
} }
.mc-range-mode .mc-range-month-last .mc-range-bg{ .mc-range-mode .mc-range-month-last .mc-range-bg {
background-color: transparent; background-color: transparent;
border-radius: 6rpx; border-radius: 6rpx;
} }
.mc-range-mode .mc-range-end .mc-range-bg, .mc-range-mode .mc-range-row-last .mc-range-bg{ .mc-range-mode .mc-range-end .mc-range-bg,
.mc-range-mode .mc-range-row-last .mc-range-bg {
display: none; display: none;
} }
.mpvue-calendar .mc-range-mode .mc-range-end span.calendar-date, .mpvue-calendar .mc-range-mode .mc-range-begin span.calendar-date{ .mpvue-calendar .mc-range-mode .mc-range-end span.calendar-date,
.mpvue-calendar .mc-range-mode .mc-range-begin span.calendar-date {
background-color: #3b75fb; background-color: #3b75fb;
color: #fff; color: #fff;
border-radius: 50%; border-radius: 50%;
} }
.mc-range-mode .mc-range-row-first.mc-range-end .mc-range-bg{ .mc-range-mode .mc-range-row-first.mc-range-end .mc-range-bg {
display: block; display: block;
border-radius: 6rpx; border-radius: 6rpx;
width: 40rpx; width: 40rpx;
left: 5px; left: 5px;
} }
.mpvue-calendar .mc-range-row-first.mc-range-end.month-first-date .mc-range-bg{ .mpvue-calendar .mc-range-row-first.mc-range-end.month-first-date .mc-range-bg {
margin-left: 0px; margin-left: 0px;
} }
.mc-range-mode .mc-range-row-last.mc-range-begin .mc-range-bg{ .mc-range-mode .mc-range-row-last.mc-range-begin .mc-range-bg {
display: block; display: block;
border-radius: 4rpx; border-radius: 4rpx;
width: 40rpx; width: 40rpx;
right: 10px; right: 10px;
} }
.mpvue-calendar .mc-range-mode .month-last-date.mc-range-begin .mc-range-bg{ .mpvue-calendar .mc-range-mode .month-last-date.mc-range-begin .mc-range-bg {
display: block; display: block;
width: 40rpx; width: 40rpx;
border-radius: 6rpx; border-radius: 6rpx;
} }
.mpvue-calendar .mc-range-mode .month-first-date.mc-range-end .mc-range-bg{ .mpvue-calendar .mc-range-mode .month-first-date.mc-range-end .mc-range-bg {
display: block; display: block;
width: 40rpx; width: 40rpx;
border-radius: 6rpx; border-radius: 6rpx;
left: 10rpx; left: 10rpx;
} }
.mpvue-calendar .mc-range-mode .mc-range-select-one div.mc-range-bg{ .mpvue-calendar .mc-range-mode .mc-range-select-one div.mc-range-bg {
display: none !important; display: none !important;
} }
.mc-body .mc-today-element .calendar-date{ .mc-body .mc-today-element .calendar-date {
background-color: rgba(25, 47, 89, 0.1); background-color: rgba(25, 47, 89, 0.1);
border-radius: 6rpx; border-radius: 6rpx;
} }
/*week switch*/ /*week switch*/
.mpvue-calendar .mc-range-mode.week-switch .month-last-date.mc-range-begin .mc-range-bg{ .mpvue-calendar
.mc-range-mode.week-switch
.month-last-date.mc-range-begin
.mc-range-bg {
width: 130%; width: 130%;
border-radius: 0px 20% 20% 0px; border-radius: 0px 20% 20% 0px;
} }
.mpvue-calendar .mc-range-mode.week-switch .mc-range-month-last .mc-range-bg{ .mpvue-calendar .mc-range-mode.week-switch .mc-range-month-last .mc-range-bg {
background-color: #01a1ed; background-color: #01a1ed;
border-radius: 0px 20% 20% 0px; border-radius: 0px 20% 20% 0px;
} }
/*month range*/ /*month range*/
.mpvue-calendar .month-range-mode{ .mpvue-calendar .month-range-mode {
border-bottom: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2;
position: relative; position: relative;
} }
.mpvue-calendar .mc-month-range-mode-head{ .mpvue-calendar .mc-month-range-mode-head {
box-shadow: 0 4px 8px rgba(25,47,89,.1); box-shadow: 0 4px 8px rgba(25, 47, 89, 0.1);
padding: 15rpx 0rpx; padding: 15rpx 0rpx;
position: sticky; position: sticky;
top: 0px; top: 0px;
...@@ -379,10 +388,11 @@ ...@@ -379,10 +388,11 @@
padding-left: 40rpx; padding-left: 40rpx;
font-size: 28rpx; font-size: 28rpx;
} }
.month-range-mode .mc-last-month, .month-range-mode .mc-next-month{ .month-range-mode .mc-last-month,
.month-range-mode .mc-next-month {
opacity: 0 !important; opacity: 0 !important;
} }
.month-text-background{ .month-text-background {
position: absolute; position: absolute;
font-size: 140px; font-size: 140px;
width: 100%; width: 100%;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册