6 Commits

Author SHA1 Message Date
3a68d5a2c8 home map label 2025-03-01 23:11:49 +01:00
601a784163 poids fichier 2025-02-03 12:21:20 +01:00
5cbaa3e7e3 video site 2025-02-03 12:00:39 +01:00
7f0227bb06 taile fichier display none 2025-01-16 10:18:22 +01:00
b3acc28592 Merge branch 'master' of gitea-figureslibres.io:bachir/drupal-quartiersdedemain 2025-01-13 12:02:59 +01:00
d91e0aa86e taille docs 2025-01-13 12:02:29 +01:00
5 changed files with 32 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
function q2d_mod_theme() { function q2d_mod_theme() {
return array( return array(
'svg_mapsites' => array( 'svg_mapsites' => array(
'variables' => array('vpw' => null, 'vph' => null, 'sites' => []), 'variables' => array('vpw' => null, 'vph' => null, 'sites' => [], 'label' => null),
), ),
); );
} }

View File

@@ -101,6 +101,7 @@ class SitesMap extends BlockBase {
], ],
'svg_mapsites' => [ 'svg_mapsites' => [
'#theme' => 'svg_mapsites', '#theme' => 'svg_mapsites',
'#label' => "Les 10 sites de projet",
'#sites' => $sites_paths, '#sites' => $sites_paths,
'#vpw' => $vp_w, '#vpw' => $vp_w,
'#vph' => $vp_h, '#vph' => $vp_h,
@@ -117,6 +118,7 @@ class SitesMap extends BlockBase {
// '#markup' => $this->t('Hello, Sites Map!'), // '#markup' => $this->t('Hello, Sites Map!'),
// ]; // ];
} }
public function getCacheMaxAge() { public function getCacheMaxAge() {
return 0; return 0;
} }

View File

@@ -1,4 +1,7 @@
<div id="sites-map-container"> <div id="sites-map-container">
<h2>{{label}}</h2>
{# <svg {{ svg_attributes }}> {# <svg {{ svg_attributes }}>
<path {{ path_attributes }}></path> <path {{ path_attributes }}></path>
</svg> #} </svg> #}

View File

@@ -3383,9 +3383,6 @@ body {
border-bottom: none; border-bottom: none;
padding-bottom: 0; padding-bottom: 0;
} }
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_field_parties div {
width: fit-content;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_parties) { .node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_parties) {
margin-top: 2rem; margin-top: 2rem;
width: 100%; width: 100%;
@@ -3415,6 +3412,12 @@ body {
font-size: 0.8rem; font-size: 0.8rem;
} }
} }
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second .paragraph--type--site-video .field_field_titre_site {
display: none;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second .paragraph--type--site-video .field_field_video {
margin-bottom: 2rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second .paragraph--type--site-diapo .field_field_images .diaporama { .node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second .paragraph--type--site-diapo .field_field_images .diaporama {
display: flex !important; display: flex !important;
flex-direction: row !important; flex-direction: row !important;
@@ -3568,6 +3571,10 @@ body {
flex-direction: column; flex-direction: column;
} }
.html.js.sr body.node-type-site.node-id-40 div.dialog-off-canvas-main-canvas div#page-node.layout-container main div.layout-content div.content_container div.layout.layout--threecol-25-50-25 div.layout__region.layout__region--third div.block-region-third div div.field_field_documents div div span {
visibility: hidden;
}
main { main {
background-color: #f6f7f3; background-color: #f6f7f3;
} }

View File

@@ -244,7 +244,7 @@
} }
.field_field_parties{ .field_field_parties{
div{width: fit-content;} // div{width: fit-content;}
// width: 70%; // width: 70%;
} }
div:has(.field_field_parties){ div:has(.field_field_parties){
@@ -279,6 +279,15 @@
} }
} }
.paragraph--type--site-video{
.field_field_titre_site{
// margin-bottom: 1rem;
display: none;
}
.field_field_video{
margin-bottom: 2rem;
}
}
.paragraph--type--site-diapo{ .paragraph--type--site-diapo{
.field_field_images { .field_field_images {
.diaporama{ .diaporama{
@@ -438,6 +447,8 @@
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
} }
} }
} }
} }
@@ -448,4 +459,7 @@
.field_field_liens_site > div:nth-child(2) > div:nth-child(1){ .field_field_liens_site > div:nth-child(2) > div:nth-child(1){
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.html.js.sr body.node-type-site.node-id-40 div.dialog-off-canvas-main-canvas div#page-node.layout-container main div.layout-content div.content_container div.layout.layout--threecol-25-50-25 div.layout__region.layout__region--third div.block-region-third div div.field_field_documents div div span{
visibility: hidden;
}