Skip to content

Commit

Permalink
fix: styles floating button
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 5, 2022
1 parent 1b8afc3 commit 2a324d5
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions src/components/FloatingButton/FloatingButton.module.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.floating {
position: absolute;
right: 40px;
bottom: 40px;
position: fixed;
right: 15px;
bottom: 15px;
z-index: 10;
width: 64px;
height: 64px;
width: 54px;
height: 54px;
background: var(--orange);
border-radius: 20px;
border-radius: 15px;
display: flex;
-webkit-box-pack: center;
justify-content: center;
Expand All @@ -19,3 +19,27 @@
transition: 0.4s;
}
}

@media screen and (min-width: 839px) {
.floating {
position: fixed;
right: 40px;
bottom: 40px;
z-index: 10;
width: 64px;
height: 64px;
background: var(--orange);
border-radius: 20px;
display: flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
transition: background-color 0.2s ease 0s;

&:hover {
filter: brightness(0.8);
transition: 0.4s;
}
}
}

0 comments on commit 2a324d5

Please sign in to comment.