1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

#23 fixed submit button position on scroll appears

This commit is contained in:
Fedor Katurov 2021-03-26 12:38:01 +07:00
parent ede5dfe17f
commit 3231747b4a

View file

@ -3,8 +3,8 @@
.wrap { .wrap {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 50%; left: 50%;
transform: translate($content_width / 2 + $bar_height + $gap, 0); transform: translate($content_width / 2 + $gap, 0);
z-index: 4; z-index: 4;
&:hover { &:hover {
@ -14,8 +14,8 @@
} }
@media (max-width: $content_width + ($bar_height + $gap) * 2) { @media (max-width: $content_width + ($bar_height + $gap) * 2) {
right: 0; left: 100%;
transform: translate(0, 0); transform: translate(-$bar_height, 0);
} }
} }