fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
68 lines
1.5 KiB
CSS
68 lines
1.5 KiB
CSS
.backToTopButton {
|
|
border-radius: var(--Corner-radius-rounded);
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--Space-x05);
|
|
|
|
padding: var(--Space-x1);
|
|
width: max-content;
|
|
background-color: var(--Component-Button-Brand-Secondary-Fill-Inverted);
|
|
color: var(--Component-Button-Brand-Secondary-On-fill-Default);
|
|
border: 2px solid var(--Component-Button-Brand-Secondary-Border-Default);
|
|
box-shadow: 0px 0px 8px 3px rgba(0, 0, 0, 0.1);
|
|
position: sticky;
|
|
bottom: var(--Space-x2);
|
|
|
|
@media (hover: hover) {
|
|
&:hover {
|
|
background-color: var(
|
|
--Component-Button-Brand-Secondary-Fill-Hover-Inverted
|
|
);
|
|
color: var(--Component-Button-Brand-Secondary-On-fill-Inverted);
|
|
}
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 2px solid var(--Border-Interactive-Focus);
|
|
outline-offset: 2px;
|
|
|
|
/* This button is able to be on top of dark background colors,
|
|
so we need to create an illusion that it also has an inverted border on focus */
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -4px;
|
|
border: 2px solid var(--Border-Inverted);
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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);
|
|
}
|
|
}
|