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

81 lines
1.7 KiB
Plaintext
Raw Normal View History

2018-03-15 13:40:34 +00:00
.@{calendar-prefix-cls}-decade-panel {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
2019-03-30 08:06:06 +00:00
z-index: @zindex-picker-panel;
display: flex;
flex-direction: column;
2018-03-15 13:40:34 +00:00
background: @component-background;
border-radius: @border-radius-base;
outline: none;
}
.@{calendar-prefix-cls}-decade-panel-hidden {
display: none;
}
.@{calendar-prefix-cls}-decade-panel-header {
2019-01-02 13:01:56 +00:00
.calendarPanelHeader(~'@{calendar-prefix-cls}-decade-panel');
2018-03-15 13:40:34 +00:00
}
.@{calendar-prefix-cls}-decade-panel-body {
2019-03-30 08:06:06 +00:00
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;
}
2018-03-15 13:40:34 +00:00
}
.@{calendar-prefix-cls}-decade-panel-table {
width: 100%;
height: 100%;
2019-03-30 08:06:06 +00:00
table-layout: fixed;
2018-03-15 13:40:34 +00:00
border-collapse: separate;
}
.@{calendar-prefix-cls}-decade-panel-cell {
white-space: nowrap;
2019-03-30 08:06:06 +00:00
text-align: center;
2018-03-15 13:40:34 +00:00
}
.@{calendar-prefix-cls}-decade-panel-decade {
display: inline-block;
2019-03-30 08:06:06 +00:00
height: 24px;
2018-03-15 13:40:34 +00:00
margin: 0 auto;
2019-03-30 08:06:06 +00:00
padding: 0 6px;
2018-03-15 13:40:34 +00:00
color: @text-color;
line-height: 24px;
2019-03-30 08:06:06 +00:00
text-align: center;
background: transparent;
2018-03-15 13:40:34 +00:00
border-radius: @border-radius-sm;
transition: background 0.3s ease;
&:hover {
background: @item-hover-bg;
cursor: pointer;
}
}
.@{calendar-prefix-cls}-decade-panel-selected-cell .@{calendar-prefix-cls}-decade-panel-decade {
2019-03-30 08:06:06 +00:00
color: @text-color-inverse;
2018-03-15 13:40:34 +00:00
background: @primary-color;
&:hover {
2019-03-30 08:06:06 +00:00
color: @text-color-inverse;
2018-03-15 13:40:34 +00:00
background: @primary-color;
}
}
.@{calendar-prefix-cls}-decade-panel-last-century-cell,
.@{calendar-prefix-cls}-decade-panel-next-century-cell {
.@{calendar-prefix-cls}-decade-panel-decade {
color: @disabled-color;
2019-03-30 08:06:06 +00:00
user-select: none;
2018-03-15 13:40:34 +00:00
}
}