Browse Source

/projets grille css affiche qu'une image

ouidade 10 months ago
parent
commit
158415a576

+ 17 - 3
web/themes/custom/eql/css-compiled/styles.css

@@ -462,13 +462,15 @@ a {
                 padding-right: 1rem;
                 width: fit-content; }
             .path-frontpage .block-views-blockactus-blocks-pages-block-1 div .view-actus-blocks-pages .view-content .views-row .node-type-actualite div:first-child .field--name-field-lieu {
+              display: flex !important;
+              flex-direction: row;
               grid-column: 10 / span 12;
               grid-row: 2; }
-              .path-frontpage .block-views-blockactus-blocks-pages-block-1 div .view-actus-blocks-pages .view-content .views-row .node-type-actualite div:first-child .field--name-field-lieu div.field__item {
-                display: flex !important;
-                flex-direction: row; }
               .path-frontpage .block-views-blockactus-blocks-pages-block-1 div .view-actus-blocks-pages .view-content .views-row .node-type-actualite div:first-child .field--name-field-lieu .field__label {
                 display: none; }
+              .path-frontpage .block-views-blockactus-blocks-pages-block-1 div .view-actus-blocks-pages .view-content .views-row .node-type-actualite div:first-child .field--name-field-lieu::before {
+                content: " | ";
+                margin-right: 2rem; }
             .path-frontpage .block-views-blockactus-blocks-pages-block-1 div .view-actus-blocks-pages .view-content .views-row .node-type-actualite div:first-child .field--name-title {
               display: inline-flex;
               grid-column: 9 / span 9;
@@ -3003,6 +3005,10 @@ a {
             color: #09398b; }
           .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-photo {
             order: 1; }
+            .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-photo .field__item {
+              display: none; }
+            .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-photo .field__item:first-child {
+              display: block; }
             .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-photo img {
               width: 100%;
               max-height: 175px;
@@ -3048,6 +3054,14 @@ a {
             color: red;
             margin-top: 0.8rem;
             font-size: 0.7rem; }
+          .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-region {
+            display: none; }
+          .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-type-de-moa {
+            display: none; }
+          .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-type-de-projet {
+            display: none; }
+          .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-etape-du-projet {
+            display: none; }
 
 .path-node.page-node-type-projet .layout-container {
   overflow: unset; }

+ 6 - 2
web/themes/custom/eql/scss/pages/_home.scss

@@ -82,15 +82,19 @@
                                     }
     
                                     .field--name-field-lieu{
+                                        display: flex !important;
+                                        flex-direction: row;
                                         div.field__item{
-                                            display: flex !important;
-                                            flex-direction: row;
                                         }
                                         .field__label{
                                             display: none;
                                         }
                                         grid-column: 10 / span 12;
                                         grid-row: 2;
+                                        &::before{
+                                            content: " | ";
+                                            margin-right: 2rem;
+                                        }
                                         
                                     }
                                     .field--name-title{

+ 20 - 0
web/themes/custom/eql/scss/pages/_lesprojets.scss

@@ -112,6 +112,8 @@
                                
                                 // width: 80%;
                                 margin: auto;
+
+                                //filtres
                                 .view-filters{
                                     margin-top: 4rem;
                                     display: flex;
@@ -272,6 +274,12 @@
                                         } 
                                         .field--name-field-photo {
                                             order:1;
+                                            .field__item{
+                                                display:none;
+                                            }
+                                            .field__item:first-child{
+                                                display:block;
+                                            }
                                             img{  
                                                 width: 100%; 
                                                 max-height: 175px;
@@ -327,6 +335,18 @@
                                             margin-top: 0.8rem;
                                             font-size: 0.7rem;
                                         }
+                                        .field--name-field-region{
+                                            display: none;
+                                        }
+                                        .field--name-field-type-de-moa{
+                                            display: none;
+                                        }
+                                        .field--name-field-type-de-projet{
+                                            display: none;
+                                        }
+                                        .field--name-field-etape-du-projet{
+                                            display: none;
+                                        }
                                     }
                                 }
                             }