Pārlūkot izejas kodu

padding text incubateur

ouidade 1 nedēļu atpakaļ
vecāks
revīzija
cf35f1ecf9

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web/themes/custom/eql/dist/assets/bundle.js


+ 1 - 1
web/themes/custom/eql/dist/assets/css/bundle.css

@@ -347,7 +347,7 @@ svg.ext {
   height: auto;
 }
 .path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--type-text-long {
-  padding-right: 2rem;
+  padding: 0.5rem 1rem 1rem 1.5rem;
 }
 .path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes p {
   margin-top: 0;

+ 12 - 0
web/themes/custom/eql/scripts/main.js

@@ -301,6 +301,18 @@ document.addEventListener("DOMContentLoaded", function () {
     }
   }
 
+  document.querySelectorAll(".view-type-ressource-slide").forEach(view => {
+    const h3Content = view.querySelector("h3 > a")?.textContent.trim();
+
+    view.querySelectorAll(".field--name-field-type-de-ressource").forEach(field => {
+      const fieldText = field.textContent.trim();
+
+      if (fieldText === h3Content) {
+        field.style.display = "none";
+      }
+    });
+  });
+
 });
 
 })(jQuery, window);

+ 1 - 29
web/themes/custom/eql/scss/pages/_incubateur.scss

@@ -7,26 +7,12 @@
     
     .layout-container{
         overflow: unset;
-        // display: flex;
-        // flex-direction: column;
-        // flex-flow: row wrap;
-        // header{
-        //     flex: 0 0 100%;
-        // }
-        // main{
-        //     flex: 0 0 100%;
             .layout-content{
                 
                 .region-content{
                     #block-contenudelapageprincipale{
                         span{
                             width: fit-content;
-                            // margin-left: 11%;
-                            // margin-top: 15vh;
-                            // @media (max-width: 810px){
-                            //     margin-left: 8%;
-                            //     margin-right: 5%;
-                            // }
                             h2{
                                 width: fit-content;
                                 margin-left: 11%;
@@ -103,23 +89,15 @@
                                                         font-family: 'Source Code Pro', monospace;
                                                         color: $blue-dark;
                                                         text-transform: uppercase;
-                                                        // margin-top: 2rem;
                                                         margin-bottom: 0.8rem;
                                                     }
                                                     .field--name-field-texte{
-                                                        
-                                                            
-                                                            margin-bottom: 2rem;
-                                                        
+                                                       margin-bottom: 2rem;
                                                     }
-
                                                 }
                                             }
-
                                         }
-
                                     }
-                                    
                                 }    
                             }
                             // colone de droite fichiers et ressources liées
@@ -131,9 +109,6 @@
                                             display: flex;
                                             flex-direction: column;
                                             width: 70%;
-                                            // position: -webkit-sticky;
-                                            // position: sticky;
-                                            // top: 9rem; 
                                             @media (max-width: 810px){
                                                 margin: auto;
                                             }               
@@ -148,8 +123,6 @@
                                                     color: $blue-light;
                                                     padding-left: 0.8rem;
                                                     padding-top: 1rem;
-                                                   
-                                            
                                                     span:nth-of-type(2){
                                                         display: none;
                                                     }
@@ -171,7 +144,6 @@
                                                             align-items: center;
                                                             color: $blue-light;
                                                             font-weight: 800;
-                                                            // max-width: 80px ;
                                                         }
                                                     }
                                             

+ 2 - 1
web/themes/custom/eql/scss/pages/_static.scss

@@ -115,7 +115,8 @@
                             }
                         }
                         .field--type-text-long{
-                            padding-right: 2rem;
+                            // padding-right: 2rem;
+                            padding: 0.5rem 1rem 1rem 1.5rem;
                         }
                         p{
                             margin-top: 0;

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels