ant-design/style/components/datepicker/YearPanel.less

75 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-year-panel {
left: 0;
top: 0;
bottom: 0;
right: 0;
2015-07-08 15:18:28 +08:00
background: #fff;
2015-06-09 15:21:44 +08:00
z-index: 10;
position: absolute;
outline: none;
}
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 {
.calendarPanelHeader(~"@{calendar-prefix-cls}-year-panel");
2015-06-09 15:21:44 +08:00
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-year-panel-table {
2015-06-09 15:21:44 +08:00
table-layout: fixed;
width: 100%;
2015-06-12 15:39:01 +08:00
height: 248px;
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;
2015-06-09 15:21:44 +08:00
margin: 0 auto;
color: #666;
background: transparent;
text-align: center;
2015-06-12 15:39:01 +08:00
height: 24px;
line-height: 24px;
2015-08-20 16:55:42 +08:00
padding: 0 6px;
2015-06-12 15:39:01 +08:00
border-radius: 4px;
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;
}
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-year-panel-selected-cell .@{calendar-prefix-cls}-year-panel-year {
2015-07-06 10:36:58 +08:00
background: @primary-color;
2015-06-09 15:21:44 +08:00
color: #fff;
&:hover {
2015-07-06 10:36:58 +08:00
background: @primary-color;
2015-06-09 15:21:44 +08:00
color: #fff;
}
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-year-panel-last-decade-cell, .@{calendar-prefix-cls}-year-panel-next-decade-cell {
.@{calendar-prefix-cls}-year-panel-year{
2015-06-09 15:21:44 +08:00
user-select: none;
-webkit-user-select: none;
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-year-panel-year:before {
2015-06-12 15:39:01 +08:00
content: "\e611";
font-family: "anticon" !important;
2015-06-09 15:21:44 +08:00
}
}
2015-08-20 16:55:42 +08:00
.@{calendar-prefix-cls}-year-panel-last-decade-cell {
.@{calendar-prefix-cls}-year-panel-year {
2015-06-09 15:21:44 +08:00
transform: rotate(180deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
}
2015-06-11 18:08:00 +08:00
}