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

75 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-06-09 15:21:44 +08:00
.@{prefixCalendarClass}-year-panel {
left: 0px;
top: 0px;
bottom: 0px;
right: 0px;
background: #ffffff;
z-index: 10;
position: absolute;
outline: none;
}
.@{prefixCalendarClass}-year-panel-hidden {
display: none;
}
.@{prefixCalendarClass}-year-panel-header {
2015-06-12 15:39:01 +08:00
.calendarPanelHeader(~"@{prefixCalendarClass}-year-panel");
2015-06-09 15:21:44 +08:00
}
.@{prefixCalendarClass}-year-panel-table {
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;
}
.@{prefixCalendarClass}-year-panel-cell {
text-align: center;
}
.@{prefixCalendarClass}-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;
padding: 0px 6px;
border-radius: 4px;
2015-06-09 15:21:44 +08:00
&:hover {
2015-06-17 21:20:43 +08:00
background: fadeout(#2db7f5, 90%);
2015-06-09 15:21:44 +08:00
cursor: pointer;
}
}
.@{prefixCalendarClass}-year-panel-selected-cell .@{prefixCalendarClass}-year-panel-year {
2015-06-17 21:20:43 +08:00
background: #2db7f5;
2015-06-09 15:21:44 +08:00
color: #fff;
&:hover {
2015-06-17 21:20:43 +08:00
background: #2db7f5;
2015-06-09 15:21:44 +08:00
color: #fff;
}
}
.@{prefixCalendarClass}-year-panel-last-decade-cell, .@{prefixCalendarClass}-year-panel-next-decade-cell {
.@{prefixCalendarClass}-year-panel-year{
user-select: none;
-webkit-user-select: none;
}
.@{prefixCalendarClass}-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
}
}
.@{prefixCalendarClass}-year-panel-last-decade-cell {
.@{prefixCalendarClass}-year-panel-year {
transform: rotate(180deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
}
2015-06-11 18:08:00 +08:00
}