Skip to content

Commit

Permalink
basket handle css
Browse files Browse the repository at this point in the history
  • Loading branch information
FunixG committed Feb 14, 2024
1 parent 3025d34 commit 2e70143
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/shop/shop.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ <h2>Catégories</h2>
</div>
</div>

<div class="shop-basket-container">

<div class="shop-basket-container p-3 bg-dark rounded-start-5">
<app-shop-article-basket></app-shop-article-basket>
</div>
18 changes: 18 additions & 0 deletions src/app/pages/shop/shop.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
.shop-container {
padding-bottom: 15%;
}

.shop-basket-container {
position: fixed;
bottom: 0;
right: 0;
width: 70%;
box-shadow: 0px -5px 5px 0px rgba(0, 0, 0, 0.3);
z-index: 10;

@media (min-width: 768px) { // Tablet devices
width: 60%;
}

@media (min-width: 1024px) { // PC screens
width: 40%;
}
}

0 comments on commit 2e70143

Please sign in to comment.