Browse Source

home mobile

ouidade 7 months ago
parent
commit
8625e8310b

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/reha/dist/css/bundle.css


+ 11 - 2
web/themes/custom/reha/scss/global/variables/_buttons.scss

@@ -20,12 +20,21 @@
 }
 
 
+.page-programme .field--type-link {
+    @extend %buttonwithborder;
+    width: fit-content;
+        padding: 0.4rem;
+    
+}
 .field--type-link {
     @extend %buttonwithborder;
     width: fit-content;
-    padding: 0.4rem;
-
+    .page-programme{
+        padding: 0.4rem;
+    }
 }
+
+
 .bouton{
     background-color: $white-button !important;
     border: none !important;

+ 5 - 0
web/themes/custom/reha/scss/pages/home/home-view-presentation.scss

@@ -4,5 +4,10 @@
         width: 60%;
         margin: auto;
         padding-top: 5rem;
+        @media(max-width: 891px){
+            width: 80%;
+            padding-top: 3rem;
+        }
+        
     }
 }

+ 28 - 2
web/themes/custom/reha/scss/pages/home/home-view-sites.scss

@@ -13,6 +13,8 @@
     padding-bottom: 5rem;
     @media(max-width: 891px){
         margin-bottom: 1rem;
+        margin-top: 2rem;
+        width: 50%;
         // margin: auto;
     }
     p{margin: 0;}
@@ -25,20 +27,29 @@
         position: relative;
     
         .views-row{
-
+            @media(max-width: 891px){
+                margin-left: 1.8rem;
+                margin-right: 1.8rem;
+            }
             .node-type-site{
                 width: 70%;
                 margin: auto;
                 display: grid;
                 grid-template-rows: repeat(12, 1fr);
                 grid-template-columns: repeat(12, 1fr);
+                @media(max-width: 891px){
+                    width: 100%;
+                    display: flex;
+                    flex-direction: column;
+                }
                 .image-site{
                     order: 1;
                     grid-row: 1/span 10;
                     grid-column: 1/span 9;
                     img {
                         width: 100%;
-                        object-fit: cover;
+                        // object-fit: cover;
+                        height: auto;
                     }
                 }
                 .filtered-content{
@@ -51,18 +62,33 @@
                     grid-row: 7/span 5;
                     grid-column: 7/span 12;
                     padding: 1rem;
+                    @media(max-width: 891px){
+                        width: auto;
+                    }
                     h2{
                         order: 2;
                         margin: 0;
+                        @media(max-width: 891px){
+                            font-size: 1.2rem;
+                            line-height: 1.3rem;
+                        }
                     }
                     .field--name-field-numero-site {
                         order: 1;
                         text-transform: uppercase;
                         font-size: 2rem;
+                        @media(max-width: 891px){
+                            font-size: 1.5rem;
+                        }
                     }
                     .field--name-field-adresse-site{
                         order: 3;
                         font-size: 1.5rem;
+                        @media(max-width: 891px){
+                            font-size: 1rem;
+                            line-height: 0.6rem;
+                            padding-bottom: 0.3rem;
+                        }
                         .address{
                             margin: 0;
                             display: inline-flex;

+ 7 - 2
web/themes/custom/reha/scss/pages/le-programme.scss

@@ -49,9 +49,14 @@
                 .field--name-field-texte{
                     grid-column: 2 / 8;
                     grid-row:  2;
-                    span{
-                        background-color: none;
+                    .field__item{
+                        p{
+                            strong{
+                                background-color: none;
+                            }
+                        }
                     }
+                    
                 }
                 .field--name-field-lien{
                     grid-column: 2 / 8;

Some files were not shown because too many files changed in this diff