2015-06-12 15:39:01 +08:00
|
|
|
.calendarPanelHeader(@prefixCalendarClass) {
|
|
|
|
padding: 0 10px;
|
|
|
|
height: 34px;
|
|
|
|
line-height: 34px;
|
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
border-bottom: 1px solid #e9e9e9;
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
color: @link-hover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefixCalendarClass}-century-select,
|
|
|
|
.@{prefixCalendarClass}-decade-select,
|
|
|
|
.@{prefixCalendarClass}-year-select,
|
|
|
|
.@{prefixCalendarClass}-month-select {
|
|
|
|
padding: 0px 2px;
|
|
|
|
font-weight: bold;
|
|
|
|
display: inline-block;
|
|
|
|
color: #666;
|
|
|
|
line-height: 34px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefixCalendarClass}-century-select-arrow,
|
|
|
|
.@{prefixCalendarClass}-decade-select-arrow,
|
|
|
|
.@{prefixCalendarClass}-year-select-arrow,
|
|
|
|
.@{prefixCalendarClass}-month-select-arrow {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefixCalendarClass}-prev-century-btn,
|
|
|
|
.@{prefixCalendarClass}-next-century-btn,
|
|
|
|
.@{prefixCalendarClass}-prev-decade-btn,
|
|
|
|
.@{prefixCalendarClass}-next-decade-btn,
|
|
|
|
.@{prefixCalendarClass}-prev-month-btn,
|
|
|
|
.@{prefixCalendarClass}-next-month-btn,
|
|
|
|
.@{prefixCalendarClass}-prev-year-btn,
|
|
|
|
.@{prefixCalendarClass}-next-year-btn {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
color: #999;
|
|
|
|
font-family: Arial,"Hiragino Sans GB","Microsoft Yahei","Microsoft Sans Serif",sans-serif;
|
|
|
|
padding: 0 5px;
|
|
|
|
font-size: 16px;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 34px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefixCalendarClass}-prev-century-btn,
|
|
|
|
.@{prefixCalendarClass}-prev-decade-btn,
|
|
|
|
.@{prefixCalendarClass}-prev-year-btn {
|
|
|
|
left: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefixCalendarClass}-next-century-btn,
|
|
|
|
.@{prefixCalendarClass}-next-decade-btn,
|
|
|
|
.@{prefixCalendarClass}-next-year-btn {
|
|
|
|
right: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefixCalendarClass}-prev-month-btn {
|
|
|
|
left: 29px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefixCalendarClass}-next-month-btn {
|
|
|
|
right: 29px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
.@{prefixCalendarClass} {
|
|
|
|
position: relative;
|
|
|
|
outline: none;
|
|
|
|
width: 253px;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
list-style: none;
|
2015-06-10 20:25:19 +08:00
|
|
|
font-size: @font-size-base;
|
2015-06-09 15:21:44 +08:00
|
|
|
text-align: left;
|
|
|
|
background-color: #fff;
|
2015-06-10 20:25:19 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
box-shadow: 0 0 4px #d9d9d9;
|
2015-06-09 15:21:44 +08:00
|
|
|
background-clip: padding-box;
|
2015-06-10 20:25:19 +08:00
|
|
|
line-height: @line-height-base;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&-week-number {
|
|
|
|
width: 286px;
|
|
|
|
|
|
|
|
&-cell {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
2015-06-12 15:39:01 +08:00
|
|
|
.calendarPanelHeader(@prefixCalendarClass);
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-calendar-body {
|
2015-06-17 21:20:43 +08:00
|
|
|
padding: 5px 8px;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2015-06-12 15:49:06 +08:00
|
|
|
padding: 4px 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-date {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
color: #666;
|
|
|
|
border-radius: 4px 4px;
|
2015-06-12 15:39:01 +08:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
2015-06-09 15:21:44 +08:00
|
|
|
padding: 0;
|
|
|
|
background: transparent;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&:hover {
|
2015-06-17 21:20:43 +08:00
|
|
|
background: fadeout(#2db7f5, 90%);
|
2015-06-09 15:21:44 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-06-17 21:20:43 +08:00
|
|
|
&:active {
|
|
|
|
color: #fff;
|
|
|
|
background: fadeout(#2db7f5, 80%);
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-06-15 15:52:57 +08:00
|
|
|
&-today &-date {
|
2015-06-17 21:36:35 +08:00
|
|
|
border: 1px solid fadeout(#2db7f5, 50%);
|
|
|
|
line-height: 18px;
|
|
|
|
background: fadeout(#2db7f5, 90%);
|
2015-06-15 15:52:57 +08:00
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-selected-day &-date {
|
2015-06-17 21:20:43 +08:00
|
|
|
background: #2db7f5;
|
2015-06-09 15:21:44 +08:00
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
&:hover {
|
2015-06-17 21:20:43 +08:00
|
|
|
background: #2db7f5;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-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 {
|
2015-06-10 20:25:19 +08:00
|
|
|
padding: 0 15px;
|
|
|
|
height: 42px;
|
|
|
|
line-height: 42px;
|
|
|
|
border-top: 1px solid #e9e9e9;
|
2015-06-11 18:08:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-footer-btn {
|
2015-06-09 15:21:44 +08:00
|
|
|
text-align: center;
|
2015-06-11 18:08:00 +08:00
|
|
|
display: block;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-06-10 20:25:19 +08:00
|
|
|
&-footer > div {
|
|
|
|
display: inline-block;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-06-11 18:08:00 +08:00
|
|
|
.@{prefixCalendarClass}-today-btn,
|
|
|
|
.@{prefixCalendarClass}-clear-btn {
|
2015-06-09 15:21:44 +08:00
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
2015-06-12 15:49:06 +08:00
|
|
|
margin: 0 10px;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
color: #23c0fa;
|
|
|
|
}
|
|
|
|
}
|
2015-06-11 18:08:00 +08:00
|
|
|
|
|
|
|
.@{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;
|
|
|
|
}
|
2015-06-09 17:54:19 +08:00
|
|
|
}
|