2015-08-20 16:55:42 +08:00
|
|
|
.calendarPanelHeader(@calendar-prefix-cls) {
|
2015-06-12 15:39:01 +08:00
|
|
|
height: 34px;
|
|
|
|
line-height: 34px;
|
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
2015-12-02 14:00:41 +08:00
|
|
|
border-bottom: 1px solid @border-color-split;
|
2015-06-12 15:39:01 +08:00
|
|
|
|
|
|
|
a:hover {
|
|
|
|
color: @link-hover-color;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-century-select,
|
|
|
|
.@{calendar-prefix-cls}-decade-select,
|
|
|
|
.@{calendar-prefix-cls}-year-select,
|
|
|
|
.@{calendar-prefix-cls}-month-select {
|
|
|
|
padding: 0 2px;
|
2015-06-12 15:39:01 +08:00
|
|
|
font-weight: bold;
|
|
|
|
display: inline-block;
|
|
|
|
color: #666;
|
|
|
|
line-height: 34px;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-century-select-arrow,
|
|
|
|
.@{calendar-prefix-cls}-decade-select-arrow,
|
|
|
|
.@{calendar-prefix-cls}-year-select-arrow,
|
|
|
|
.@{calendar-prefix-cls}-month-select-arrow {
|
2015-06-12 15:39:01 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-prev-century-btn,
|
|
|
|
.@{calendar-prefix-cls}-next-century-btn,
|
|
|
|
.@{calendar-prefix-cls}-prev-decade-btn,
|
|
|
|
.@{calendar-prefix-cls}-next-decade-btn,
|
|
|
|
.@{calendar-prefix-cls}-prev-month-btn,
|
|
|
|
.@{calendar-prefix-cls}-next-month-btn,
|
|
|
|
.@{calendar-prefix-cls}-prev-year-btn,
|
|
|
|
.@{calendar-prefix-cls}-next-year-btn {
|
2015-06-12 15:39:01 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-prev-century-btn,
|
|
|
|
.@{calendar-prefix-cls}-prev-decade-btn,
|
|
|
|
.@{calendar-prefix-cls}-prev-year-btn {
|
2015-06-12 15:39:01 +08:00
|
|
|
left: 7px;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-next-century-btn,
|
|
|
|
.@{calendar-prefix-cls}-next-decade-btn,
|
|
|
|
.@{calendar-prefix-cls}-next-year-btn {
|
2015-06-12 15:39:01 +08:00
|
|
|
right: 7px;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-prev-month-btn {
|
2015-06-12 15:39:01 +08:00
|
|
|
left: 29px;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-next-month-btn {
|
2015-06-12 15:39:01 +08:00
|
|
|
right: 29px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls} {
|
2015-06-09 15:21:44 +08:00
|
|
|
position: relative;
|
|
|
|
outline: none;
|
2015-12-25 14:52:41 +08:00
|
|
|
width: 231px;
|
2015-12-02 14:00:41 +08:00
|
|
|
border: 1px solid @border-color-base;
|
2015-06-09 15:21:44 +08:00
|
|
|
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;
|
2015-12-02 11:53:37 +08:00
|
|
|
box-shadow: @box-shadow-base;
|
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
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
&-input-wrap {
|
2015-12-25 01:21:03 +08:00
|
|
|
height: 34px;
|
2015-11-24 17:43:58 +08:00
|
|
|
padding: 6px;
|
2015-12-02 14:00:41 +08:00
|
|
|
border-bottom: 1px solid @border-color-split;
|
2015-10-20 16:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-input {
|
2015-10-28 16:31:28 +08:00
|
|
|
border: 0;
|
2015-10-20 16:47:55 +08:00
|
|
|
width: 100%;
|
|
|
|
cursor: auto;
|
2015-10-29 19:59:48 +08:00
|
|
|
outline: 0;
|
2015-12-25 01:21:03 +08:00
|
|
|
height: 22px;
|
2015-10-20 16:47:55 +08:00
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-week-number {
|
|
|
|
width: 286px;
|
|
|
|
|
|
|
|
&-cell {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
2015-08-20 16:55:42 +08:00
|
|
|
.calendarPanelHeader(@calendar-prefix-cls);
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-calendar-body {
|
2015-12-25 14:52:41 +08:00
|
|
|
padding: 4px 8px;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
max-width: 100%;
|
|
|
|
background-color: transparent;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
table,
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border: 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-calendar-table {
|
|
|
|
border-spacing: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-column-header {
|
|
|
|
line-height: 18px;
|
|
|
|
width: 33px;
|
|
|
|
padding: 6px 0;
|
|
|
|
text-align: center;
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-column-header-inner {
|
2015-06-09 15:21:44 +08:00
|
|
|
display: block;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-week-number-header {
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-column-header-inner {
|
2015-06-09 15:21:44 +08:00
|
|
|
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;
|
2016-03-02 15:10:13 +08:00
|
|
|
border-radius: @border-radius-sm;
|
2015-06-12 15:39:01 +08:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2015-08-31 16:43:16 +08:00
|
|
|
line-height: 18px;
|
2015-12-25 14:52:41 +08:00
|
|
|
border: 1px solid transparent;
|
2015-06-09 15:21:44 +08:00
|
|
|
padding: 0;
|
|
|
|
background: transparent;
|
|
|
|
text-align: center;
|
2015-10-29 19:01:10 +08:00
|
|
|
transition: background 0.3s ease;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&:hover {
|
2015-07-06 11:20:30 +08:00
|
|
|
background: tint(@primary-color, 90%);
|
2015-06-09 15:21:44 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2016-03-02 15:10:13 +08:00
|
|
|
|
2015-06-17 21:20:43 +08:00
|
|
|
&:active {
|
|
|
|
color: #fff;
|
2015-07-06 11:20:30 +08:00
|
|
|
background: tint(@primary-color, 20%);
|
2015-06-17 21:20:43 +08:00
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-06-15 15:52:57 +08:00
|
|
|
&-today &-date {
|
2015-12-25 14:52:41 +08:00
|
|
|
border-color: @primary-color;
|
|
|
|
font-weight: bold;
|
|
|
|
color: @primary-color;
|
2015-06-15 15:52:57 +08:00
|
|
|
}
|
|
|
|
|
2015-12-29 11:03:14 +08:00
|
|
|
&-last-month-cell &-date,
|
|
|
|
&-next-month-btn-day &-date {
|
|
|
|
color: #ccc;
|
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-selected-day &-date {
|
2015-07-06 10:36:58 +08:00
|
|
|
background: @primary-color;
|
2015-06-09 15:21:44 +08:00
|
|
|
color: #fff;
|
2015-07-06 11:20:30 +08:00
|
|
|
border: 1px solid transparent;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&:hover {
|
2015-07-06 10:36:58 +08:00
|
|
|
background: @primary-color;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
2015-06-10 20:25:19 +08:00
|
|
|
padding: 0 15px;
|
2015-12-25 14:52:41 +08:00
|
|
|
height: 38px;
|
|
|
|
line-height: 38px;
|
2015-12-02 14:00:41 +08:00
|
|
|
border-top: 1px solid @border-color-split;
|
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-12-25 14:52:41 +08:00
|
|
|
line-height: 38px;
|
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-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-today-btn,
|
|
|
|
.@{calendar-prefix-cls}-clear-btn {
|
2015-06-09 15:21:44 +08:00
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
2015-10-28 19:48:32 +08:00
|
|
|
margin: 0 0 0 8px;
|
2015-11-27 17:27:20 +08:00
|
|
|
&-disabled {
|
|
|
|
color: #ccc;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
2015-06-11 18:08:00 +08:00
|
|
|
|
2015-10-29 18:19:30 +08:00
|
|
|
.@{calendar-prefix-cls}-clear-btn {
|
|
|
|
position: absolute;
|
2015-11-24 17:43:58 +08:00
|
|
|
right: 5px;
|
2015-10-31 15:15:55 +08:00
|
|
|
text-indent: -76px;
|
2015-10-29 18:19:30 +08:00
|
|
|
overflow: hidden;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 20px;
|
2015-12-25 01:21:03 +08:00
|
|
|
top: 7px;
|
2015-10-29 18:19:30 +08:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{calendar-prefix-cls}-clear-btn:after {
|
2015-11-14 14:09:08 +08:00
|
|
|
content: "\e631";
|
2015-10-29 18:19:30 +08:00
|
|
|
font-family: "anticon";
|
|
|
|
font-size: 12px;
|
2015-11-14 14:09:08 +08:00
|
|
|
color: #ccc;
|
2015-10-29 18:19:30 +08:00
|
|
|
display: inline-block;
|
|
|
|
line-height: 1;
|
|
|
|
width: 20px;
|
|
|
|
text-indent: 43px;
|
|
|
|
transition: color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{calendar-prefix-cls}-clear-btn:hover:after {
|
2015-11-14 14:09:08 +08:00
|
|
|
color: #999;
|
2015-10-29 18:19:30 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-ok-btn {
|
2015-06-11 18:08:00 +08:00
|
|
|
.btn;
|
|
|
|
.btn-primary;
|
2016-01-21 17:12:25 +08:00
|
|
|
.button-size(@btn-padding-sm; @font-size-base; @border-radius-sm);
|
2015-06-11 18:08:00 +08:00
|
|
|
position: absolute;
|
2016-02-18 21:13:13 +08:00
|
|
|
bottom: 8px;
|
2015-06-11 18:08:00 +08:00
|
|
|
right: 9px;
|
2016-02-19 16:22:20 +08:00
|
|
|
|
|
|
|
&-disabled {
|
2016-02-19 16:37:48 +08:00
|
|
|
.button-color(@btn-disable-color; @btn-disable-bg; @btn-disable-border);
|
2016-02-19 16:22:20 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2015-06-11 18:08:00 +08:00
|
|
|
}
|
2015-06-09 17:54:19 +08:00
|
|
|
}
|