2019-07-04 23:36:32 +08:00
|
|
|
.calendarLeftArrow() {
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
display: inline-block;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0 solid #aaa;
|
|
|
|
border-width: 1.5px 0 0 1.5px;
|
|
|
|
border-radius: 1px;
|
2019-07-31 11:44:46 +08:00
|
|
|
transform: rotate(-45deg) scale(0.8);
|
|
|
|
transition: all 0.3s;
|
2019-07-04 23:36:32 +08:00
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover::before,
|
|
|
|
&:hover::after {
|
|
|
|
border-color: @text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.calendarLeftDoubleArrow() {
|
|
|
|
.calendarLeftArrow;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: relative;
|
|
|
|
left: -3px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.calendarRightArrow() {
|
|
|
|
.calendarLeftArrow;
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
2019-07-31 11:44:46 +08:00
|
|
|
transform: rotate(135deg) scale(0.8);
|
2019-07-04 23:36:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.calendarRightDoubleArrow() {
|
|
|
|
.calendarRightArrow;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: relative;
|
|
|
|
left: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.calendarPanelHeader(@calendar-prefix-cls) {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: 40px;
|
|
|
|
line-height: 40px;
|
2015-06-12 15:39:01 +08:00
|
|
|
text-align: center;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
2019-02-15 10:48:07 +08:00
|
|
|
user-select: none;
|
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 {
|
2015-06-12 15:39:01 +08:00
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: 0 2px;
|
2017-09-27 22:32:49 +08:00
|
|
|
color: @heading-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-weight: 500;
|
2017-09-27 22:32:49 +08:00
|
|
|
line-height: 40px;
|
2015-06-12 15:39:01 +08:00
|
|
|
}
|
|
|
|
|
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;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: inline-block;
|
2015-06-12 15:39:01 +08:00
|
|
|
padding: 0 5px;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @text-color-secondary;
|
2015-06-12 15:39:01 +08:00
|
|
|
font-size: 16px;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif;
|
2017-09-27 22:32:49 +08:00
|
|
|
line-height: 40px;
|
2015-06-12 15:39:01 +08:00
|
|
|
}
|
|
|
|
|
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;
|
2019-07-04 23:36:32 +08:00
|
|
|
.calendarLeftDoubleArrow;
|
2015-06-12 15:39:01 +08:00
|
|
|
}
|
|
|
|
|
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;
|
2019-07-04 23:36:32 +08:00
|
|
|
.calendarRightDoubleArrow;
|
2015-06-12 15:39:01 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-prev-month-btn {
|
2015-06-12 15:39:01 +08:00
|
|
|
left: 29px;
|
2019-07-04 23:36:32 +08:00
|
|
|
.calendarLeftArrow;
|
2015-06-12 15:39:01 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-next-month-btn {
|
2015-06-12 15:39:01 +08:00
|
|
|
right: 29px;
|
2019-07-04 23:36:32 +08:00
|
|
|
.calendarRightArrow;
|
2015-06-12 15:39:01 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-30 17:10:49 +08:00
|
|
|
.calendar-selected-cell() {
|
|
|
|
.@{calendar-prefix-cls}-date {
|
|
|
|
color: @text-color-inverse;
|
|
|
|
background: @primary-color;
|
|
|
|
border: @border-width-base @border-style-base transparent;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls} {
|
2015-06-09 15:21:44 +08:00
|
|
|
position: relative;
|
2017-09-27 22:32:49 +08:00
|
|
|
width: 280px;
|
2015-06-10 20:25:19 +08:00
|
|
|
font-size: @font-size-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: @line-height-base;
|
2015-06-09 15:21:44 +08:00
|
|
|
text-align: left;
|
2019-02-15 10:48:07 +08:00
|
|
|
list-style: none;
|
2019-11-28 21:43:54 +08:00
|
|
|
background-color: @calendar-bg;
|
2019-02-15 10:48:07 +08:00
|
|
|
background-clip: padding-box;
|
2019-11-26 21:11:24 +08:00
|
|
|
border: @border-width-base @border-style-base @calendar-border-color;
|
2015-06-10 20:25:19 +08:00
|
|
|
border-radius: @border-radius-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
outline: none;
|
2015-12-02 11:53:37 +08:00
|
|
|
box-shadow: @box-shadow-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;
|
2017-09-27 22:32:49 +08:00
|
|
|
padding: 6px @control-padding-horizontal - 2px;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
2015-10-20 16:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-input {
|
|
|
|
width: 100%;
|
2015-12-25 01:21:03 +08:00
|
|
|
height: 22px;
|
2017-03-03 10:46:51 +08:00
|
|
|
color: @input-color;
|
2019-11-28 21:43:54 +08:00
|
|
|
background: @calendar-input-bg;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
cursor: auto;
|
2017-08-03 21:56:43 +08:00
|
|
|
.placeholder;
|
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
|
|
|
}
|
|
|
|
|
2016-07-18 16:44:30 +08:00
|
|
|
&-body {
|
2017-09-27 22:32:49 +08:00
|
|
|
padding: 8px 12px;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
2019-02-15 10:48:07 +08:00
|
|
|
width: 100%;
|
2015-06-09 15:21:44 +08:00
|
|
|
max-width: 100%;
|
|
|
|
background-color: transparent;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-collapse: collapse;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
table,
|
|
|
|
th,
|
|
|
|
td {
|
2017-09-27 22:32:49 +08:00
|
|
|
text-align: center;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-calendar-table {
|
|
|
|
margin-bottom: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-spacing: 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-column-header {
|
|
|
|
width: 33px;
|
|
|
|
padding: 6px 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: 18px;
|
2015-06-09 15:21:44 +08:00
|
|
|
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 {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: 30px;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: 3px 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-date {
|
|
|
|
display: block;
|
2017-09-27 22:32:49 +08:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 0 auto;
|
2015-06-09 15:21:44 +08:00
|
|
|
padding: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @text-color;
|
|
|
|
line-height: 22px;
|
2015-06-09 15:21:44 +08:00
|
|
|
text-align: center;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: transparent;
|
|
|
|
border: @border-width-base @border-style-base transparent;
|
2019-11-15 10:01:35 +08:00
|
|
|
border-radius: @border-radius-base;
|
2015-10-29 19:01:10 +08:00
|
|
|
transition: background 0.3s ease;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
2016-07-18 16:44:30 +08:00
|
|
|
&-panel {
|
|
|
|
position: relative;
|
2019-01-03 11:52:31 +08:00
|
|
|
outline: none;
|
2016-07-18 16:44:30 +08:00
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&:hover {
|
2017-05-03 22:57:14 +08:00
|
|
|
background: @item-hover-bg;
|
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 {
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @text-color-inverse;
|
2017-01-01 22:20:06 +08:00
|
|
|
background: @primary-5;
|
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
|
|
|
color: @primary-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-weight: bold;
|
|
|
|
border-color: @primary-color;
|
2015-06-15 15:52:57 +08:00
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-selected-day &-date {
|
2019-07-30 17:10:49 +08:00
|
|
|
background: @primary-2;
|
2018-07-02 10:44:55 +08:00
|
|
|
}
|
|
|
|
|
2019-07-30 17:10:49 +08:00
|
|
|
&-last-month-cell &-date,
|
|
|
|
&-next-month-btn-day &-date {
|
2019-07-31 11:44:46 +08:00
|
|
|
&,
|
|
|
|
&:hover {
|
|
|
|
color: @disabled-color;
|
|
|
|
background: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-disabled-cell &-date {
|
2019-03-24 19:50:58 +08:00
|
|
|
position: relative;
|
2019-02-15 10:48:07 +08:00
|
|
|
width: auto;
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @disabled-color;
|
2017-04-29 04:04:41 +08:00
|
|
|
background: @disabled-bg;
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base transparent;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-radius: 0;
|
|
|
|
cursor: not-allowed;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&:hover {
|
2017-04-29 04:04:41 +08:00
|
|
|
background: @disabled-bg;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
}
|
2019-03-24 19:50:58 +08:00
|
|
|
|
|
|
|
&-disabled-cell&-selected-day &-date::before {
|
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
left: 5px;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
background: rgba(0, 0, 0, 0.1);
|
2019-11-15 10:01:35 +08:00
|
|
|
border-radius: @border-radius-base;
|
2019-03-24 19:50:58 +08:00
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
2017-06-19 15:14:53 +08:00
|
|
|
&-disabled-cell&-today &-date {
|
|
|
|
position: relative;
|
2018-11-25 02:30:54 +08:00
|
|
|
padding-right: 5px;
|
2017-06-19 15:14:53 +08:00
|
|
|
padding-left: 5px;
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2017-06-19 15:14:53 +08:00
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
left: 5px;
|
2017-09-27 22:32:49 +08:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2018-12-04 13:11:31 +08:00
|
|
|
border: @border-width-base @border-style-base @disabled-color;
|
2019-11-15 10:01:35 +08:00
|
|
|
border-radius: @border-radius-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
content: ' ';
|
2017-06-19 15:14:53 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&-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;
|
|
|
|
}
|
|
|
|
|
2017-06-05 17:11:58 +08:00
|
|
|
&-footer {
|
|
|
|
padding: 0 12px;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: 38px;
|
|
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
2017-06-13 15:31:47 +08:00
|
|
|
&:empty {
|
|
|
|
border-top: 0;
|
|
|
|
}
|
2017-06-05 17:11:58 +08:00
|
|
|
&-btn {
|
|
|
|
display: block;
|
2019-02-15 10:48:07 +08:00
|
|
|
text-align: center;
|
2017-06-05 17:11:58 +08:00
|
|
|
}
|
2018-09-02 21:45:27 +08:00
|
|
|
&-extra {
|
|
|
|
text-align: left;
|
2017-06-05 17:11:58 +08:00
|
|
|
}
|
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;
|
2015-10-28 19:48:32 +08:00
|
|
|
margin: 0 0 0 8px;
|
2019-02-15 10:48:07 +08:00
|
|
|
text-align: center;
|
2015-11-27 17:27:20 +08:00
|
|
|
&-disabled {
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2015-11-27 17:27:20 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2017-06-05 17:11:58 +08:00
|
|
|
&:only-child {
|
|
|
|
margin: 0;
|
|
|
|
}
|
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;
|
2019-02-15 10:48:07 +08:00
|
|
|
top: 7px;
|
2015-11-24 17:43:58 +08:00
|
|
|
right: 5px;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: none;
|
2015-10-29 18:19:30 +08:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
overflow: hidden;
|
|
|
|
line-height: 20px;
|
|
|
|
text-align: center;
|
|
|
|
text-indent: -76px;
|
2015-10-29 18:19:30 +08:00
|
|
|
}
|
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
.@{calendar-prefix-cls}-clear-btn::after {
|
2015-10-29 18:19:30 +08:00
|
|
|
display: inline-block;
|
|
|
|
width: 20px;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @disabled-color;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
line-height: 1;
|
2015-10-29 18:19:30 +08:00
|
|
|
text-indent: 43px;
|
|
|
|
transition: color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
.@{calendar-prefix-cls}-clear-btn:hover::after {
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
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;
|
2017-04-16 19:01:46 +08:00
|
|
|
.button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; @border-radius-base);
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2017-08-16 15:38:12 +08:00
|
|
|
line-height: @btn-height-sm - 2px;
|
2016-02-19 16:22:20 +08:00
|
|
|
|
2019-01-06 13:25:59 +08:00
|
|
|
.button-disabled();
|
2015-06-11 18:08:00 +08:00
|
|
|
}
|
2015-06-09 17:54:19 +08:00
|
|
|
}
|