2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel {
|
2017-04-06 18:44:11 +08:00
|
|
|
position: absolute;
|
2016-09-09 13:55:21 +08:00
|
|
|
top: 1px;
|
2015-08-20 16:55:42 +08:00
|
|
|
right: 0;
|
2017-04-06 18:44:11 +08:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2019-01-06 13:25:59 +08:00
|
|
|
z-index: @zindex-picker-panel;
|
2017-04-06 18:44:11 +08:00
|
|
|
background: @component-background;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-radius: @border-radius-base;
|
2017-04-06 18:44:11 +08:00
|
|
|
outline: none;
|
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
> div {
|
2018-12-24 13:28:13 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-02-15 10:48:07 +08:00
|
|
|
// TODO: this is a useless wrapper, and we need to remove it in rc-calendar
|
|
|
|
height: 100%;
|
2017-04-06 18:44:11 +08:00
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-hidden {
|
2015-06-09 15:21:44 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-header {
|
2018-12-07 20:02:01 +08:00
|
|
|
.calendarPanelHeader(~'@{calendar-prefix-cls}-year-panel');
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2017-04-06 18:44:11 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-body {
|
2018-12-24 13:28:13 +08:00
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{calendar-prefix-cls}-year-panel-footer {
|
|
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
|
|
|
.@{calendar-prefix-cls}-footer-extra {
|
|
|
|
padding: 0 12px;
|
|
|
|
}
|
2017-04-06 18:44:11 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-table {
|
2015-06-09 15:21:44 +08:00
|
|
|
width: 100%;
|
2017-04-06 18:44:11 +08:00
|
|
|
height: 100%;
|
2019-02-15 10:48:07 +08:00
|
|
|
table-layout: fixed;
|
2015-06-09 15:21:44 +08:00
|
|
|
border-collapse: separate;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-cell {
|
2015-06-09 15:21:44 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-year {
|
2015-06-12 15:39:01 +08:00
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
height: 24px;
|
2015-06-09 15:21:44 +08:00
|
|
|
margin: 0 auto;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: 0 8px;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2015-06-12 15:39:01 +08:00
|
|
|
line-height: 24px;
|
2019-02-15 10:48:07 +08:00
|
|
|
text-align: center;
|
|
|
|
background: transparent;
|
2017-09-27 22:32:49 +08:00
|
|
|
border-radius: @border-radius-sm;
|
2015-10-29 19:01:10 +08:00
|
|
|
transition: background 0.3s ease;
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-selected-cell .@{calendar-prefix-cls}-year-panel-year {
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @text-color-inverse;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: @primary-color;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&:hover {
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @text-color-inverse;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: @primary-color;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{calendar-prefix-cls}-year-panel-last-decade-cell,
|
|
|
|
.@{calendar-prefix-cls}-year-panel-next-decade-cell {
|
|
|
|
.@{calendar-prefix-cls}-year-panel-year {
|
2017-01-12 10:35:17 +08:00
|
|
|
color: @disabled-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
user-select: none;
|
2015-11-13 14:58:49 +08:00
|
|
|
}
|
2015-06-11 18:08:00 +08:00
|
|
|
}
|