Bladeren bron

désactive href type-de-ressource et mot-clefs dans grile ressources

ouidade 1 jaar geleden
bovenliggende
commit
4355f62b48

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

@@ -960,7 +960,7 @@ a {
         .path-node.page-node-type-actualite .layout--threecol-25-50-25 .layout__region--top .block-region-top .block-entity-fieldnodefield-sous-titre {
           grid-column: 2 /span 9; } }
     .path-node.page-node-type-actualite .layout--threecol-25-50-25 .layout__region--top .block-region-top .block-entity-fieldnodefield-images {
-      grid-column: 5 / span 9; }
+      grid-column: 5 / span 3; }
       .path-node.page-node-type-actualite .layout--threecol-25-50-25 .layout__region--top .block-region-top .block-entity-fieldnodefield-images img {
         padding-top: 2rem;
         width: 600px;
@@ -4154,7 +4154,9 @@ a {
                 .path-ressources .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .layout__region--content .block-region-content .block-views-blockbase-de-donnees-block-1 .view-content .views-row .node-type-ressource .field--name-field-type-de-ressource a {
                   color: #009ee3;
                   font-weight: 900;
-                  font-size: 0.8rem; }
+                  font-size: 0.8rem;
+                  pointer-events: none;
+                  cursor: default; }
               .path-ressources .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .layout__region--content .block-region-content .block-views-blockbase-de-donnees-block-1 .view-content .views-row .node-type-ressource .field--name-title h2 {
                 margin: 0; }
                 .path-ressources .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .layout__region--content .block-region-content .block-views-blockbase-de-donnees-block-1 .view-content .views-row .node-type-ressource .field--name-title h2 a {
@@ -4196,7 +4198,9 @@ a {
                     vertical-align: super;
                     padding-left: 0.1rem;
                     padding-right: 0.1rem;
-                    display: inline-flex; }
+                    display: inline-flex;
+                    pointer-events: none;
+                    cursor: default; }
               .path-ressources .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .layout__region--content .block-region-content .block-views-blockbase-de-donnees-block-1 .view-content .views-row .node-type-ressource ul.links.inline {
                 display: none; }
           @media (max-width: 810px) {

File diff suppressed because it is too large
+ 385 - 338
web/themes/custom/eql/package-lock.json


+ 3 - 3
web/themes/custom/eql/package.json

@@ -1,7 +1,6 @@
 {
   "name": "dev.eql.fr",
   "version": "1.0.0",
-  "description": "",
   "main": "index.js",
   "scripts": {
     "sass": "node-sass -w scss -o css-compiled",
@@ -14,11 +13,12 @@
   "author": "",
   "license": "ISC",
   "devDependencies": {
-    "node-sass": "^6.0.1"
+    "node-sass": "*"
   },
   "browserslist": "last 4 versions",
   "dependencies": {
     "nodejs": "^0.0.0",
     "slick-carousel": "^1.8.1"
-  }
+  },
+  "description": ""
 }

+ 1 - 1
web/themes/custom/eql/scripts/main.js

@@ -169,7 +169,7 @@ jQuery(function($) {
         // slidesToScroll: 1,
         dots: true,
         arrows: true,
-        // centerMode: true,
+        centerMode: true,
         // centerPadding: '100px',
         responsive: [
           {

+ 3 - 1
web/themes/custom/eql/scss/pages/_actualite.scss

@@ -141,7 +141,8 @@
                 }
 
                 .block-entity-fieldnodefield-images{
-                    grid-column: 5 / span 9;
+                    grid-column: 5 / span 3;
+              
                     img{
                         padding-top: 2rem;
                         width: 600px;
@@ -512,6 +513,7 @@
                             }
                         }
                 }
+                
             
             }
             

+ 0 - 3
web/themes/custom/eql/scss/pages/_home.scss

@@ -9,7 +9,6 @@
             height: 600px;
             border-bottom: 5px solid $blue-light;
             background: $background-actus;
-
             // @media(max-width: 810px){
             //     max-height: fit-content;
             // }
@@ -116,8 +115,6 @@
                                     .field--name-field-lieu{
                                         display: flex !important;
                                         flex-direction: row;
-                                        div.field__item{
-                                        }
                                         .field__label{
                                             display: none;
                                         }

+ 1 - 0
web/themes/custom/eql/scss/pages/_projet.scss

@@ -540,6 +540,7 @@
                                 }
                             
                             }
+                            
                            
                         
                             .block-entity-fieldnodefield-ressource-s-liee-s-{

+ 4 - 0
web/themes/custom/eql/scss/pages/_ressources.scss

@@ -193,6 +193,8 @@
                                                     color: $blue-light;
                                                     font-weight: 900;
                                                     font-size: 0.8rem;
+                                                    pointer-events: none;
+                                                    cursor: default;
                                                 }
                                             }
                                             .field--name-title{
@@ -259,6 +261,8 @@
                                                         padding-left: 0.1rem;
                                                         padding-right: 0.1rem;
                                                         display: inline-flex;
+                                                        pointer-events: none;
+                                                        cursor: default;
                                                     }
                                                 }
                                             }

