mirror of
https://github.com/vercel/commerce.git
synced 2025-07-30 13:41:22 +00:00
✨ feat: Scroll To Top
This commit is contained in:
24
src/components/common/ScrollToTop/ScrollToTop.module.scss
Normal file
24
src/components/common/ScrollToTop/ScrollToTop.module.scss
Normal file
@@ -0,0 +1,24 @@
|
||||
@import '../../../styles/utilities';
|
||||
|
||||
.scrollToTop {
|
||||
@apply hidden;
|
||||
|
||||
@screen md {
|
||||
&.show {
|
||||
@apply block rounded-lg fixed cursor-pointer;
|
||||
right: 11.2rem;
|
||||
bottom: 21.6rem;
|
||||
width: 6.4rem;
|
||||
height: 6.4rem;
|
||||
background-color: var(--border-line);
|
||||
}
|
||||
|
||||
&.hide {
|
||||
@apply hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.scrollToTopBtn {
|
||||
@apply outline-none w-full h-full;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user