display filtre none

This commit is contained in:
2022-01-21 18:07:06 +01:00
parent 504ccdaf54
commit 444bfdf253
6 changed files with 23 additions and 75 deletions
+10 -4
View File
@@ -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
View File
@@ -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'];
@@ -332,7 +332,12 @@
}
}
@media (max-width:810px) {
display: flex;
flex-direction: column;
margin: auto;
}
}
}
@@ -94,7 +94,7 @@
// bandeau filtes
.view-filters{
// display: none;
display: none;
background: $white;
}
@@ -56,7 +56,7 @@
width: 60%;
}
.form-item-titre-du-document{
.form-item--titre-du-document{
margin-left: 13%;
margin-right: 20%;
width: 60%;
@@ -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>