info on burger menu with config_pages

This commit is contained in:
2026-12-01 15:58:36 +01:00
parent dc7f91e870
commit 985498581c
19 changed files with 254 additions and 6 deletions
+1
View File
@@ -24,6 +24,7 @@
"drupal/autocomplete_deluxe": "^2.2", "drupal/autocomplete_deluxe": "^2.2",
"drupal/cer": "^5.0@beta", "drupal/cer": "^5.0@beta",
"drupal/config_ignore": "^3.4", "drupal/config_ignore": "^3.4",
"drupal/config_pages": "^4.0",
"drupal/core-composer-scaffold": "^10.6 || ^11.4", "drupal/core-composer-scaffold": "^10.6 || ^11.4",
"drupal/core-project-message": "^10.6 || ^11.4", "drupal/core-project-message": "^10.6 || ^11.4",
"drupal/core-recommended": "^10.6 || ^11.4", "drupal/core-recommended": "^10.6 || ^11.4",
Generated
+62 -1
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "e071b03e241cbbad2aad8eaf0d22c0d0", "content-hash": "f548aad099931f4a5e3c7884675294fe",
"packages": [ "packages": [
{ {
"name": "asm89/stack-cors", "name": "asm89/stack-cors",
@@ -2533,6 +2533,67 @@
"issues": "http://drupal.org/project/config_ignore" "issues": "http://drupal.org/project/config_ignore"
} }
}, },
{
"name": "drupal/config_pages",
"version": "4.0.1",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/config_pages.git",
"reference": "4.0.1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/config_pages-4.0.1.zip",
"reference": "4.0.1",
"shasum": "5a0c3fdcba4668da89d8bb74bff363bc6233268d"
},
"require": {
"drupal/core": "^10 || ^11 || ^12"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "4.0.1",
"datestamp": "1786281581",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
},
"drush": {
"services": {
"drush.services.yml": "^9"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "qwaygon",
"homepage": "https://www.drupal.org/user/636624"
},
{
"name": "rachinskiy",
"homepage": "https://www.drupal.org/user/3575731"
},
{
"name": "shumer",
"homepage": "https://www.drupal.org/user/2297432"
}
],
"description": "ConfigPages module",
"homepage": "http://drupal.org/project/config_pages",
"keywords": [
"Drupal"
],
"support": {
"source": "http://cgit.drupalcode.org/config_pages",
"issues": "http://drupal.org/project/issues/config_pages"
}
},
{ {
"name": "drupal/config_update", "name": "drupal/config_update",
"version": "2.0.0-alpha4", "version": "2.0.0-alpha4",
@@ -0,0 +1,22 @@
uuid: e15bfd00-9459-45ef-b5f7-a0769b80a6ac
langcode: fr
status: true
dependencies:
module:
- config_pages
theme:
- leshed
id: leshed_config_pages
theme: leshed
region: header_right
weight: 0
provider: null
plugin: config_pages_block
settings:
id: config_pages_block
label: 'ConfigPages Block'
label_display: '0'
provider: config_pages
config_page_type: infos_burger
config_page_view_mode: full
visibility: { }
@@ -11,7 +11,7 @@ dependencies:
id: leshed_navigationprincipale id: leshed_navigationprincipale
theme: leshed theme: leshed
region: header_right region: header_right
weight: 0 weight: -2
provider: null provider: null
plugin: 'menu_block:main' plugin: 'menu_block:main'
settings: settings:
@@ -9,7 +9,7 @@ dependencies:
id: leshed_selecteurdelangue id: leshed_selecteurdelangue
theme: leshed theme: leshed
region: header_right region: header_right
weight: 0 weight: -1
provider: null provider: null
plugin: 'language_block:language_interface' plugin: 'language_block:language_interface'
settings: settings:
@@ -0,0 +1,17 @@
uuid: 50c42005-f091-4806-ad0f-dfda97bd85dd
langcode: fr
status: true
dependencies: { }
id: infos_burger
label: 'Infos Burger'
token: true
context:
show_warning: true
group:
language: true
fallback:
language: fr
menu:
path: /admin/content/infos_burger
weight: 0
description: ''
@@ -0,0 +1,24 @@
uuid: 90723377-6fa5-4c95-91cd-ae0e62c72d5e
langcode: fr
status: true
dependencies:
config:
- config_pages.type.infos_burger
- field.field.config_pages.infos_burger.field_texte
module:
- text
id: config_pages.infos_burger.default
targetEntityType: config_pages
bundle: infos_burger
mode: default
content:
field_texte:
type: text_textarea
weight: 0
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
hidden:
label: true
@@ -0,0 +1,23 @@
uuid: e8a7ad50-db9c-4c4d-9c37-81cd68235cea
langcode: fr
status: true
dependencies:
config:
- config_pages.type.infos_burger
- field.field.config_pages.infos_burger.field_texte
module:
- text
id: config_pages.infos_burger.default
targetEntityType: config_pages
bundle: infos_burger
mode: default
content:
field_texte:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
@@ -0,0 +1,13 @@
uuid: 1bf59c2b-1fba-462e-b05d-21a4e795ff78
langcode: fr
status: true
dependencies:
module:
- config_pages
_core:
default_config_hash: VYERDzPNi1-oUm7KMLjol4oLcjbHr-onKbitt4dZuN0
id: config_pages.full
label: Complet
description: null
targetEntityType: config_pages
cache: true
+1
View File
@@ -15,6 +15,7 @@ module:
config: 0 config: 0
config_devel: 0 config_devel: 0
config_ignore: 0 config_ignore: 0
config_pages: 0
config_translation: 0 config_translation: 0
config_update: 0 config_update: 0
content_lock: 0 content_lock: 0
@@ -0,0 +1,24 @@
uuid: 1073c8fe-983b-4bfe-98ad-033a71f7cc02
langcode: fr
status: true
dependencies:
config:
- config_pages.type.infos_burger
- field.storage.config_pages.field_texte
- filter.format.wysiwyg
module:
- text
id: config_pages.infos_burger.field_texte
field_name: field_texte
entity_type: config_pages
bundle: infos_burger
label: Texte
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- wysiwyg
field_type: text_long
@@ -0,0 +1,19 @@
uuid: 7ccd054c-d6ba-45f3-9d15-c1fe9535970d
langcode: fr
status: true
dependencies:
module:
- config_pages
- text
id: config_pages.field_texte
field_name: field_texte
entity_type: config_pages
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
@@ -0,0 +1 @@
label: Full
+2
View File
@@ -13,6 +13,7 @@ dependencies:
- taxonomy.vocabulary.type_de_personne - taxonomy.vocabulary.type_de_personne
- taxonomy.vocabulary.type_de_projet - taxonomy.vocabulary.type_de_projet
module: module:
- config_pages
- content_translation - content_translation
- devel - devel
- file - file
@@ -62,6 +63,7 @@ permissions:
- 'edit any personne content' - 'edit any personne content'
- 'edit any projet content' - 'edit any projet content'
- 'edit any static content' - 'edit any static content'
- 'edit config_pages entity'
- 'edit terms in type_d_evenement' - 'edit terms in type_d_evenement'
- 'edit terms in type_de_personne' - 'edit terms in type_de_personne'
- 'edit terms in type_de_projet' - 'edit terms in type_de_projet'
+4
View File
@@ -2,7 +2,10 @@ uuid: 16c2c309-ea13-413c-9a93-110f729881b7
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
config:
- config_pages.type.infos_burger
module: module:
- config_pages
- system - system
_core: _core:
default_config_hash: jyuRv_5UazPqBsQ9L4kDkcVvxtGr0WytAUoWf1LhqOk default_config_hash: jyuRv_5UazPqBsQ9L4kDkcVvxtGr0WytAUoWf1LhqOk
@@ -12,3 +15,4 @@ weight: -10
is_admin: false is_admin: false
permissions: permissions:
- 'access content' - 'access content'
- 'view infos_burger config page entity'
+4
View File
@@ -2,7 +2,10 @@ uuid: c59130e2-8a71-4bf6-a025-c98e21ab02e8
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
config:
- config_pages.type.infos_burger
module: module:
- config_pages
- system - system
_core: _core:
default_config_hash: OVp5431n1LmiRh_QaOpDS1hEEFvtjRqisASIU0tYIwo default_config_hash: OVp5431n1LmiRh_QaOpDS1hEEFvtjRqisASIU0tYIwo
@@ -12,3 +15,4 @@ weight: -9
is_admin: false is_admin: false
permissions: permissions:
- 'access content' - 'access content'
- 'view infos_burger config page entity'
+3
View File
@@ -3,6 +3,7 @@ langcode: fr
status: true status: true
dependencies: dependencies:
config: config:
- config_pages.type.infos_burger
- filter.format.wysiwyg - filter.format.wysiwyg
- node.type.evenement - node.type.evenement
- node.type.lieu - node.type.lieu
@@ -14,6 +15,7 @@ dependencies:
- taxonomy.vocabulary.type_de_personne - taxonomy.vocabulary.type_de_personne
- taxonomy.vocabulary.type_de_projet - taxonomy.vocabulary.type_de_projet
module: module:
- config_pages
- content_translation - content_translation
- filter - filter
- leshed_svg_export - leshed_svg_export
@@ -50,6 +52,7 @@ permissions:
- 'edit any personne content' - 'edit any personne content'
- 'edit any projet content' - 'edit any projet content'
- 'edit any static content' - 'edit any static content'
- 'edit infos_burger config page entity'
- 'edit terms in type_d_evenement' - 'edit terms in type_d_evenement'
- 'edit terms in type_de_personne' - 'edit terms in type_de_personne'
- 'edit terms in type_de_projet' - 'edit terms in type_de_projet'
File diff suppressed because one or more lines are too long
@@ -7,6 +7,7 @@
@use "../abstracts/variables" as *; @use "../abstracts/variables" as *;
@use "../abstracts/fluid" as *; @use "../abstracts/fluid" as *;
@use "../abstracts/breakpoints" as *;
header[role="banner"]{ header[role="banner"]{
@@ -99,8 +100,11 @@ header[role="banner"]{
position:fixed; position:fixed;
top:$header-height-fluid; top:$header-height-fluid;
left: 0; left: 0;
width:100vw; // border-box : les 100vw incluent le padding → contenu = $layout_width
padding: 0 calc((100vw - $layout_width) / 2) 0 calc((100vw - $layout_width) / 2); // sur grand écran, pleine largeur (padding 0) en dessous.
box-sizing: border-box;
width: 100vw;
padding-inline: max(0px, calc((100vw - #{$layout_width}) / 2));
background-color: rgba(255,255,255,0.5); background-color: rgba(255,255,255,0.5);
backdrop-filter: blur(9px); backdrop-filter: blur(9px);
@@ -114,6 +118,31 @@ header[role="banner"]{
>div.inner-wrapper{ >div.inner-wrapper{
padding: 0 $layout_padding; padding: 0 $layout_padding;
// Grid : nav + langue empilées à gauche, panneau config à droite
// (sur toute la hauteur) ; une seule colonne sur mobile, dans l'ordre
// du DOM (poids des blocs : nav, langue, config).
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(16rem, 1fr);
// 3e ligne en 1fr : absorbe la hauteur du panneau config, sinon
// elle étirerait la ligne de la nav et décollerait la langue.
grid-template-rows: auto auto 1fr;
column-gap: $colsgap;
align-items: start;
>*{ grid-column: 1; }
>div#block-leshed-config-pages{
grid-column: 2;
grid-row: 1 / -1;
}
@media #{$mobile}{
grid-template-columns: minmax(0, 1fr);
grid-template-rows: none;
>div#block-leshed-config-pages{
grid-column: 1;
grid-row: auto;
}
}
} }
nav#block-leshed-navigationprincipale{ nav#block-leshed-navigationprincipale{