2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-scrolltop {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 20px;
|
|
|
|
right: 20px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-03-12 10:07:36 +00:00
|
|
|
background: ${dt('scrolltop.background')};
|
|
|
|
color: ${dt('scrolltop.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop:hover {
|
2024-03-12 10:07:36 +00:00
|
|
|
background: ${dt('scrolltop.hover.background')};
|
|
|
|
color: ${dt('scrolltop.hover.text')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop-icon {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop-sticky {
|
|
|
|
position: sticky;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop-sticky {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop-enter-from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop-enter-active {
|
|
|
|
transition: opacity 0.15s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop.p-scrolltop-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop-leave-active {
|
|
|
|
transition: opacity 0.15s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrolltop {
|
|
|
|
width: 3rem;
|
|
|
|
height: 3rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|