mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
💄 change another arrow style
This commit is contained in:
parent
a1298463be
commit
6498cbb283
@ -1,3 +1,64 @@
|
||||
.calendarLeftArrow() {
|
||||
height: 100%;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
vertical-align: middle;
|
||||
border: 0 solid #aaa;
|
||||
border-width: 1.5px 0 0 1.5px;
|
||||
border-radius: 1px;
|
||||
transform: rotate(-45deg) scale(.8);
|
||||
transition: all .3s;
|
||||
content: '';
|
||||
}
|
||||
|
||||
&:hover::before,
|
||||
&:hover::after {
|
||||
border-color: @text-color;
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.calendarLeftDoubleArrow() {
|
||||
.calendarLeftArrow;
|
||||
|
||||
&::after {
|
||||
position: relative;
|
||||
left: -3px;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.calendarRightArrow() {
|
||||
.calendarLeftArrow;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
transform: rotate(135deg) scale(.8);
|
||||
}
|
||||
}
|
||||
|
||||
.calendarRightDoubleArrow() {
|
||||
.calendarRightArrow;
|
||||
|
||||
&::before {
|
||||
position: relative;
|
||||
left: 3px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.calendarPanelHeader(@calendar-prefix-cls) {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
@ -49,36 +110,24 @@
|
||||
.@{calendar-prefix-cls}-prev-decade-btn,
|
||||
.@{calendar-prefix-cls}-prev-year-btn {
|
||||
left: 7px;
|
||||
|
||||
&::after {
|
||||
content: '«';
|
||||
}
|
||||
.calendarLeftDoubleArrow;
|
||||
}
|
||||
|
||||
.@{calendar-prefix-cls}-next-century-btn,
|
||||
.@{calendar-prefix-cls}-next-decade-btn,
|
||||
.@{calendar-prefix-cls}-next-year-btn {
|
||||
right: 7px;
|
||||
|
||||
&::after {
|
||||
content: '»';
|
||||
}
|
||||
.calendarRightDoubleArrow;
|
||||
}
|
||||
|
||||
.@{calendar-prefix-cls}-prev-month-btn {
|
||||
left: 29px;
|
||||
|
||||
&::after {
|
||||
content: '‹';
|
||||
}
|
||||
.calendarLeftArrow;
|
||||
}
|
||||
|
||||
.@{calendar-prefix-cls}-next-month-btn {
|
||||
right: 29px;
|
||||
|
||||
&::after {
|
||||
content: '›';
|
||||
}
|
||||
.calendarRightArrow;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,11 +96,10 @@
|
||||
.@{calendar-prefix-cls}-input,
|
||||
.@{calendar-timepicker-prefix-cls}-input {
|
||||
.input;
|
||||
|
||||
height: @input-height-sm;
|
||||
line-height: @input-height-sm;
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
line-height: @input-height-sm;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user