Fix bugow zwiazanych z dodawaniem do koszyka

This commit is contained in:
2025-12-19 11:09:02 +01:00
parent e62958a584
commit 8fadf8c07d
5 changed files with 216 additions and 60 deletions

View File

@@ -328,6 +328,9 @@
}
@media (min-width: 979px){
--idm-hotspot-version-height: 55px;
.product__versions.--desktop-hidden{
display: none!important;
}
}
.product__versions{
display: grid;
@@ -400,7 +403,7 @@
}
@media (min-width: 979px){
.idm__hotspot .product:has(.product__versions){
.idm__hotspot .product:has(.product__version_single){
.product__versions{
clip-path: inset(0% 0 100% 0);
}
@@ -456,6 +459,7 @@
&:has(input:disabled){
opacity: 0.6;
cursor: not-allowed!important;
background: #f2f2f2;
}
&:has(input:checked){
@@ -490,6 +494,64 @@
}
/* Banner */
.idm__hotspot:has(.idm_hotspot__banner){
&:has(.idm_hotspot__banner.--left, .idm_hotspot__banner.--right){
@media (min-width: 757px){
.hotspot{
display: flex;
flex-wrap: wrap;
h3{
flex-basis: 100%;
}
}
.idm_hotspot__banner{
&.--left, &.--right{
width: 25%;
display: inline-block;
// position: relative;
// z-index: 100;
}
}
.products__wrapper {
width: calc(75% - 1rem);
}
}
}
&:has(.idm_hotspot__banner.--left){
.products__wrapper {
margin-left: 1rem;
}
.swiper-button-prev{
left: 27%;
}
}
&:has(.idm_hotspot__banner.--right){
.products__wrapper {
margin-right: 1rem;
}
.swiper-button-next{
right: 27%;
}
}
.idm_hotspot__banner.--top{
margin-bottom: 1rem;
}
&:has(.idm_hotspot__banner.--top) .hotspot{
.swiper-initialized ~ .swiper-button-prev, .swiper-initialized ~ .swiper-button-next{
top: auto;
bottom: calc(60% - var(--swiper-navigation-top-offset));
}
}
.idm_hotspot__banner.--bottom{
margin-top: 1rem;
}
}
/* Ogolne */
.idm__hotspot{
.product__name{