From f72bb50f18a1db6ce9a8f62bc4a48084c157e75f Mon Sep 17 00:00:00 2001 From: Sebastien Hattry Date: Thu, 25 Nov 2021 10:21:36 +0100 Subject: [PATCH] category page integration --- public/css/app.css | 16 +++++++++++- resources/sass/_list.scss | 21 +++++++++++++++- resources/views/categorie.blade.php | 38 ++++++++++++++++++++++++----- 3 files changed, 67 insertions(+), 8 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index f872cb3..65e7ed2 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -5088,6 +5088,7 @@ input[type=text]{ height:100%; -o-object-fit:cover; object-fit:cover; + max-width:none; } .product-card a, .gamme-card a{ @@ -5154,13 +5155,18 @@ input[type=text]{ bottom:50px; } +#list .wrapper > div:first-child{ + padding-top:0; +} #list .title{ color:#fff; font-size:calc(18px * 3.25); } #list .is-flex{ - justify-content:space-between; + -moz-column-gap:20px; + column-gap:20px; flex-wrap:wrap; + flex-direction:initial; } #list .section-header{ margin-bottom:50px; @@ -5306,6 +5312,14 @@ input[type=text]{ object-fit:cover; } } +@media (max-width: 1024px){ + #list .section-header{ + margin-bottom:80px; + } + #list .is-flex{ + justify-content:center; + } +} @media (max-width: 1200px){ .posts-list{ width:100%; diff --git a/resources/sass/_list.scss b/resources/sass/_list.scss index e9fe1f0..0443bb0 100644 --- a/resources/sass/_list.scss +++ b/resources/sass/_list.scss @@ -10,6 +10,7 @@ width: 100%; height: 100%; object-fit: cover; + max-width: none; } a { top: 0; @@ -79,13 +80,17 @@ } #list { + .wrapper > div:first-child { + padding-top: 0; + } .title { color: $color-light; font-size: calc(#{$globalfont} * 3.25); } .is-flex { - justify-content: space-between; + column-gap: 20px; flex-wrap: wrap; + flex-direction: initial; } .section-header { margin-bottom: 50px; @@ -293,6 +298,17 @@ } } +@media (max-width: 1024px) { + #list { + .section-header { + margin-bottom: 80px; + } + .is-flex { + justify-content: center; + } + } +} + @media (max-width: 1200px) { .posts-list { width: 100%; @@ -305,6 +321,9 @@ @media (max-width: 768px) { #list { + // .wrapper > div:not(:last-child) { + // margin-bottom: 2rem; + // } .section-header { .content { position: relative; diff --git a/resources/views/categorie.blade.php b/resources/views/categorie.blade.php index ad1a954..8324307 100644 --- a/resources/views/categorie.blade.php +++ b/resources/views/categorie.blade.php @@ -6,10 +6,27 @@
-

Elaboré cuits +

Elaboré cuits

- + +
@@ -20,16 +37,16 @@ -

Nos produits de la gammes

+

Nos produits de la gammes

Des produits incontournables, Authentiques et Innovants !

-
+
-
+

Gamme family

@@ -56,9 +73,18 @@ Découvrir
+
+ + +

Bouchées de Volaille

+ + + Découvrir + +
-
+

Gamme Little Treats