css bouton zoom projet

This commit is contained in:
2023-07-12 19:50:33 +02:00
parent 9ba0e2b6b8
commit 01e1cc89e5
4 changed files with 37 additions and 16 deletions
+13 -11
View File
@@ -690,9 +690,9 @@ a {
.path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f { .path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f {
display: flex; display: flex;
flex-flow: row-reverse; flex-flow: row-reverse;
top: -109px; background: rgba(0, 158, 227, 0.2);
position: relative; padding-right: 10%;
right: 200px; } padding-bottom: 4rem; }
.path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f .field--type-text-with-summary { .path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f .field--type-text-with-summary {
height: fit-content; height: fit-content;
padding: 0.4rem 1rem; padding: 0.4rem 1rem;
@@ -702,14 +702,16 @@ a {
border: 2px solid #009ee3; border: 2px solid #009ee3;
list-style: none; list-style: none;
display: inline-flex; } display: inline-flex; }
.path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f a { .path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f .field--type-text-with-summary p {
text-transform: uppercase; margin: 0; }
font-weight: 700; .path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f .field--type-text-with-summary a {
color: #009ee3; text-transform: uppercase;
display: inline-flex; font-weight: 700;
align-items: center; } color: #009ee3;
.path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f a::after { display: inline-flex;
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); } align-items: center; }
.path-frontpage .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f .field--type-text-with-summary a::after {
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.path-frontpage .block-views-blockprojets-block-2 #leaflet-map-view-projets-block-2 { .path-frontpage .block-views-blockprojets-block-2 #leaflet-map-view-projets-block-2 {
height: 500px !important; } height: 500px !important; }
+13
View File
@@ -21,6 +21,7 @@ function eql_preprocess_html(&$variables) {
function eql_preprocess_node(&$variables){ function eql_preprocess_node(&$variables){
$node = &$variables['node']; $node = &$variables['node'];
$variables['attributes']['class'][] = 'node-type-' . $node->gettype(); $variables['attributes']['class'][] = 'node-type-' . $node->gettype();
// $variables['elements']['content_bottom'] = []; /////////////////////////////
if($node->gettype() == "actualite") { if($node->gettype() == "actualite") {
$actu_type = $node->get('field_actu_type')->getString(); $actu_type = $node->get('field_actu_type')->getString();
$variables['attributes']['class'][] = 'actu-type-' . $actu_type; $variables['attributes']['class'][] = 'actu-type-' . $actu_type;
@@ -30,6 +31,18 @@ function eql_preprocess_node(&$variables){
$variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste; $variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
} }
// foreach ($variables['elements'] as $key => $value){ //////////////////////////////////
// if(isset($value['#view_mode']) && $value['#view_mode']== 'teaser'){
// if($value['elements']=="field_region" || $value['#derivative_plugin_id']=="node:field_adresse"){
// $variables['elements']['content_bottom'][] = $variables["elements"]["field_incube"]["#field_name"];
// }
// }
// }
} }
+8 -5
View File
@@ -459,10 +459,12 @@
.block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f{ .block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f{
display: flex; display: flex;
flex-flow: row-reverse; flex-flow: row-reverse;
top: -109px; // top: -109px;
position: relative; // position: relative;
right: 200px; // right: 200px;
background: $background-actus;
padding-right:10%;
padding-bottom: 4rem;
.field--type-text-with-summary{ .field--type-text-with-summary{
height: fit-content; height: fit-content;
padding: 0.4rem 1rem; padding: 0.4rem 1rem;
@@ -472,7 +474,7 @@
border: 2px solid $blue-light; border: 2px solid $blue-light;
list-style: none; list-style: none;
display: inline-flex; display: inline-flex;
} p{margin: 0;}
a{ a{
text-transform: uppercase; text-transform: uppercase;
font-weight: 700; font-weight: 700;
@@ -485,6 +487,7 @@
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
} }
}
} }
//carte //carte
@@ -94,6 +94,9 @@
<div{{ content_attributes }}> <div{{ content_attributes }}>
{{ content }} {{ content }}
<div class="filtres_projet">
{{content.bottom}}
</div>
</div> </div>
</article> </article>