From: Vincent Vanwaelscappel Date: Fri, 19 Jul 2019 16:43:38 +0000 (+0200) Subject: fix #2927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a5f4765f974160a6aa974facbdd96e4689bbb8e3;p=pmi.git fix #2927 --- diff --git a/resources/styles/components/products.styl b/resources/styles/components/products.styl index 6e1e298..1d263de 100644 --- a/resources/styles/components/products.styl +++ b/resources/styles/components/products.styl @@ -15,11 +15,39 @@ .product-highlights - height 147px // 7 lines + height 42px // 3 lines overflow hidden + li - margin-bottom: 0 // all lines have the same size, it allows the last line not to be half croped + margin-bottom: 0 + + // all lines have the same size, it allows the last line not to be half croped h3 - height 39px + height 21px overflow hidden + +.product-img-holder + @apply bg-white + position: relative + + &:before + content: ""; + display: block + padding-top: 100% + + > * + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + color: white; + text-align: center; + + .product-img + @apply bg-contain bg-center bg-no-repeat + width: 70% + height: 70% + top: 15%; + left: 15%; diff --git a/resources/views/pages/product-detail.blade.php b/resources/views/pages/product-detail.blade.php index 0ecb03d..4f1a064 100644 --- a/resources/views/pages/product-detail.blade.php +++ b/resources/views/pages/product-detail.blade.php @@ -19,7 +19,7 @@ {{-- Product images --}}
diff --git a/resources/views/pages/products.blade.php b/resources/views/pages/products.blade.php index e603c78..2ac19fe 100644 --- a/resources/views/pages/products.blade.php +++ b/resources/views/pages/products.blade.php @@ -96,15 +96,16 @@ @foreach($products as $id=>$product)