mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
#23 fixed submit button position on scroll appears
This commit is contained in:
parent
ede5dfe17f
commit
3231747b4a
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue