.mk-calendar {
|
position: relative;
|
width: 100%;
|
padding: 20px;
|
color: rgba(0, 0, 0, 0.85);
|
|
.loading-data {
|
position: absolute;
|
top: 0;
|
left: 20px;
|
right: 20px;
|
bottom: 0;
|
z-index: 2;
|
opacity: 0.5;
|
background: #ffffff;
|
.ant-spin-spinning {
|
position: absolute;
|
left: 50%;
|
top: 270px;
|
}
|
}
|
.mk-calendar-control {
|
text-align: right;
|
.ant-select {
|
width: 90px;
|
margin-right: 15px;
|
}
|
.ant-select + .ant-select {
|
width: 80px;
|
}
|
}
|
.mk-calendar-content {
|
margin-top: 10px;
|
.day-calendar .ant-col {
|
min-height: 235px;
|
table {
|
width: 100%;
|
thead {
|
text-align: center;
|
color: var(--mk-sys-color);
|
tr {
|
height: 30px;
|
}
|
tr:first-child {
|
th {
|
font-weight: 600;
|
font-size: 16px;
|
}
|
}
|
}
|
tbody {
|
text-align: center;
|
tr {
|
height: 28px;
|
td {
|
.day-wrap {
|
cursor: pointer;
|
transition: background 0.1s;
|
span {
|
display: inline-block;
|
width: 100%;
|
height: 100%;
|
}
|
}
|
.day-wrap.disabled {
|
cursor: default;
|
color: rgba(0, 0, 0, 0.35);
|
}
|
.day-wrap:not(.disabled):hover {
|
background: var(--mk-sys-color2);
|
}
|
}
|
}
|
}
|
}
|
}
|
.month-calendar {
|
table {
|
width: 100%;
|
thead {
|
text-align: center;
|
font-size: 16px;
|
tr {
|
height: 35px;
|
}
|
}
|
tbody {
|
tr {
|
td {
|
position: relative;
|
width: 14.2%;
|
.month-wrap {
|
cursor: pointer;
|
height: 120px;
|
width: calc(100% - 2px);
|
transition: background 0.1s;
|
margin-bottom: 2px;
|
box-shadow: 0px 0px 3px var(--mk-sys-color2);
|
.header {
|
font-size: 16px;
|
padding: 5px 10px;
|
|
.message {
|
.right {
|
float: right;
|
}
|
.right.danger {
|
color: #ff4d4f;
|
}
|
}
|
}
|
.content {
|
padding: 0 10px 10px;
|
height: 55px;
|
overflow-y: auto;
|
position: absolute;
|
left: 0;
|
right: 0;
|
.message {
|
width: 100%;
|
white-space: nowrap;
|
overflow: hidden;
|
.ant-badge {
|
width: 100%;
|
}
|
.ant-badge-status-text {
|
font-size: 13px;
|
width: calc(100% - 15px);
|
overflow: hidden;
|
word-break: break-word;
|
white-space: nowrap;
|
text-overflow: ellipsis;
|
height: 21px;
|
display: inline-block;
|
vertical-align: top;
|
}
|
}
|
}
|
.content::-webkit-scrollbar {
|
width: 5px;
|
}
|
.content::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.7);
|
background: rgba(255, 255, 255, 0.7);
|
}
|
.content::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
}
|
|
.month-wrap.disabled {
|
cursor: default;
|
color: rgba(0, 0, 0, 0.35);
|
.header {
|
.message {
|
.right.danger {
|
color: rgba(0, 0, 0, 0.35);
|
}
|
}
|
}
|
}
|
|
.month-wrap:not(.disabled):hover {
|
background: var(--mk-sys-color1);
|
}
|
}
|
}
|
}
|
}
|
}
|
.year-calendar {
|
.year-wrap {
|
width: calc(100% - 2px);
|
box-shadow: 0px 0px 3px var(--mk-sys-color2);
|
transition: background 0.1s;
|
.header {
|
text-align: center;
|
font-size: 16px;
|
color: var(--mk-sys-color);
|
}
|
.content {
|
padding: 5px 15px 10px;
|
height: 110px;
|
overflow-y: auto;
|
margin-bottom: 2px;
|
.ant-badge-status-text {
|
color: inherit;
|
}
|
.message {
|
width: 100%;
|
overflow: hidden;
|
margin-bottom: 5px;
|
.ant-badge {
|
width: 100%;
|
}
|
.ant-badge-status-text {
|
font-size: 13px;
|
width: calc(100% - 15px);
|
overflow: hidden;
|
word-break: break-word;
|
white-space: nowrap;
|
text-overflow: ellipsis;
|
height: 21px;
|
display: inline-block;
|
vertical-align: top;
|
}
|
}
|
}
|
.content::-webkit-scrollbar {
|
width: 5px;
|
}
|
.content::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.7);
|
background: rgba(255, 255, 255, 0.7);
|
}
|
.content::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
}
|
.year-wrap:hover {
|
background: var(--mk-sys-color1);
|
}
|
}
|
}
|
}
|
.mk-calendar:not(.open-pop) {
|
.day-wrap {
|
cursor: default!important;
|
}
|
.month-wrap {
|
cursor: default!important;
|
}
|
}
|
.mk-calendar.open-menu {
|
.month-wrap, .year-wrap {
|
.content {
|
.message {
|
cursor: pointer;
|
}
|
}
|
}
|
}
|
.calendar-day-pop.open-menu {
|
.message {
|
cursor: pointer;
|
}
|
}
|
.calendar-day-pop {
|
.message {
|
.ant-badge-status-text {
|
display: inline-block;
|
min-width: 200px;
|
max-width: 350px;
|
vertical-align: middle;
|
}
|
}
|
.ant-popover-inner {
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
}
|
.ant-popover-inner-content {
|
padding: 0px;
|
min-height: 45px;
|
max-height: 200px;
|
overflow-y: auto;
|
>div {
|
padding: 12px 16px;
|
}
|
}
|
.ant-popover-inner-content::-webkit-scrollbar {
|
width: 5px;
|
}
|
.ant-popover-inner-content::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.09);
|
background: rgba(0, 0, 0, 0.09);
|
}
|
.ant-popover-inner-content::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
}
|