ant-design/components/date-picker/style/DecadePanel.less

81 lines
1.7 KiB
Plaintext
Raw Normal View History

2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-decade-panel {
position: absolute;
2015-08-20 16:55:42 +08:00
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: @zindex-picker-panel;
display: flex;
flex-direction: column;
background: @component-background;
border-radius: @border-radius-base;
outline: none;
2015-06-09 15:21:44 +08:00
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-decade-panel-hidden {
2015-06-09 15:21:44 +08:00
display: none;
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-decade-panel-header {
2018-12-07 20:02:01 +08:00
.calendarPanelHeader(~'@{calendar-prefix-cls}-decade-panel');
2015-06-09 15:21:44 +08:00
}
.@{calendar-prefix-cls}-decade-panel-body {
flex: 1;
}
.@{calendar-prefix-cls}-decade-panel-footer {
border-top: @border-width-base @border-style-base @border-color-split;
.@{calendar-prefix-cls}-footer-extra {
padding: 0 12px;
}
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-decade-panel-table {
2015-06-09 15:21:44 +08:00
width: 100%;
height: 100%;
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}-decade-panel-cell {
white-space: nowrap;
text-align: center;
2015-06-09 15:21:44 +08:00
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-decade-panel-decade {
2015-06-12 15:49:06 +08:00
display: inline-block;
height: 24px;
2015-06-09 15:21:44 +08:00
margin: 0 auto;
padding: 0 6px;
2016-11-08 20:50:59 +08:00
color: @text-color;
2015-06-12 15:49:06 +08:00
line-height: 24px;
text-align: center;
background: transparent;
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 {
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}-decade-panel-selected-cell .@{calendar-prefix-cls}-decade-panel-decade {
color: @text-color-inverse;
background: @primary-color;
2015-06-09 15:21:44 +08:00
&:hover {
color: @text-color-inverse;
background: @primary-color;
2015-06-09 15:21:44 +08:00
}
}
2015-11-26 19:32:55 +08:00
.@{calendar-prefix-cls}-decade-panel-last-century-cell,
.@{calendar-prefix-cls}-decade-panel-next-century-cell {
.@{calendar-prefix-cls}-decade-panel-decade {
2017-01-12 10:35:17 +08:00
color: @disabled-color;
user-select: none;
2015-11-13 14:58:49 +08:00
}
2015-06-11 18:08:00 +08:00
}