Ver código fonte

preprocesse page popsu

armansansd 2 anos atrás
pai
commit
368fb029fb

+ 6 - 1
web/themes/custom/popsu/css/styles.css

@@ -2138,7 +2138,7 @@ article p, .paragraph p {
   position: relative; }
   .page-node-type-programme #projets-block_2 .main_logo {
     z-index: 10;
-    height: 7rem;
+    height: 7.2rem;
     width: 100%;
     position: absolute;
     top: 0;
@@ -2267,6 +2267,11 @@ article p, .paragraph p {
       .page-node-type-programme .block-region-third .views-field a:hover {
         text-decoration: underline; }
 
+.page-node-type-programme article {
+  font-size: 0.45rem; }
+  .page-node-type-programme article h2:first-child {
+    display: none; }
+
 .page-node-type-programme .block-region-bottom {
   background: url(../images/motif_croix.svg); }
   .page-node-type-programme .block-region-bottom h2 {

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
web/themes/custom/popsu/css/styles.css.map


+ 14 - 0
web/themes/custom/popsu/popsu.theme

@@ -33,6 +33,20 @@ function popsu_preprocess_html(&$variables) {
   }
 }
 
+function popsu_preprocess_field(&$variables){
+  $element = &$variables['element'];
+  // $items = &$variables['items'];
+  if (isset($element['#field_name'])) {
+    // kint($element['#field_name']);
+    if ($element['#field_name'] == 'field_sous_parties') {
+      // ['attributes'] = new Attribute();
+      // $variables['classes_array'][] = 'field_sous_parties';
+      // kint($variables);
+    }
+  }
+  
+}
+
 function popsu_preprocess_views_view_unformatted(&$variables) {
 
   $view = &$variables['view'];  

+ 8 - 1
web/themes/custom/popsu/sass/pages/_programme.scss

@@ -3,7 +3,7 @@
         position: relative;
         .main_logo{
             z-index: 10;
-            height: 7rem;
+            height: 7.2rem;
             width: 100%;
             position: absolute;
             // background: red;
@@ -199,6 +199,13 @@
             }
         }
     }
+
+    article{
+        font-size: $font-small;
+        h2:first-child{
+            display: none;
+        }
+    }
     .block-region-bottom{
         background: $trame;
         h2{

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff