mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
8b1da1a1f8
* fix: hidden BackTop still effect layout, such as cursor * Revert "fix: hidden BackTop still effect layout, such as cursor" This reverts commit 9000e15a2dbbcf6cf8566b11a9f829737ca33ef3. * perf: use :empty CSS pseudo-class
50 lines
824 B
Plaintext
50 lines
824 B
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
|
|
@backtop-prefix-cls: ~'@{ant-prefix}-back-top';
|
|
|
|
.@{backtop-prefix-cls} {
|
|
.reset-component;
|
|
|
|
position: fixed;
|
|
right: 100px;
|
|
bottom: 50px;
|
|
z-index: @zindex-back-top;
|
|
width: 40px;
|
|
height: 40px;
|
|
cursor: pointer;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
&-rtl {
|
|
right: auto;
|
|
left: 100px;
|
|
direction: rtl;
|
|
}
|
|
|
|
&-content {
|
|
width: 40px;
|
|
height: 40px;
|
|
overflow: hidden;
|
|
color: @back-top-color;
|
|
text-align: center;
|
|
background-color: @back-top-bg;
|
|
border-radius: 20px;
|
|
transition: all 0.3s @ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: @back-top-hover-bg;
|
|
transition: all 0.3s @ease-in-out;
|
|
}
|
|
}
|
|
|
|
&-icon {
|
|
font-size: 24px;
|
|
line-height: 40px;
|
|
}
|
|
}
|
|
|
|
@import './responsive';
|