Adjust sides offset for Switcher and Viewer buttons

This commit is contained in:
2022-06-14 13:23:10 +02:00
parent 2831600f57
commit 3270ad70f0
2 changed files with 6 additions and 7 deletions

View File

@@ -9,10 +9,9 @@
pointer-events: none; pointer-events: none;
@include bp (sm) { @include bp (sm) {
--offset: 20px; --offset: clamp(20px, 3vw, 40px);
} }
@include bp (md) { @include bp (md) {
--offset: 40px;
--button-size: 56px; --button-size: 56px;
} }

View File

@@ -424,14 +424,14 @@
// Close button // Close button
&__close { &__close {
--offset: 16px;
position: fixed !important; position: fixed !important;
z-index: 2; z-index: 2;
top: 16px; top: var(--offset);
right: calc(16px + 44px + 12px); right: var(--offset);
@include bp (md) { @include bp (sm) {
top: 40px; --offset: clamp(20px, 3vw, 40px);
right: 40px;
} }
svg { svg {