+ 247 - 0
web/themes/custom/eql/scss/partials/_block_third_ressources_liees.scss

@@ -0,0 +1,247 @@
+
+//// pages ressources et actualités
+.block-entity-fieldnodefield-ress{
+    margin-top: 3rem; 
+    .field--name-field-ress{
+        .field__label{
+            font-size: 0.8rem;
+            color: $black;
+            font-weight: 900;
+            margin-bottom: 1rem;
+        }
+
+        .node-type-ressource{
+            border: 2px solid $blue-light;
+            padding: 1rem;         
+            height: fit-content;
+            margin-bottom: 1rem;
+            background-color: $white;
+            display: flex;
+            flex-direction: column;
+          
+            div{
+                display: flex;
+                flex-direction: column;
+                .field--name-field-type-de-ressource{
+                    order: 2;
+                    text-transform: uppercase;
+                    color: $blue-light;
+                    font-weight: 900;
+                    font-size: 0.8rem;
+                }
+                .field--name-title{
+                    order: 3;
+                    h2{
+                        margin: 0;
+                        a{
+                            color: $black;
+                            font-size: 1rem;
+                            font-weight: 900;
+                            font-style: italic;
+                        }
+                    }
+                }
+                .field--name-field-sous-titre{
+                    order:4;
+                }
+                .field--name-field-auteur-s-{
+                    order: 5;
+                    font-weight: 800;
+                    p{
+                        margin: 0;
+                    }
+                    .field__label{
+                        display:none;
+                    }
+                }
+                .field--name-field-edition{
+                    p{
+                        margin: 0;
+                    }
+                    .field__label{
+                        display:none;
+                    }
+                }
+                .field--name-field-images{
+                    // display: none;
+                    order: 1;
+                    width: 25%;
+
+                    img{
+                        width: 100%;
+                        height: auto;
+                    }
+                }
+                .field--name-field-date-de-parution{
+                    order: 6;
+                    .field__label{
+                        display: none;
+                    }
+                }
+                .field--name-field-mots-clefs{
+                    order: 7;
+                    display: flex;
+                    margin-top: 0.8rem;
+                    flex-direction: row;
+                    flex-wrap: wrap;
+                    .field__label{
+                        display: none;
+                    }
+                    .field__items{
+                        display: flex;
+                        flex-direction: row;
+                        flex-wrap: wrap;
+                    }
+                    .field__item{
+                        padding-bottom: 0.5rem;
+                        margin-right: 0.5rem;
+                        padding-right: 0.3rem;
+                        font-size: 0.8rem;
+                    
+                        a{
+                            background: $blue-dark;
+                            color: $white;
+                            font-weight: 800;
+                            vertical-align: super;
+                            padding-left: 0.1rem;
+                            padding-right: 0.1rem;
+                            display: inline-flex;
+                        }
+                    }
+                }
+                ul.links.inline{
+                    display: none;
+                }
+
+            }
+        }
+    }       
+
+
+}
+
+/////// pages projets
+.block-entity-fieldnodefield-ressource-s-liee-s-{
+    margin-top: 3rem;        
+    @media(max-width:479px){
+        margin-top: 2rem;
+    }
+    h2{
+        font-size: 0.8rem;
+        color: $black;
+        font-weight: 900;
+    }
+
+    .node-type-ressource{
+        display: flex;
+        flex-direction: column;
+        border: 2px solid $blue-light;
+        padding: 1rem;
+
+        height: fit-content;
+        margin-bottom: 1rem;
+        background-color: $white;
+        // &:first-of-type{
+        //     border-top: 1px solid $blue-light;
+        //     padding-top: 1rem;
+        //     &::after{
+        //         content: url("../images/pictos/noun_Arrow_3771902.svg");
+        //         align-self: flex-end;
+        //     }
+        // }
+        div{
+            display: flex;
+            flex-direction: column;
+            .field--name-title{
+                order: 3;
+                h2{
+                    margin: 0;
+                    a{
+                        color: $black;
+                        font-size: 1rem;
+                        font-weight: 900;
+                        font-style: italic;
+                    }
+                }
+            }
+            .field--name-field-sous-titre{
+                display: none;
+            }
+            .field--name-field-type-de-ressource{
+                order: 2;
+                text-transform: uppercase;
+                color: $blue-light;
+                font-weight: 900;
+                font-size: 0.8rem;
+            }
+            .field--name-field-auteur-s-{
+                order: 5;
+                font-weight: 800;
+                p{
+                    margin: 0;
+                }
+                .field__label{
+                    display:none;
+                }
+            }
+            .field--name-field-edition{
+                p{
+                    margin: 0;
+                }
+                .field__label{
+                    display:none;
+                }
+            }
+            .field--name-field-images{
+                // display: none;
+                order: 1;
+                width: 25%;
+
+                img{
+                    width: 100%;
+                    height: auto;
+                }
+            }
+            .field--name-field-date-de-parution{
+                order: 6;
+                .field__label{
+                    display: none;
+                }
+            }
+            .field--name-field-mots-clefs{
+                order: 7;
+                display: flex;
+                margin-top: 0.8rem;
+                flex-direction: row;
+                flex-wrap: wrap;
+                .field__label{
+                    display: none;
+                }
+                .field__items{
+                    display: flex;
+                    flex-direction: row;
+                }
+                .field__item{
+                    
+                    margin-right: 0.5rem;
+                    padding-right: 0.3rem;
+                    font-size: 0.8rem;
+
+                
+                    a{
+                        background: $blue-dark;
+                        color: $white;
+                        font-weight: 800;
+                        vertical-align: super;
+                        padding-left: 0.1rem;
+                        padding-right: 0.1rem;
+                        display: inline-flex;
+                    }
+                }
+            }
+            ul.links.inline{
+                display: none;
+            }
+        }    
+    }
+}

