Quellcode durchsuchen

removed body from production home nodes

Bachir Soussi Chiadmi vor 7 Jahren
Ursprung
Commit
f4ad71e57a

+ 8 - 5
sites/all/themes/custom/edlptheme/assets/dist/styles/app.min.css

@@ -2161,20 +2161,23 @@ body.path-frontpage .layout-content .row, body.path-productions .layout-content
         height: auto; }
       body.path-frontpage .layout-content .row .col > .wrapper article.node header, body.path-productions .layout-content .row .col > .wrapper article.node header {
         background-color: rgba(255, 255, 255, 0.95);
+        -webkit-box-sizing: border-box;
+        box-sizing: border-box;
+        width: 100%;
         padding: 0.5em 1em; }
         body.path-frontpage .layout-content .row .col > .wrapper article.node header h2.node-title, body.path-productions .layout-content .row .col > .wrapper article.node header h2.node-title {
-          margin: 0; }
-        body.path-frontpage .layout-content .row .col > .wrapper article.node header p, body.path-productions .layout-content .row .col > .wrapper article.node header p {
-          margin: 0; }
+          margin: 0;
+          font-size: 0.8em;
+          text-transform: lowercase; }
       body.path-frontpage .layout-content .row .col > .wrapper article.node.node--view-mode-image-2-columns header, body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-image-2-columns header {
         position: absolute;
         bottom: 0;
         left: 0; }
         body.path-frontpage .layout-content .row .col > .wrapper article.node.node--view-mode-image-2-columns header h2.node-title, body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-image-2-columns header h2.node-title {
-          font-size: 1.6em;
+          font-size: 1.2em;
           font-weight: 500; }
       body.path-frontpage .layout-content .row .col > .wrapper article.node.node--view-mode-image-1-columns h2.node-title, body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-image-1-columns h2.node-title {
-        font-size: 1.2em;
+        font-size: 1em;
         font-weight: 500; }
       body.path-frontpage .layout-content .row .col > .wrapper article.node.node--view-mode-text-1-column, body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-text-1-column {
         padding: 0 1em; }

+ 7 - 3
sites/all/themes/custom/edlptheme/assets/styles/app.scss

@@ -1063,11 +1063,15 @@ body.path-frontpage, body.path-productions{
           }
           header{
             background-color: rgba(255,255,255,0.95);
+            box-sizing: border-box;
+            width: 100%;
             padding:0.5em 1em;
             h2.node-title{
               margin:0;
+              font-size: 0.8em;
+              text-transform: lowercase;
             }
-            p{margin: 0;}
+            // p{margin: 0;}
           }
 
           &.node--view-mode-image-2-columns{
@@ -1075,14 +1079,14 @@ body.path-frontpage, body.path-productions{
               position: absolute;
               bottom: 0; left:0;
               h2.node-title{
-                font-size: 1.6em;
+                font-size: 1.2em;
                 font-weight: 500;
               }
             }
           }
           &.node--view-mode-image-1-columns{
             h2.node-title{
-              font-size: 1.2em;
+              font-size: 1em;
               font-weight: 500;
             }
           }

+ 7 - 9
sites/default/config/sync/core.entity_view_display.node.page.image_1_columns.yml

@@ -5,6 +5,8 @@ dependencies:
   config:
     - core.entity_view_mode.node.image_1_columns
     - field.field.node.page.body
+    - field.field.node.page.field_afficher_en_page_d_acceuil
+    - field.field.node.page.field_documents_lies
     - field.field.node.page.field_page_type
     - field.field.node.page.field_son
     - field.field.node.page.field_view_mode
@@ -14,21 +16,12 @@ dependencies:
     - node.type.page
   module:
     - image
-    - text
     - user
 id: node.page.image_1_columns
 targetEntityType: node
 bundle: page
 mode: image_1_columns
 content:
-  body:
-    label: hidden
-    type: text_summary_or_trimmed
-    weight: 1
-    settings:
-      trim_length: 100
-    third_party_settings: {  }
-    region: content
   field_visuel:
     weight: 0
     label: hidden
@@ -39,9 +32,14 @@ content:
     type: image
     region: content
 hidden:
+  body: true
+  field_afficher_en_page_d_acceuil: true
+  field_documents_lies: true
   field_page_type: true
   field_son: true
   field_view_mode: true
   field_workflow_generic: true
   langcode: true
   links: true
+  production_parent: true
+  production_subtree: true

+ 7 - 9
sites/default/config/sync/core.entity_view_display.node.page.image_2_columns.yml

@@ -5,6 +5,8 @@ dependencies:
   config:
     - core.entity_view_mode.node.image_2_columns
     - field.field.node.page.body
+    - field.field.node.page.field_afficher_en_page_d_acceuil
+    - field.field.node.page.field_documents_lies
     - field.field.node.page.field_page_type
     - field.field.node.page.field_son
     - field.field.node.page.field_view_mode
@@ -14,21 +16,12 @@ dependencies:
     - node.type.page
   module:
     - image
-    - text
     - user
 id: node.page.image_2_columns
 targetEntityType: node
 bundle: page
 mode: image_2_columns
 content:
-  body:
-    label: hidden
-    type: text_summary_or_trimmed
-    weight: 1
-    settings:
-      trim_length: 200
-    third_party_settings: {  }
-    region: content
   field_visuel:
     weight: 0
     label: hidden
@@ -39,9 +32,14 @@ content:
     type: image
     region: content
 hidden:
+  body: true
+  field_afficher_en_page_d_acceuil: true
+  field_documents_lies: true
   field_page_type: true
   field_son: true
   field_view_mode: true
   field_workflow_generic: true
   langcode: true
   links: true
+  production_parent: true
+  production_subtree: true