ant-design-vue/components/vc-calendar/assets/index/MonthPanel.less

144 lines
2.3 KiB
Plaintext
Raw Normal View History

2018-03-10 14:10:13 +00:00
.@{prefixClass}-month-panel {
left: 0;
2019-02-13 14:12:00 +00:00
top: 0;
2018-03-10 14:10:13 +00:00
bottom: 0;
right: 0;
background: #ffffff;
z-index: 10;
position: absolute;
outline: none;
2019-01-23 14:47:44 +00:00
> div {
height: 100%;
display: flex;
flex-direction: column;
}
2018-03-10 14:10:13 +00:00
}
.@{prefixClass}-month-panel-hidden {
display: none;
}
.@{prefixClass}-month-panel-header {
padding: 0 10px;
height: 34px;
line-height: 30px;
position: relative;
text-align: center;
user-select: none;
-webkit-user-select: none;
border-bottom: 1px solid #ccc;
> a {
font-weight: bold;
display: inline-block;
padding: 4px 5px;
text-align: center;
width: 30px;
&:hover {
cursor: pointer;
color: #23c0fa;
}
}
}
2019-02-13 14:12:00 +00:00
.@{prefixClass}-month-panel-prev-year-btn,
.@{prefixClass}-month-panel-next-year-btn {
2018-03-10 14:10:13 +00:00
position: absolute;
top: 0;
}
.@{prefixClass}-month-panel-next-year-btn {
&:after {
2019-02-13 14:12:00 +00:00
content: '»';
2018-03-10 14:10:13 +00:00
}
}
.@{prefixClass}-month-panel-prev-year-btn {
user-select: none;
left: 0;
&:after {
2019-02-13 14:12:00 +00:00
content: '«';
2018-03-10 14:10:13 +00:00
}
}
.@{prefixClass}-month-panel .@{prefixClass}-month-panel-year-select {
width: 180px;
}
.@{prefixClass}-month-panel-year-select-arrow {
display: none;
}
.@{prefixClass}-month-panel-next-year-btn {
user-select: none;
right: 0;
}
.@{prefixClass}-month-panel-body {
2019-01-23 14:47:44 +00:00
flex: 1;
2018-03-10 14:10:13 +00:00
padding: 9px 10px 10px;
2019-01-23 14:47:44 +00:00
}
.@{prefixClass}-month-panel-footer {
border-top: 1px solid #ccc;
line-height: 38px;
2018-03-10 14:10:13 +00:00
}
.@{prefixClass}-month-panel-table {
table-layout: fixed;
width: 100%;
height: 100%;
border-collapse: separate;
}
.@{prefixClass}-month-panel-cell {
text-align: center;
.@{prefixClass}-month-panel-month {
display: block;
width: 46px;
margin: 0 auto;
color: #666;
border-radius: 4px 4px;
height: 36px;
padding: 0;
background: transparent;
line-height: 36px;
text-align: center;
&:hover {
background: #ebfaff;
cursor: pointer;
}
}
2019-02-13 14:12:00 +00:00
&-disabled {
2018-03-10 14:10:13 +00:00
.@{prefixClass}-month-panel-month {
color: #bfbfbf;
&:hover {
background: white;
cursor: not-allowed;
}
}
}
}
.@{prefixClass}-month-panel-selected-cell .@{prefixClass}-month-panel-month {
background: #3fc7fa;
color: #fff;
&:hover {
background: #3fc7fa;
color: #fff;
}
}
.@{prefixClass}-month-header-wrap {
position: relative;
height: 308px;
2019-02-13 14:12:00 +00:00
}