1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +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 {
position: fixed;
bottom: 0;
right: 50%;
transform: translate($content_width / 2 + $bar_height + $gap, 0);
left: 50%;
transform: translate($content_width / 2 + $gap, 0);
z-index: 4;
&:hover {
@ -14,8 +14,8 @@
}
@media (max-width: $content_width + ($bar_height + $gap) * 2) {
right: 0;
transform: translate(0, 0);
left: 100%;
transform: translate(-$bar_height, 0);
}
}