ant-design/style/components/datepicker/MonthPanel.less
2015-07-06 15:12:19 +08:00

57 lines
1.0 KiB
Plaintext

.@{prefixCalendarClass}-month-panel {
left: 0px;
top: 0px;
bottom: 0px;
right: 0px;
background: #fff;
z-index: 10;
position: absolute;
outline: none;
}
.@{prefixCalendarClass}-month-panel-hidden {
display: none;
}
.@{prefixCalendarClass}-month-panel-header {
.calendarPanelHeader(~"@{prefixCalendarClass}-month-panel");
}
.@{prefixCalendarClass}-month-panel-table {
table-layout: fixed;
width: 100%;
height: 248px;
border-collapse: separate;
}
.@{prefixCalendarClass}-month-panel-cell {
text-align: center;
}
.@{prefixCalendarClass}-month-panel-month {
display: inline-block;
margin: 0 auto;
color: #666;
background: transparent;
text-align: center;
height: 24px;
line-height: 24px;
padding: 0px 6px;
border-radius: 4px;
&:hover {
background: tint(@primary-color, 90%);
cursor: pointer;
}
}
.@{prefixCalendarClass}-month-panel-selected-cell .@{prefixCalendarClass}-month-panel-month {
background: @primary-color;
color: #fff;
&:hover {
background: @primary-color;
color: #fff;
}
}