+ 0 - 101
web/themes/custom/eql/scss/partials/_nodetyperessource.scss

@@ -1,101 +0,0 @@
-.node-type-ressource{
-    // border: 2px solid $blue-light;
-    // padding: 1rem;         
-    // height: fit-content;
-    // margin-bottom: 1rem;
-    // background-color: $white;
-
-    display: flex;
-    flex-direction: column;
-    &::after{
-        content: url("../images/pictos/noun_Arrow_3771902.svg");
-        align-self: flex-end;
-    }                           
-    div{
-        display: flex;
-        flex-direction: column;
-        .field--name-field-type-de-ressource{
-            order: 2;
-            text-transform: uppercase;
-            color: $blue-light;
-            font-weight: 900;
-            font-size: 0.8rem;
-        }
-        .field--name-title{
-            order: 3;
-            h2{
-                margin: 0;
-                a{
-                    color: $black;
-                    font-size: 1rem;
-                    font-weight: 900;
-                    font-style: italic;
-                }
-            }
-        }
-        .field--name-field-sous-titre{
-            order:4;
-        }
-        .field--name-field-auteur-s-{
-            order: 5;
-            font-weight: 800;
-            p{
-                margin: 0;
-            }
-            .field__label{
-                display:none;
-            }
-        }
-        .field--name-field-edition{
-            display: none;
-            p{
-                margin: 0;
-            }
-            .field__label{
-                display:none;
-            }
-        }
-        .field--name-field-images{
-            // display: none;
-            order: 1;
-            width: 25%;
-
-            img{
-                width: 100%;
-                height: auto;
-            }
-        }
-        .field--name-field-date-de-parution{
-            order: 6
-        }
-        .field--name-field-mots-clefs{
-            order: 7;
-            display: flex;
-            margin-top: 2rem;
-            flex-direction: row;
-            flex-wrap: wrap;
-
-            .field__item{
-                
-                margin-right: 0.5rem;
-                padding-left: 0.3rem;
-                padding-right: 0.3rem;
-                font-size: 0.8rem;
-            
-                a{
-                    background: $blue-dark;
-                    color: $white;
-                    font-weight: 800;
-                    vertical-align: super;
-                    padding-left: 0.1rem;
-                    padding-right: 0.1rem;
-                    display: inline-flex;
-                }
-            }
-        }
-        ul.links.inline{
-            display: none;
-        }
-
-    }
-}

+ 1 - 1
web/themes/custom/eql/scss/styles.scss

@@ -61,4 +61,4 @@
 // @import "partials/_slick_custom.scss";
 @import "partials/_slick";
 @import "partials/_slick-theme";
-// @import "partials/_nodetyperessource.scss";
+// @import "partials/_block_third_ressources_liees";

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