Bläddra i källkod

display filtre none

ouidade 3 år sedan
förälder
incheckning
444bfdf253

+ 10 - 4
web/themes/custom/eql/css-compiled/styles.css

@@ -1613,6 +1613,11 @@ a {
                 display: inline-flex; }
           .path-ressources.basededonnees .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockbase-de-donnees-block-1 .view-content .node-type-ressource ul.links.inline {
             display: none; }
+    @media (max-width: 810px) {
+      .path-ressources.basededonnees .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content {
+        display: flex;
+        flex-direction: column;
+        margin: auto; } }
 
 .page-node-type-ressource .layout__region--top .block-region-top .block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640 {
   width: 100%;
@@ -1901,6 +1906,7 @@ a {
       .offresdeservices .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockoffres-de--block-1 .view-display-id-block_1 {
         margin: auto; }
       .offresdeservices .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockoffres-de--block-1 .view-filters {
+        display: none;
         background: white; }
       .offresdeservices .layout-content .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockoffres-de--block-1 .view-content {
         display: flex;
@@ -2355,7 +2361,7 @@ a {
     margin-left: 13%;
     margin-right: 20%;
     width: 60%; }
-  .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item-titre-du-document {
+  .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item--titre-du-document {
     margin-left: 13%;
     margin-right: 20%;
     width: 60%;
@@ -2363,14 +2369,14 @@ a {
     flex-direction: row;
     flex-wrap: wrap;
     margin-top: 2rem; }
-    .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item-titre-du-document:after {
+    .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item--titre-du-document:after {
       content: "*";
       color: red;
       font-size: 2rem;
       padding-left: 0.5rem; }
-    .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item-titre-du-document label {
+    .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item--titre-du-document label {
       width: 100%; }
-    .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item-titre-du-document input {
+    .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item--titre-du-document input {
       width: 90%;
       height: 5rem; }
   .path-webform .region-content #webform-submission-deposer-une-contribution-add-form .form-item-auteur-s- {

+ 5 - 4
web/themes/custom/eql/eql.theme

@@ -32,9 +32,10 @@ function eql_preprocess_node(&$variables){
   
 }
 
-// /**
-//  * Implements hook_preprocess_field().
-//  */
+/** /// fonctionne pour donner id au champs mais fais bugger les pages static "field unkown"
+ * 
+ * Implements hook_preprocess_field().
+ */
 // function eql_preprocess_field(&$variables) {
 //   $node = \Drupal::routeMatch()->getParameter('node');
 //   if($node) {
@@ -43,7 +44,7 @@ function eql_preprocess_node(&$variables){
 //   }
 // }
 
-
+//////////////////////////////////////////////////
 
 // function eql_preprocess_field(&$variables){
 //   $node = &$variables['node'];

+ 6 - 1
web/themes/custom/eql/scss/pages/_basededonnees.scss

@@ -332,7 +332,12 @@
                             }
                         }
 
-
+                        @media (max-width:810px) {
+                            display: flex;
+                            flex-direction: column;
+                            margin: auto;
+                        }
+                    
                     }
 
                 }

+ 1 - 1
web/themes/custom/eql/scss/pages/_offresdeservices.scss

@@ -94,7 +94,7 @@
 
                             // bandeau filtes
                             .view-filters{
-                                // display: none;
+                                display: none;
                                 background: $white;
                             }
 

+ 1 - 1
web/themes/custom/eql/scss/pages/_webform.scss

@@ -56,7 +56,7 @@
                 width: 60%;
             }
 
-            .form-item-titre-du-document{
+            .form-item--titre-du-document{
                 margin-left: 13%;
                 margin-right: 20%;
                 width: 60%;

+ 0 - 64
web/themes/custom/eql/templates/form-element.html.twig

@@ -1,64 +0,0 @@
-{#
-/**
- * @file
- * Theme override for a form element.
- *
- * @todo Remove when https://www.drupal.org/node/3010558 is fixed.
- *
- * @see template_preprocess_form_element()
- */
-#}
-{#
-  Most of core-provided js assumes that the CSS class pattern js-form-item-[something] or
-  js-form-type-[something] exists on form items. We have to keep them.
-#}
-{%
-  set classes = [
-    'js-form-item',
-    'form-item',
-    'js-form-type-' ~ type|clean_class,
-    'form-type--' ~ type|clean_class,
-    type in ['checkbox', 'radio'] ? 'form-type--boolean',
-    'js-form-item-' ~ name|clean_class,
-    'form-item--' ~ name|clean_class,
-    title_display not in ['after', 'before'] ? 'form-item--no-label',
-    disabled == 'disabled' ? 'form-item--disabled',
-    errors ? 'form-item--error',
-  ]
-%}
-{%
-  set description_classes = [
-    'form-item__description',
-    description_display == 'invisible' ? 'visually-hidden',
-  ]
-%}
-<div{{ attributes.addClass(classes) }}>
-  {% if label_display in ['before', 'invisible'] %}
-    {{ label }}
-  {% endif %}
-  {% if prefix is not empty %}
-    <span class="form-item__prefix{{disabled == 'disabled' ? ' is-disabled'}}">{{ prefix }}</span>
-  {% endif %}
-  {% if description_display == 'before' and description.content %}
-    <div{{ description.attributes.addClass(description_classes) }}>
-      {{ description.content }}
-    </div>
-  {% endif %}
-  {{ children }}
-  {% if suffix is not empty %}
-    <span class="form-item__suffix{{disabled == 'disabled' ? ' is-disabled'}}">{{ suffix }}</span>
-  {% endif %}
-  {% if label_display == 'after' %}
-    {{ label }}
-  {% endif %}
-  {% if errors %}
-    <div class="form-item__error-message">
-      {{ errors }}
-    </div>
-  {% endif %}
-  {% if description_display in ['after', 'invisible'] and description.content %}
-    <div{{ description.attributes.addClass(description_classes) }}>
-      {{ description.content }}
-    </div>
-  {% endif %}
-</div>