mirror of
https://github.com/cloudmaker97/DurstRechner.git
synced 2025-12-06 07:58:39 +00:00
FEAT: Einkaufswagen - Sticky wenn Monitor Tablet oder Grösser
This commit is contained in:
parent
deef49a560
commit
82a07fa652
1 changed files with 13 additions and 0 deletions
|
|
@ -52,6 +52,19 @@
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make the cart sticky on screens wider than 768px
|
||||||
|
*/
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.cart {
|
||||||
|
position: sticky;
|
||||||
|
top: 1rem;
|
||||||
|
max-height: calc(100vh - 2rem);
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product list contains all available products,
|
* Product list contains all available products,
|
||||||
* which are displayed in a grid layout. The grid scaling is done by bootstrap.
|
* which are displayed in a grid layout. The grid scaling is done by bootstrap.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue