You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

216 lines
3.7 KiB

.@{prefixCalendarClass} {
position: relative;
outline: none;
width: 253px;
border: 1px solid #ccc;
list-style: none;
font-size: @font-size-base;
text-align: left;
background-color: #fff;
border-radius: @border-radius-base;
box-shadow: 0 0 4px #d9d9d9;
background-clip: padding-box;
line-height: @line-height-base;
display: block !important;
&-week-number {
width: 286px;
&-cell {
text-align: center;
}
}
&-header {
padding: 0 10px;
height: 34px;
text-align: center;
user-select: none;
-webkit-user-select: none;
border-bottom: 1px solid #e9e9e9;
.@{prefixCalendarClass}-year-select,
.@{prefixCalendarClass}-month-select {
padding: 0px 2px;
font-weight: bold;
display: inline-block;
color: #666;
line-height: 34px;
&:hover {
color: #23c0fa;
}
}
> a {
color: #999;
font-family: Arial,"Hiragino Sans GB","Microsoft Yahei","Microsoft Sans Serif","WenQuanYi Micro Hei",sans-serif;
padding: 0 5px;
font-size: 16px;
display: inline-block;
line-height: 34px;
}
.@{prefixCalendarClass}-month-select-arrow {
display: none;
}
}
&-prev-month-btn,
&-next-month-btn,
&-prev-year-btn,
&-next-year-btn {
position: absolute;
top: 0;
}
&-prev-year-btn {
left: 7px;
}
&-next-year-btn {
right: 7px;
}
&-prev-month-btn {
left: 29px;
}
&-next-month-btn {
right: 29px;
}
&-calendar-body {
padding: 9px 10px 10px;
}
table {
border-collapse: collapse;
max-width: 100%;
background-color: transparent;
width: 100%;
}
table, td, th, td {
border: none;
}
&-calendar-table {
border-spacing: 0;
margin-bottom: 0;
}
&-column-header {
line-height: 18px;
width: 33px;
padding: 6px 0;
text-align: center;
.@{prefixCalendarClass}-column-header-inner {
display: block;
font-weight: normal;
}
}
&-week-number-header {
.@{prefixCalendarClass}-column-header-inner {
display: none;
}
}
&-cell {
padding: 1px 0;
}
&-date {
display: block;
margin: 0 auto;
color: #666;
border-radius: 4px 4px;
width: 26px;
height: 26px;
padding: 0;
background: transparent;
line-height: 26px;
text-align: center;
&:hover {
background: #ebfaff;
cursor: pointer;
}
}
&-selected-day &-date {
background: #3fc7fa;
color: #fff;
&:hover {
background: #3fc7fa;
}
}
&-disabled-cell &-date {
cursor: not-allowed;
color: #bcbcbc;
background: #f3f3f3;
border-radius: 0;
width: auto;
&:hover {
background: #f3f3f3;
}
}
&-disabled-cell-first-of-row &-date {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
&-disabled-cell-last-of-row &-date {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
&-last-month-cell &-date, &-next-month-btn-day &-date {
color: #bbb;
}
&-footer {
padding: 0 15px;
height: 42px;
line-height: 42px;
border-top: 1px solid #e9e9e9;
}
&-footer-btn {
text-align: center;
display: block;
}
&-footer > div {
display: inline-block;
}
.@{prefixCalendarClass}-today-btn,
.@{prefixCalendarClass}-clear-btn {
display: inline-block;
text-align: center;
margin-left: 8px;
&:hover {
cursor: pointer;
color: #23c0fa;
}
}
.@{prefixCalendarClass}-ok-btn {
.btn;
.btn-primary;
.button-size(@btn-padding-sm; @font-size-base; @btn-border-radius-sm);
letter-spacing: 3px;
text-indent: 3px;
padding-left: 8px;
padding-right: 8px;
position: absolute;
bottom: 9px;
right: 9px;
}
}