feat(SW-2873): Move BackToTopButton to design-system * Remove dependency on i18n in BackToTopButton * Move BackToTopButton to design-system Approved-by: Hrishikesh Vaipurkar
49 lines
1013 B
CSS
49 lines
1013 B
CSS
.backToTopButton {
|
|
display: inline-flex;
|
|
padding: var(--Space-x1);
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: var(--Space-x05);
|
|
width: max-content;
|
|
color: var(--Component-Button-Brand-Secondary-On-fill-Default);
|
|
background-color: var(--Component-Button-Brand-Secondary-Fill-Inverted);
|
|
border: 2px solid var(--Component-Button-Brand-Secondary-Border-Default);
|
|
border-radius: var(--Corner-radius-Rounded);
|
|
box-shadow: 0px 0px 8px 3px rgba(0, 0, 0, 0.1);
|
|
cursor: pointer;
|
|
position: sticky;
|
|
bottom: var(--Space-x2);
|
|
|
|
&:hover {
|
|
color: var(--Component-Button-Brand-Secondary-On-fill-Inverted);
|
|
background-color: var(
|
|
--Component-Button-Brand-Secondary-Fill-Hover-Inverted
|
|
);
|
|
}
|
|
}
|
|
|
|
.left {
|
|
left: 0;
|
|
}
|
|
|
|
.right {
|
|
left: 100%;
|
|
}
|
|
|
|
.center {
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
.text {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.backToTopButton {
|
|
padding: 10px var(--Space-x2);
|
|
}
|
|
}
|