Compare commits

...

4 Commits

39 changed files with 838 additions and 555 deletions

133
composer.lock generated
View File

@ -2339,17 +2339,17 @@
}, },
{ {
"name": "drupal/block_class", "name": "drupal/block_class",
"version": "4.0.0", "version": "2.0.12",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/block_class.git", "url": "https://git.drupalcode.org/project/block_class.git",
"reference": "4.0.0" "reference": "2.0.12"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/block_class-4.0.0.zip", "url": "https://ftp.drupal.org/files/projects/block_class-2.0.12.zip",
"reference": "4.0.0", "reference": "2.0.12",
"shasum": "4ed97a78db9b52f28e46d377947fecfb3a8c9580" "shasum": "cc3945f8038bcc9bb48eff897df332aa952d62e6"
}, },
"require": { "require": {
"drupal/core": "^9 || ^10 || ^11" "drupal/core": "^9 || ^10 || ^11"
@ -2357,8 +2357,8 @@
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "4.0.0", "version": "2.0.12",
"datestamp": "1730640283", "datestamp": "1723243074",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
@ -2618,30 +2618,27 @@
}, },
{ {
"name": "drupal/config_ignore", "name": "drupal/config_ignore",
"version": "3.3.0", "version": "2.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/config_ignore.git", "url": "https://git.drupalcode.org/project/config_ignore.git",
"reference": "8.x-3.3" "reference": "8.x-2.4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/config_ignore-8.x-3.3.zip", "url": "https://ftp.drupal.org/files/projects/config_ignore-8.x-2.4.zip",
"reference": "8.x-3.3", "reference": "8.x-2.4",
"shasum": "4446811ecb023820a57c227d35c034e0d4363a70" "shasum": "e0e45dde2d6927c5d26de59f352792fb6cf26554"
}, },
"require": { "require": {
"drupal/core": "^8.8 || ^9 || ^10 || ^11" "drupal/config_filter": "^1 || ^2",
}, "drupal/core": "^8 || ^9 || ^10"
"require-dev": {
"drupal/config_filter": "^1.8||^2.2",
"drush/drush": "^10 || ^11 || ^12"
}, },
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "8.x-3.3", "version": "8.x-2.4",
"datestamp": "1713299496", "datestamp": "1676045435",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
@ -2669,11 +2666,12 @@
"homepage": "https://www.drupal.org/user/413139" "homepage": "https://www.drupal.org/user/413139"
} }
], ],
"description": "Ignore certain configuration during import and export.", "description": "Ignore certain configuration during import.",
"homepage": "http://drupal.org/project/config_ignore", "homepage": "http://drupal.org/project/config_ignore",
"support": { "support": {
"source": "https://git.drupalcode.org/project/config_ignore", "source": "https://git.drupalcode.org/project/config_ignore",
"issues": "http://drupal.org/project/config_ignore" "issues": "https://drupal.org/project/config_ignore",
"irc": "irc://irc.freenode.org/drupal-contribute"
} }
}, },
{ {
@ -4129,26 +4127,26 @@
}, },
{ {
"name": "drupal/extlink", "name": "drupal/extlink",
"version": "2.0.4", "version": "1.7.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/extlink.git", "url": "https://git.drupalcode.org/project/extlink.git",
"reference": "2.0.4" "reference": "8.x-1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/extlink-2.0.4.zip", "url": "https://ftp.drupal.org/files/projects/extlink-8.x-1.7.zip",
"reference": "2.0.4", "reference": "8.x-1.7",
"shasum": "0331ef3457d3a1701f01e04f8256bdd823ea3512" "shasum": "38650688b5a58496db59f40b2a7f36c4bedcbfb4"
}, },
"require": { "require": {
"drupal/core": "^10 || ^11" "drupal/core": "^8 || ^9 || ^10"
}, },
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "2.0.4", "version": "8.x-1.7",
"datestamp": "1732565828", "datestamp": "1665770295",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
@ -4864,21 +4862,20 @@
}, },
{ {
"name": "drupal/inline_entity_form", "name": "drupal/inline_entity_form",
"version": "3.0.0-rc20", "version": "1.0.0-rc17",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/inline_entity_form.git", "url": "https://git.drupalcode.org/project/inline_entity_form.git",
"reference": "3.0.0-rc20" "reference": "8.x-1.0-rc17"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/inline_entity_form-3.0.0-rc20.zip", "url": "https://ftp.drupal.org/files/projects/inline_entity_form-8.x-1.0-rc17.zip",
"reference": "3.0.0-rc20", "reference": "8.x-1.0-rc17",
"shasum": "c9ad4572bce4260d1d233a0c3196e4ff0915e4ee" "shasum": "626622e01cf7a2d2977fdc06ae09afd5a814e09b"
}, },
"require": { "require": {
"drupal/core": "^8.8 || ^9 || ^10 || ^11", "drupal/core": "^8.8 || ^9 || ^10",
"drupal/rat": "^1.0.0@stable",
"php": ">=7.1" "php": ">=7.1"
}, },
"require-dev": { "require-dev": {
@ -4887,8 +4884,8 @@
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "3.0.0-rc20", "version": "8.x-1.0-rc17",
"datestamp": "1722000368", "datestamp": "1703020130",
"security-coverage": { "security-coverage": {
"status": "not-covered", "status": "not-covered",
"message": "RC releases are not covered by Drupal security advisories." "message": "RC releases are not covered by Drupal security advisories."
@ -6716,48 +6713,6 @@
"source": "https://git.drupalcode.org/project/profile" "source": "https://git.drupalcode.org/project/profile"
} }
}, },
{
"name": "drupal/rat",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/rat.git",
"reference": "28202b02262a39ac8dbbfd43696b67c0c8c46b71"
},
"dist": {
"type": "zip",
"url": "https://git.drupalcode.org/api/v4/projects/project%2Frat/repository/archive.zip?sha=28202b02262a39ac8dbbfd43696b67c0c8c46b71",
"reference": "28202b02262a39ac8dbbfd43696b67c0c8c46b71",
"shasum": ""
},
"require": {
"php": "^7.4 || ^8.0"
},
"require-dev": {
"drupal/core": "^9.4",
"drupal/core-dev": "^9.4"
},
"type": "library",
"autoload": {
"psr-4": {
"Drupal\\rat\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"gpl-2.0-or-later"
],
"authors": [
{
"name": "Merlin",
"email": "merlin@geeks4change.net"
}
],
"support": {
"source": "https://git.drupalcode.org/project/rat/-/tree/1.0.0"
},
"time": "2023-07-19T22:22:22+00:00"
},
{ {
"name": "drupal/redirect", "name": "drupal/redirect",
"version": "1.11.0", "version": "1.11.0",
@ -7979,21 +7934,20 @@
}, },
{ {
"name": "drupal/views_bulk_edit", "name": "drupal/views_bulk_edit",
"version": "3.0.0", "version": "2.9.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/views_bulk_edit.git", "url": "https://git.drupalcode.org/project/views_bulk_edit.git",
"reference": "3.0.0" "reference": "8.x-2.9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/views_bulk_edit-3.0.0.zip", "url": "https://ftp.drupal.org/files/projects/views_bulk_edit-8.x-2.9.zip",
"reference": "3.0.0", "reference": "8.x-2.9",
"shasum": "3b16079aa95fb4834561fcfd1197cce73b7f4b88" "shasum": "db45a8cc9ac629859374b24974eafcef257e4387"
}, },
"require": { "require": {
"drupal/core": "^9.4 || ^10 || ^11", "drupal/core": "^9.4 || ^10"
"php": ">=8.1"
}, },
"require-dev": { "require-dev": {
"drupal/views_bulk_operations": "~4.2.4" "drupal/views_bulk_operations": "~4.2.4"
@ -8004,8 +7958,8 @@
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "3.0.0", "version": "8.x-2.9",
"datestamp": "1725358398", "datestamp": "1690222256",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
@ -13161,6 +13115,7 @@
"drupal/agreement": 15, "drupal/agreement": 15,
"drupal/bulkdelete": 20, "drupal/bulkdelete": 20,
"drupal/config_devel": 20, "drupal/config_devel": 20,
"drupal/config_ignore": 5,
"drupal/config_update": 15, "drupal/config_update": 15,
"drupal/context": 5, "drupal/context": 5,
"drupal/date_range_formatter": 20, "drupal/date_range_formatter": 20,

View File

@ -1,4 +1,4 @@
_core: _core:
default_config_hash: LzdDtE3Im_Ysio7g1Eo8ymSMq0mgSQMPzv0khsr_J64 default_config_hash: LzdDtE3Im_Ysio7g1Eo8ymSMq0mgSQMPzv0khsr_J64
mode: simple
ignored_config_entities: { } ignored_config_entities: { }
mode: simple

View File

@ -11,7 +11,6 @@ dependencies:
- field.field.node.projet.field_diaporama - field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro - field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte - field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens - field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel - field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes - field.field.node.projet.field_pieces_jointes
@ -27,7 +26,6 @@ dependencies:
- field_group - field_group
- file - file
- image - image
- leaflet
- link - link
- paragraphs - paragraphs
- path - path
@ -46,7 +44,7 @@ third_party_settings:
label: Tabs label: Tabs
region: content region: content
parent_name: '' parent_name: ''
weight: 3 weight: 1
format_type: tabs format_type: tabs
format_settings: format_settings:
classes: '' classes: ''
@ -59,10 +57,10 @@ third_party_settings:
children: children:
- field_sous_titre - field_sous_titre
- field_localisation_textuel - field_localisation_textuel
- field_intro
- field_texte - field_texte
- field_chiffres_clefs - field_chiffres_clefs
- field_chronologie - field_chronologie
- field_intro
label: Contenus label: Contenus
region: content region: content
parent_name: group_tabs parent_name: group_tabs
@ -78,9 +76,8 @@ third_party_settings:
required_fields: true required_fields: true
group_carte: group_carte:
children: children:
- field_carte
- field_libelles_carte
- field_legende_carte - field_legende_carte
- field_carte
label: carte label: carte
region: content region: content
parent_name: group_tabs parent_name: group_tabs
@ -136,7 +133,7 @@ third_party_settings:
label: Details label: Details
region: content region: content
parent_name: '' parent_name: ''
weight: 4 weight: 2
format_type: details_sidebar format_type: details_sidebar
format_settings: format_settings:
classes: '' classes: ''
@ -212,69 +209,22 @@ content:
placeholder: '' placeholder: ''
third_party_settings: { } third_party_settings: { }
field_carte: field_carte:
type: leaflet_widget_default type: paragraphs
weight: 3 weight: 4
region: content region: content
settings: settings:
map: title: Paragraphe
leaflet_map: 'OSM Mapnik' title_plural: Paragraphs
height: 400 edit_mode: open
auto_center: 1 closed_mode: summary
map_position: autocollapse: none
force: true closed_mode_threshold: 0
center: add_mode: dropdown
lat: 46.751944 form_display_mode: default
lon: 2.416667 default_paragraph_type: ''
zoomControlPosition: topleft features:
zoom: 5 collapse_edit_all: collapse_edit_all
minZoom: 1 duplicate: duplicate
maxZoom: 18
zoomFiner: 0
scroll_zoom_enabled: 1
input:
show: true
readonly: false
toolbar:
position: topright
marker: defaultMarker
drawPolyline: true
drawRectangle: true
drawPolygon: true
drawCircle: false
drawText: false
editMode: false
dragMode: false
cutPolygon: false
removalMode: false
rotateMode: false
reset_map:
control: false
options: '{"position":"topleft","title":"Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
locate:
control: false
options: '{"position":"topright","setView":"untilPanOrZoom","returnToPrevBounds":true,"keepCurrentZoomLevel":true,"strings":{"title":"Locate my position"}}'
automatic: false
geocoder:
control: false
settings:
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
geometry_validation: 0
feature_properties:
values: ''
third_party_settings: { } third_party_settings: { }
field_chiffres_clefs: field_chiffres_clefs:
type: paragraphs type: paragraphs
@ -348,26 +298,12 @@ content:
third_party_settings: { } third_party_settings: { }
field_legende_carte: field_legende_carte:
type: text_textarea type: text_textarea
weight: 32 weight: 3
region: content region: content
settings: settings:
rows: 5 rows: 5
placeholder: '' placeholder: ''
third_party_settings: { } third_party_settings: { }
field_libelles_carte:
type: string_textfield
weight: 4
region: content
settings:
size: 60
placeholder: 'Un libellé par repère ou zone'
third_party_settings:
maxlength:
maxlength_js: null
maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
maxlength_js_enforce: false
advanced_text_formatter:
show_token_tree: 0
field_liens: field_liens:
type: link_default type: link_default
weight: 5 weight: 5

View File

@ -0,0 +1,99 @@
uuid: c23cab46-cadb-4b78-a0f1-48212974f8a5
langcode: fr
status: true
dependencies:
config:
- field.field.paragraph.geofield_projet.field_carte
- field.field.paragraph.geofield_projet.field_libele
- field.field.paragraph.geofield_projet.field_principal
- paragraphs.paragraphs_type.geofield_projet
module:
- leaflet
id: paragraph.geofield_projet.default
targetEntityType: paragraph
bundle: geofield_projet
mode: default
content:
field_carte:
type: leaflet_widget_default
weight: 1
region: content
settings:
map:
leaflet_map: 'OSM Mapnik'
height: 400
auto_center: 1
map_position:
force: false
center:
lat: 0.0
lon: 0.0
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
scroll_zoom_enabled: 1
input:
show: true
readonly: false
toolbar:
position: topright
marker: defaultMarker
drawPolyline: true
drawRectangle: true
drawPolygon: true
drawCircle: false
drawText: false
editMode: true
dragMode: true
cutPolygon: false
removalMode: true
rotateMode: false
reset_map:
control: false
options: '{"position": "topleft", "title": "Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
locate:
control: false
options: '{"position": "topright", "setView": "untilPanOrZoom", "returnToPrevBounds":true, "keepCurrentZoomLevel": true, "strings": {"title": "Locate my position"}}'
automatic: false
geocoder:
control: false
settings:
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
geometry_validation: false
feature_properties:
values: ''
third_party_settings: { }
field_libele:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_principal:
type: boolean_checkbox
weight: 0
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
status: true

View File

@ -11,7 +11,6 @@ dependencies:
- field.field.node.projet.field_diaporama - field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro - field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte - field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens - field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel - field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes - field.field.node.projet.field_pieces_jointes
@ -25,7 +24,6 @@ dependencies:
module: module:
- entity_reference_revisions - entity_reference_revisions
- file - file
- geofield
- image - image
- link - link
- text - text
@ -44,13 +42,13 @@ content:
weight: 14 weight: 14
region: content region: content
field_carte: field_carte:
type: geofield_default type: entity_reference_revisions_entity_view
label: above label: above
settings: settings:
output_format: wkt view_mode: default
output_escape: true link: ''
third_party_settings: { } third_party_settings: { }
weight: 11 weight: 20
region: content region: content
field_chiffres_clefs: field_chiffres_clefs:
type: entity_reference_revisions_entity_view type: entity_reference_revisions_entity_view
@ -104,14 +102,6 @@ content:
third_party_settings: { } third_party_settings: { }
weight: 19 weight: 19
region: content region: content
field_libelles_carte:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 12
region: content
field_liens: field_liens:
type: link type: link
label: hidden label: hidden

View File

@ -12,7 +12,6 @@ dependencies:
- field.field.node.projet.field_diaporama - field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro - field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte - field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens - field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel - field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes - field.field.node.projet.field_pieces_jointes
@ -28,7 +27,6 @@ dependencies:
- entity_reference_revisions - entity_reference_revisions
- file - file
- image_field_caption - image_field_caption
- leaflet
- link - link
- text - text
- user - user
@ -38,96 +36,11 @@ bundle: projet
mode: full mode: full
content: content:
field_carte: field_carte:
type: leaflet_formatter_default type: entity_reference_revisions_entity_view
label: visually_hidden label: above
settings: settings:
multiple_map: false view_mode: default
leaflet_map: 'OSM Mapnik' link: ''
height: 400
height_unit: px
hide_empty_map: false
disable_wheel: false
gesture_handling: false
fitbounds_options: '{"padding":[0,0]}'
reset_map:
control: false
options: '{"position":"topleft","title":"Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
locate:
control: false
options: '{"position":"topright","setView":"untilPanOrZoom","returnToPrevBounds":true,"keepCurrentZoomLevel":true,"strings":{"title":"Locate my position"}}'
automatic: false
leaflet_tooltip:
value: ''
options: '{"permanent":false,"direction":"center"}'
popup: false
popup_content: ''
leaflet_popup:
control: '0'
content: '[node:field_libelles_carte]'
options: '{"maxWidth":"300","minWidth":"50","autoPan":true}'
map_position:
force: false
center:
lat: 0.0
lon: 0.0
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
icon:
iconType: marker
iconUrl: ''
shadowUrl: ''
className: ''
iconSize:
x: ''
'y': ''
iconAnchor:
x: ''
'y': ''
shadowSize:
x: ''
'y': ''
shadowAnchor:
x: ''
'y': ''
popupAnchor:
x: ''
'y': ''
html: '<div></div>'
html_class: leaflet-map-divicon
circle_marker_options: '{"radius":100,"color":"red","fillColor":"#f03","fillOpacity":0.5}'
leaflet_markercluster:
control: false
options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds": false}'
excluded: ''
include_path: false
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
feature_properties:
values: ''
geocoder:
control: false
settings:
autocomplete:
placeholder: 'Search Address'
title: 'Search an Address on the Map'
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
map_lazy_load:
lazy_load: false
third_party_settings: { } third_party_settings: { }
weight: 7 weight: 7
region: content region: content
@ -147,7 +60,7 @@ content:
view_mode: default view_mode: default
link: '' link: ''
third_party_settings: { } third_party_settings: { }
weight: 10 weight: 9
region: content region: content
field_collectif_du_projet: field_collectif_du_projet:
type: entity_reference_revisions_entity_view type: entity_reference_revisions_entity_view
@ -156,7 +69,7 @@ content:
view_mode: default view_mode: default
link: '' link: ''
third_party_settings: { } third_party_settings: { }
weight: 11 weight: 10
region: content region: content
field_diaporama: field_diaporama:
type: image_caption type: image_caption
@ -181,14 +94,6 @@ content:
label: above label: above
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
weight: 9
region: content
field_libelles_carte:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 8 weight: 8
region: content region: content
field_liens: field_liens:
@ -201,7 +106,7 @@ content:
rel: '' rel: ''
target: '' target: ''
third_party_settings: { } third_party_settings: { }
weight: 14 weight: 13
region: content region: content
field_localisation_textuel: field_localisation_textuel:
type: string type: string
@ -217,7 +122,7 @@ content:
settings: settings:
use_description_as_link_text: true use_description_as_link_text: true
third_party_settings: { } third_party_settings: { }
weight: 13 weight: 12
region: content region: content
field_pour_aller_plus_loin: field_pour_aller_plus_loin:
type: entity_reference_label type: entity_reference_label
@ -225,7 +130,7 @@ content:
settings: settings:
link: true link: true
third_party_settings: { } third_party_settings: { }
weight: 12 weight: 11
region: content region: content
field_sous_titre: field_sous_titre:
type: string type: string

View File

@ -12,7 +12,6 @@ dependencies:
- field.field.node.projet.field_diaporama - field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro - field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte - field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens - field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel - field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes - field.field.node.projet.field_pieces_jointes
@ -52,7 +51,6 @@ hidden:
field_diaporama: true field_diaporama: true
field_intro: true field_intro: true
field_legende_carte: true field_legende_carte: true
field_libelles_carte: true
field_liens: true field_liens: true
field_localisation_textuel: true field_localisation_textuel: true
field_pieces_jointes: true field_pieces_jointes: true

View File

@ -12,7 +12,6 @@ dependencies:
- field.field.node.projet.field_diaporama - field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro - field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte - field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens - field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel - field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes - field.field.node.projet.field_pieces_jointes
@ -77,7 +76,6 @@ hidden:
field_collectif_du_projet: true field_collectif_du_projet: true
field_intro: true field_intro: true
field_legende_carte: true field_legende_carte: true
field_libelles_carte: true
field_liens: true field_liens: true
field_pieces_jointes: true field_pieces_jointes: true
field_poids: true field_poids: true

View File

@ -0,0 +1,124 @@
uuid: 6e0e14d8-dc29-4d65-9f7f-5f510d33ce93
langcode: fr
status: true
dependencies:
config:
- field.field.paragraph.geofield_projet.field_carte
- field.field.paragraph.geofield_projet.field_libele
- field.field.paragraph.geofield_projet.field_principal
- paragraphs.paragraphs_type.geofield_projet
module:
- leaflet
id: paragraph.geofield_projet.default
targetEntityType: paragraph
bundle: geofield_projet
mode: default
content:
field_carte:
type: leaflet_formatter_default
label: hidden
settings:
multiple_map: false
leaflet_map: 'OSM Mapnik'
height: 400
height_unit: px
hide_empty_map: false
disable_wheel: false
gesture_handling: false
fitbounds_options: '{"padding":[0,0]}'
reset_map:
control: false
options: '{"position": "topleft", "title": "Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
locate:
control: false
options: '{"position": "topright", "setView": "untilPanOrZoom", "returnToPrevBounds":true, "keepCurrentZoomLevel": true, "strings": {"title": "Locate my position"}}'
automatic: false
leaflet_tooltip:
value: ''
options: '{"permanent":false,"direction":"center"}'
popup: false
popup_content: ''
leaflet_popup:
control: ''
content: ''
options: '{"maxWidth":"300","minWidth":"50", "autoPan": true}'
value: ''
view_mode: full
map_position:
force: false
center:
lat: 0.0
lon: 0.0
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
weight: '0'
icon:
iconType: marker
iconUrl: ''
shadowUrl: ''
className: ''
iconSize:
x: null
'y': null
iconAnchor:
x: null
'y': null
shadowSize:
x: null
'y': null
shadowAnchor:
x: null
'y': null
popupAnchor:
x: null
'y': null
html: '<div></div>'
html_class: leaflet-map-divicon
circle_marker_options: '{"radius": 100, "color": "red", "fillColor": "#f03", "fillOpacity": 0.5}'
leaflet_markercluster:
control: false
options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds": false}'
excluded: ''
include_path: false
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
feature_properties:
values: ''
geocoder:
control: false
settings:
autocomplete:
placeholder: 'Search Address'
title: 'Search an Address on the Map'
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
map_lazy_load:
lazy_load: false
third_party_settings: { }
weight: 0
region: content
field_libele:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
hidden:
field_principal: true
search_api_excerpt: true

View File

@ -3,26 +3,26 @@ _core:
langcode: fr langcode: fr
extlink_target: false extlink_target: false
extlink_target_no_override: false extlink_target_no_override: false
extlink_title_no_override: false
extlink_nofollow: false extlink_nofollow: false
extlink_follow_no_override: false extlink_follow_no_override: false
extlink_subdomains: true extlink_subdomains: true
extlink_alert: false extlink_alert: false
extlink_alert_text: 'Ce lien vous dirige vers un site externe. Nous ne sommes pas responsables de son contenu.' extlink_alert_text: 'Ce lien vous dirige vers un site externe. Nous ne sommes pas responsables de son contenu.'
extlink_additional_link_classes: ''
extlink_additional_mailto_classes: ''
extlink_additional_tel_classes: ''
extlink_exclude: '' extlink_exclude: ''
extlink_include: '' extlink_include: ''
extlink_exclude_noreferrer: ''
extlink_class: ext extlink_class: ext
extlink_label: '(le lien est externe)' extlink_label: '(le lien est externe)'
extlink_img_class: false extlink_img_class: false
extlink_css_exclude: '' extlink_css_exclude: ''
extlink_css_include: ''
extlink_css_explicit: '' extlink_css_explicit: ''
extlink_mailto_class: mailto extlink_mailto_class: mailto
extlink_mailto_label: '(link sends email)' extlink_mailto_label: '(link sends email)'
extlink_title_no_override: false
extlink_additional_link_classes: ''
extlink_additional_mailto_classes: ''
extlink_additional_tel_classes: ''
extlink_exclude_noreferrer: ''
extlink_css_include: ''
extlink_tel_class: '' extlink_tel_class: ''
extlink_tel_label: '(link is a phone number)' extlink_tel_label: '(link is a phone number)'
extlink_prevent_orphan: false extlink_prevent_orphan: false

View File

@ -1,12 +1,13 @@
uuid: ef45349c-ea3f-4769-92fe-dd544c52ce0f uuid: ef45c217-f669-4116-8b44-97bd898619cf
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
config: config:
- field.storage.node.field_carte - field.storage.node.field_carte
- node.type.projet - node.type.projet
- paragraphs.paragraphs_type.geofield_projet
module: module:
- geofield - entity_reference_revisions
id: node.projet.field_carte id: node.projet.field_carte
field_name: field_carte field_name: field_carte
entity_type: node entity_type: node
@ -17,5 +18,29 @@ required: false
translatable: false translatable: false
default_value: { } default_value: { }
default_value_callback: '' default_value_callback: ''
settings: { } settings:
field_type: geofield handler: 'default:paragraph'
handler_settings:
target_bundles:
geofield_projet: geofield_projet
negate: 0
target_bundles_drag_drop:
chiffre_clef:
weight: 8
enabled: false
chronologie:
weight: 9
enabled: false
collectif_projet:
weight: 10
enabled: false
geofield_projet:
weight: 7
enabled: true
intertitre_texte:
weight: 11
enabled: false
membre_equipe:
weight: 12
enabled: false
field_type: entity_reference_revisions

View File

@ -1,19 +0,0 @@
uuid: 62b4f37c-e8b3-4084-a17e-525f51421f11
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_libelles_carte
- node.type.projet
id: node.projet.field_libelles_carte
field_name: field_libelles_carte
entity_type: node
bundle: projet
label: libelles_carte
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -0,0 +1,21 @@
uuid: 61590666-a4d6-46f7-87a6-9232dad72908
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_carte
- paragraphs.paragraphs_type.geofield_projet
module:
- geofield
id: paragraph.geofield_projet.field_carte
field_name: field_carte
entity_type: paragraph
bundle: geofield_projet
label: Carte
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: geofield

View File

@ -0,0 +1,19 @@
uuid: a7bd1c91-48b4-4f7f-8d51-7bd563a6c81e
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_libele
- paragraphs.paragraphs_type.geofield_projet
id: paragraph.geofield_projet.field_libele
field_name: field_libele
entity_type: paragraph
bundle: geofield_projet
label: Libélé
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -0,0 +1,23 @@
uuid: 75e5c9a2-a9af-4ac0-b98a-e30623a3f940
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_principal
- paragraphs.paragraphs_type.geofield_projet
id: paragraph.geofield_projet.field_principal
field_name: field_principal
entity_type: paragraph
bundle: geofield_projet
label: Principal
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: oui
off_label: non
field_type: boolean

View File

@ -1,17 +1,18 @@
uuid: b67c3939-1668-44af-9284-04aa909b60be uuid: 8d023e8b-b8ba-4de5-a688-b9c39647d78f
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
- geofield - entity_reference_revisions
- node - node
- paragraphs
id: node.field_carte id: node.field_carte
field_name: field_carte field_name: field_carte
entity_type: node entity_type: node
type: geofield type: entity_reference_revisions
settings: settings:
backend: geofield_backend_default target_type: paragraph
module: geofield module: entity_reference_revisions
locked: false locked: false
cardinality: -1 cardinality: -1
translatable: true translatable: true

View File

@ -0,0 +1,20 @@
uuid: f964953a-8d0b-4519-80e1-a7c0f1993f7d
langcode: fr
status: true
dependencies:
module:
- geofield
- paragraphs
id: paragraph.field_carte
field_name: field_carte
entity_type: paragraph
type: geofield
settings:
backend: geofield_backend_default
module: geofield
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,12 +1,12 @@
uuid: fbdd3f5f-1614-4c89-bfae-983cdea74493 uuid: 1e47a81a-0d7c-41a8-8f4c-5ee00a4d5d3a
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
- node - paragraphs
id: node.field_libelles_carte id: paragraph.field_libele
field_name: field_libelles_carte field_name: field_libele
entity_type: node entity_type: paragraph
type: string type: string
settings: settings:
max_length: 255 max_length: 255
@ -14,7 +14,7 @@ settings:
is_ascii: false is_ascii: false
module: core module: core
locked: false locked: false
cardinality: -1 cardinality: 1
translatable: true translatable: true
indexes: { } indexes: { }
persist_with_no_fields: false persist_with_no_fields: false

View File

@ -0,0 +1,18 @@
uuid: 32ff69db-9da5-4d96-913d-b66b72b064c4
langcode: fr
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_principal
field_name: field_principal
entity_type: paragraph
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -60,6 +60,9 @@ variant_settings:
builder: standard builder: standard
storage_type: page_manager storage_type: page_manager
storage_id: home-panels_variant-0 storage_id: home-panels_variant-0
css_classes: { }
html_id: ''
css_styles: ''
page: home page: home
selection_criteria: { } selection_criteria: { }
selection_logic: and selection_logic: and

View File

@ -0,0 +1,10 @@
uuid: 1d2b719d-2cd0-4376-8c6f-13fb3c392f27
langcode: fr
status: true
dependencies: { }
id: geofield_projet
label: 'geofield projet'
icon_uuid: null
icon_default: null
description: ''
behavior_plugins: { }

View File

@ -77,6 +77,7 @@ display:
type: mini type: mini
options: options:
offset: 0 offset: 0
pagination_heading_level: h4
items_per_page: 10 items_per_page: 10
total_pages: null total_pages: null
id: 0 id: 0
@ -91,7 +92,6 @@ display:
items_per_page_options_all_label: '- Tout -' items_per_page_options_all_label: '- Tout -'
offset: false offset: false
offset_label: Décalage offset_label: Décalage
pagination_heading_level: h4
exposed_form: exposed_form:
type: basic type: basic
options: options:
@ -119,7 +119,7 @@ display:
group_type: group group_type: group
admin_label: '' admin_label: ''
plugin_id: datetime plugin_id: datetime
order: ASC order: DESC
expose: expose:
label: '' label: ''
field_identifier: '' field_identifier: ''
@ -224,51 +224,6 @@ display:
plugin_id: bundle plugin_id: bundle
value: value:
actualite: actualite actualite: actualite
field_date_end_value:
id: field_date_end_value
table: node__field_date
field: field_date_end_value
relationship: none
group_type: group
admin_label: ''
plugin_id: datetime
operator: '>'
value:
min: ''
max: ''
value: 'now -1 day'
type: date
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
min_placeholder: ''
max_placeholder: ''
placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
promote: promote:
id: promote id: promote
table: node_field_data table: node_field_data

View File

@ -6,7 +6,7 @@ dependencies:
- core.entity_view_mode.node.full - core.entity_view_mode.node.full
- node.type.partenaire - node.type.partenaire
content: content:
- 'config_pages:partenaires:8ec9ecf0-611e-4dfb-b1e4-11e5856c211a' - 'config_pages:partenaires:f290f948-2dd5-4625-9f1b-bc2d63f3a13f'
module: module:
- node - node
- user - user
@ -157,7 +157,7 @@ display:
admin_label: '' admin_label: ''
plugin_id: entity plugin_id: entity
empty: false empty: false
target: 8ec9ecf0-611e-4dfb-b1e4-11e5856c211a target: f290f948-2dd5-4625-9f1b-bc2d63f3a13f
view_mode: default view_mode: default
tokenize: true tokenize: true
bypass_access: false bypass_access: false

View File

@ -10,7 +10,6 @@
* @see index.php * @see index.php
* @see core/install.php * @see core/install.php
* @see core/rebuild.php * @see core/rebuild.php
* @see core/modules/statistics/statistics.php
*/ */
return require __DIR__ . '/../vendor/autoload.php'; return require __DIR__ . '/../vendor/autoload.php';

View File

@ -26,10 +26,12 @@
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
max-width: 25vw;
} }
#popup h3, #popup h3,
#popup p { #popup p {
text-align: center; text-align: center;
margin: 0; margin: 0;
font-size: 0.8rem !important;
} }

View File

@ -272,6 +272,9 @@ document.addEventListener('DOMContentLoaded', () => {
}) })
if (containerImg.complete) { if (containerImg.complete) {
placeProjectsIcons(projectsIcons, containerImg); placeProjectsIcons(projectsIcons, containerImg);
window.addEventListener('resize', () => {
placeProjectsIcons(projectsIcons, containerImg);
});
} }
}); });

View File

@ -7,6 +7,7 @@ use Drupal\Core\Block\Attribute\Block;
// use Drupal\Core\StringTranslation\TranslatableMarkup; // use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Link; use Drupal\Core\Link;
use Drupal\Core\Render\Markup; use Drupal\Core\Render\Markup;
use Drupal\paragraphs\Entity\Paragraph;
/** /**
* Provides a 'Sites Map' Block. * Provides a 'Sites Map' Block.
@ -32,25 +33,46 @@ class SitesMap extends BlockBase {
$sites_paths = ""; $sites_paths = "";
foreach($allSites as $index => $site){ foreach($allSites as $index => $site){
$title = $site->get('title')->getString();
$subtitle = $site->get('field_sous_titre')->getString(); // Check if the node has the paragraph field and it's not empty.
$place = $site->get('field_localisation_textuel')->getString(); if ($site->hasField('field_carte') && !$site->get('field_carte')->isEmpty()) {
// Iterate through the referenced paragraph entities.
foreach ($site->get('field_carte')->referencedEntities() as $carte_paragraph) {
if ($carte_paragraph instanceof Paragraph) {
$geofield = $carte_paragraph->get('field_carte');
$principal = $carte_paragraph->get('field_principal')->value;
$link_options = ['absolute' => FALSE, 'attributes' => ['class' => 'site-link']]; if ($geofield && $principal) {
$site_link_object = Link::createFromRoute("voir le site", 'entity.node.canonical', ['node' => $site->id()], $link_options);
$href = $site_link_object->getUrl()->toString();
$geofield = $site->get('field_carte')->get(0); $title = $site->get('title')->getString();
$lon = $geofield->lon; $subtitle = $site->get('field_sous_titre')->getString();
$lat = $geofield->lat; $place = $site->get('field_localisation_textuel')->getString();
$link_options = ['absolute' => FALSE, 'attributes' => ['class' => 'site-link']];
$site_link_object = Link::createFromRoute("voir le site", 'entity.node.canonical', ['node' => $site->id()], $link_options);
$href = $site_link_object->getUrl()->toString();
$lon = $geofield->lon;
$lat = $geofield->lat;
$svg_template_path = DRUPAL_ROOT . '/modules/custom/erable_mod/assets/svg/feuille.svg';
$svg_template= file_get_contents($svg_template_path);
$sites_paths .= str_replace(
['$index', '$lon', '$lat', '$href', '$title', '$place'],
[$index, $lon, $lat, $href, $title, $place],
$svg_template
);
$svg_template_path = DRUPAL_ROOT . '/modules/custom/erable_mod/assets/svg/feuille.svg'; break;
$svg_template= file_get_contents($svg_template_path); }
$sites_paths .= str_replace( }
['$index', '$lon', '$lat', '$href', '$title', '$place'], }
[$index, $lon, $lat, $href, $title, $place], }
$svg_template
);
} }
$return = [ $return = [

@ -1 +1 @@
Subproject commit 0072fa85fb15b168503b63af2b7df56f2a5e2b67 Subproject commit 6122ad5f5b1519bcca5014ea331ae61415480ea3

View File

@ -459,29 +459,33 @@ em {
width: 100%; width: 100%;
background-color: white; background-color: white;
margin-top: 50px; margin-top: 50px;
padding: 0 3vw; padding: 0 3vw !important;
}
@media screen and (min-width: 1080px) {
.layout-container > footer {
width: calc(100% - 50vw);
margin-left: 25vw;
}
}
.layout-container > footer #footer_middle {
display: flex;
} }
.layout-container > footer #footer_middle #footer_left > div { .layout-container > footer #footer_middle #footer_left > div {
margin-top: 5px; margin-top: 5px;
display: flex; display: flex;
justify-content: space-between; justify-content: start;
align-items: center; align-items: center;
flex-wrap: nowrap; flex-wrap: nowrap;
} }
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep {
width: 30vw; max-width: 100px;
} }
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep img { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep {
width: 10vw;
}
}
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau {
width: 50vw; max-width: 150px;
} }
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau img { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau img {
width: 100%; width: 100%;
@ -489,16 +493,9 @@ em {
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau { .layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau {
width: 15vw;
padding-left: 2vw; padding-left: 2vw;
} }
} }
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div {
width: 25vw;
padding-left: 3vw;
}
}
.layout-container > footer #footer_middle #footer_section { .layout-container > footer #footer_middle #footer_section {
display: flex; display: flex;
width: 100%; width: 100%;
@ -509,30 +506,38 @@ em {
position: relative; position: relative;
} }
.layout-container > footer #footer_middle #footer_section #footer_center { .layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 2vw; width: 100%;
width: 50%;
} }
.layout-container > footer #footer_middle #footer_section #footer_center nav ul { .layout-container > footer #footer_middle #footer_section #footer_center > div {
display: flex;
justify-content: space-around;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.layout-container > footer #footer_middle #footer_section #footer_center nav ul li a { .layout-container > footer #footer_middle #footer_section #footer_center > div nav ul li a {
color: #314e41; color: #314e41;
font-size: 0.8rem;
font-family: "Marianne", sans-serif; font-family: "Marianne", sans-serif;
font-weight: 800; font-weight: 800;
text-decoration: underline; text-decoration: underline;
font-size: 0.6rem;
text-align: center;
display: inline-block;
line-height: 1.2;
} }
@media (min-width: 760px) { .layout-container > footer #footer_middle #footer_section #footer_center > div nav ul li:last-of-type {
.layout-container > footer #footer_middle #footer_section #footer_center nav ul { margin-left: 1rem;
width: 50vw; }
padding: 0 15vw; .layout-container > footer #footer_middle #footer_section #footer_center > div nav ul:first-of-type {
} margin-left: 1rem;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul:last-of-type {
margin-right: 1rem;
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_section #footer_center { .layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 0; padding-left: 0;
width: auto;
} }
} }
.layout-container > footer #footer_middle #footer_section #footer_right { .layout-container > footer #footer_middle #footer_section #footer_right {
@ -540,28 +545,30 @@ em {
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul {
display: flex; display: flex;
justify-content: space-between; justify-content: end;
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a span { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a span {
font-weight: lighter; font-weight: lighter;
font-size: 1.4rem; font-size: 0.8rem;
width: 2.2rem; width: 1.6rem;
height: 2.2rem; height: 1.6rem;
padding: 0.4rem; padding-top: 0.2rem;
border-radius: 1.1rem; border-radius: 0.8rem;
color: white; color: white;
background-color: #038788; background-color: #038788;
display: flex;
justify-content: center;
align-items: center;
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a svg.ext { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a svg.ext {
display: none; display: none;
} }
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li:last-of-type { .layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li:last-of-type {
margin-left: 25px; margin-left: 5px;
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_section #footer_right { .layout-container > footer #footer_middle #footer_section #footer_right {
width: auto; width: auto;
margin-right: 25px;
} }
} }
@media (min-width: 760px) { @media (min-width: 760px) {
@ -571,6 +578,7 @@ em {
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.layout-container > footer { .layout-container > footer {
display: block;
padding: 0; padding: 0;
} }
} }
@ -719,6 +727,7 @@ em {
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.carousel_container .slick-container footer a svg { .carousel_container .slick-container footer a svg {
display: none; display: none;
@ -776,6 +785,9 @@ em {
padding: 5px 3vw; padding: 5px 3vw;
padding-left: 0 !important; padding-left: 0 !important;
} }
.views-row article.actu-teaser .preview_sous_titre .sous_titre {
line-height: 1.3 !important;
}
@media (min-width: 760px) { @media (min-width: 760px) {
.views-row article.actu-teaser .preview_sous_titre { .views-row article.actu-teaser .preview_sous_titre {
padding-left: unset; padding-left: unset;
@ -1120,6 +1132,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.home_introduction div.more-link a svg { .home_introduction div.more-link a svg {
display: none; display: none;
@ -1238,6 +1251,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.home_consultation div.more-link a svg { .home_consultation div.more-link a svg {
display: none; display: none;
@ -1386,11 +1400,15 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.layout-content .fullpage .fullpage_content .sous_titre { .layout-content .fullpage .fullpage_content .sous_titre {
font-size: 1.2rem;
padding: 0 3vw; padding: 0 3vw;
font-family: "Marianne", sans-serif; font-family: "Barlow", sans-serif;
font-size: 1rem; color: black;
line-height: 1.4; font-size: 1.2rem;
}
@media (min-width: 760px) {
.layout-content .fullpage .fullpage_content .sous_titre {
font-size: 1.6rem;
}
} }
.layout-content .fullpage .fullpage_content p { .layout-content .fullpage .fullpage_content p {
padding: 0 3vw; padding: 0 3vw;
@ -1419,6 +1437,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.layout-content .fullpage .fullpage_content .liens_fixed > div > div a svg, .layout-content .fullpage .fullpage_content .file_fixed > div > div a svg, .layout-content .fullpage .fullpage_content .liens_fixed > div > div a svg, .layout-content .fullpage .fullpage_content .file_fixed > div > div a svg,
.layout-content .fullpage .fullpage_content .liens > div > div a svg, .layout-content .fullpage .fullpage_content .file_fixed > div > div a svg { .layout-content .fullpage .fullpage_content .liens > div > div a svg, .layout-content .fullpage .fullpage_content .file_fixed > div > div a svg {
@ -1861,6 +1880,16 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
} }
} }
*/ */
.content_partenaires header {
font-family: "Marianne", sans-serif;
font-size: 1rem;
line-height: 1.4;
margin-bottom: 4vh;
margin-top: -5vh;
}
.content_partenaires header p {
margin: 1rem 3vw;
}
.content_partenaires .views-row { .content_partenaires .views-row {
margin-bottom: 2vh; margin-bottom: 2vh;
} }
@ -1946,6 +1975,7 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.content_partenaires .views-row article > div:first-of-type > div:last-of-type a svg { .content_partenaires .views-row article > div:first-of-type > div:last-of-type a svg {
display: none; display: none;
@ -2496,6 +2526,7 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div a svg { .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div a svg {
display: none; display: none;
@ -2543,6 +2574,7 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div > div a svg { .fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div > div a svg {
display: none; display: none;
@ -2956,25 +2988,31 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
margin: 0 3vw; margin: 0 3vw;
margin-top: 4rem; margin-top: 4rem;
} }
.fullpage.projet_full .carte > div > div:first-of-type {
display: none;
}
.fullpage.projet_full .carte .leaflet-pane path { .fullpage.projet_full .carte .leaflet-pane path {
stroke: #00ff80; stroke: #00ff80;
stroke-width: 2; stroke-width: 2;
fill: #00ff80; fill: #00ff80;
fill-opacity: 0.2; fill-opacity: 0.2;
} }
.fullpage.projet_full .carte #leaflet-popup { .fullpage.projet_full .carte .popup .leaflet-popup-tip {
position: fixed; background: rgba(0, 0, 0, 0) !important;
box-shadow: none !important;
}
.fullpage.projet_full .carte .popup .leaflet-popup-content-wrapper {
padding: 0.3rem 0.8rem; padding: 0.3rem 0.8rem;
background-color: white; background-color: white;
font-size: 0.8rem !important; font-size: 0.8rem !important;
opacity: 0; box-shadow: none;
transition: opacity 0.3s ease; border-radius: unset;
font-family: "Marianne", sans-serif; font-family: "Marianne", sans-serif;
font-size: 1rem; font-size: 1rem;
line-height: 1.4; line-height: 1.4;
} }
.fullpage.projet_full .libelles-carte { .fullpage.projet_full .carte .popup .leaflet-popup-content-wrapper .leaflet-popup-content {
display: none; margin: 0;
} }
.fullpage.projet_full .legende-carte > div > div:first-of-type { .fullpage.projet_full .legende-carte > div > div:first-of-type {
display: none; display: none;
@ -3241,14 +3279,14 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
font-size: 1.6rem; font-size: 1.6rem;
} }
} }
.ressources > div > div:first-of-type { .ressources > div > div:has(a) {
grid-column: 2; grid-column: 2;
grid-row: 3; grid-row: 3;
} }
.ressources > div > div:first-of-type > div > span { .ressources > div > div:has(a) > div > span {
margin-top: -1rem; margin-top: -1rem;
} }
.ressources > div > div:first-of-type > div > span a { .ressources > div > div:has(a) > div > span a {
text-align: center; text-align: center;
color: black; color: black;
font-family: "Marianne", sans-serif; font-family: "Marianne", sans-serif;
@ -3258,28 +3296,30 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.ressources > div > div:first-of-type > div > span a svg { .ressources > div > div:has(a) > div > span a svg {
display: none; display: none;
} }
.ressources > div > div:first-of-type > div > span a:hover { .ressources > div > div:has(a) > div > span a:hover {
background-color: #00ff80; background-color: #00ff80;
} }
.ressources > div > div:first-of-type > div > span:last-of-type { .ressources > div > div:has(a) > div > span:last-of-type {
display: none; display: none;
} }
.ressources > div > div:nth-of-type(2) { .ressources > div > div:has(img) {
grid-column: 1; grid-column: 1;
grid-row: 1/4; grid-row: 1/4;
min-width: 120px;
padding: 2rem 0; padding: 2rem 0;
margin-right: 2rem; margin-right: 2rem;
} }
.ressources > div > div:nth-of-type(2) img { .ressources > div > div:has(img) img {
border: solid 1px #038788; border: solid 1px #038788;
width: 100%; width: 100%;
height: auto; height: auto;
} }
.ressources > div > div:nth-of-type(3) { .ressources > div > div:has(time) {
grid-column: 2; grid-column: 2;
grid-row: 2; grid-row: 2;
margin-top: -1rem; margin-top: -1rem;
@ -3369,6 +3409,7 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.ressource > div:not(.retour_ressources) > div:not(.retour_ressources):first-of-type > div > span a svg { .ressource > div:not(.retour_ressources) > div:not(.retour_ressources):first-of-type > div > span a svg {
display: none; display: none;
@ -3599,6 +3640,7 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
border: solid 2px #00ff80; border: solid 2px #00ff80;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
} }
.actu_full .liens_fixed > div > div:nth-of-type(2) a svg, .actu_full .file_fixed > div > div > div a svg { .actu_full .liens_fixed > div > div:nth-of-type(2) a svg, .actu_full .file_fixed > div > div > div a svg {
display: none; display: none;

File diff suppressed because one or more lines are too long

View File

@ -156,4 +156,4 @@ function erabletheme_theme_suggestions_region_alter(array &$suggestions, array $
} }
} }
} }

View File

@ -194,6 +194,49 @@
}); });
} }
// Changer le texte des liens des ressources
if (document.querySelector('.ressources')) {
let liens = document.querySelectorAll('.file a');
for (let lien of liens) {
lien.innerHTML = 'Télécharger le document';
}
// si la ressource n'a pas de date afficher le lien plus haute
// et la ressource en premier
let ressources = document.querySelectorAll('.views-row');
let container = document.querySelector('.views-row:first-of-type').parentElement;
for (let ressource of ressources) {
if (!ressource.querySelector('time')) {
let link = ressource.querySelector('.file');
let linkContainer = link.parentElement.parentElement;
linkContainer.style.gridRow = '2';
linkContainer.style.marginTop = '30px';
}
const rows = Array.from(container.querySelectorAll('.views-row'));
const undated = [];
const dated = [];
rows.forEach(row => {
if (row.querySelector('time')) {
dated.push(row);
} else {
undated.push(row);
}
});
// Clear container
container.innerHTML = '';
// Append undated rows first, then dated
[...undated, ...dated].forEach(row => {
container.appendChild(row);
});
}
}
// //
// Ajouter les logos réseaux sociaux dans le menu togglable // Ajouter les logos réseaux sociaux dans le menu togglable
// //
@ -335,10 +378,10 @@
// //
document.querySelectorAll('p, li, h1, h2, h3, h4, h5, h6').forEach((content) => { document.querySelectorAll('p, li, h1, h2, h3, h4, h5, h6').forEach((content) => {
content.innerHTML = content.innerHTML.replaceAll(' ;', '&nbsp;'); content.innerHTML = content.innerHTML.replaceAll(' ;', '&nbsp;;');
content.innerHTML = content.innerHTML.replaceAll(' :', '&nbsp;'); content.innerHTML = content.innerHTML.replaceAll(' :', '&nbsp;:');
content.innerHTML = content.innerHTML.replaceAll(' ?', '&nbsp;'); content.innerHTML = content.innerHTML.replaceAll(' ?', '&nbsp;?');
content.innerHTML = content.innerHTML.replaceAll(' !', '&nbsp;'); content.innerHTML = content.innerHTML.replaceAll(' !', '&nbsp;!');
content.innerHTML = content.innerHTML.replaceAll('« ', '«&nbsp;'); content.innerHTML = content.innerHTML.replaceAll('« ', '«&nbsp;');
content.innerHTML = content.innerHTML.replaceAll(' »', '&nbsp;»'); content.innerHTML = content.innerHTML.replaceAll(' »', '&nbsp;»');
content.innerHTML = content.innerHTML.replaceAll('(« ', '(«&nbsp;'); content.innerHTML = content.innerHTML.replaceAll('(« ', '(«&nbsp;');
@ -393,58 +436,114 @@
} }
} }
let firstMap = null;
Drupal.behaviors.customLeafletInteraction = { Drupal.behaviors.customLeafletInteraction = {
attach: function (context, settings) { attach: function (context, settings) {
$(context).on('leafletMapInit', function (e, settings, map, mapid, markers) { $(context).on('leafletMapInit', function (e, settings, map, mapid, markers) {
//
// on projects pages, replace leaflet icons with erable leafs
//
const leafletIcons = document.querySelectorAll('.leaflet-marker-pane img');
for (let icon of leafletIcons) {
icon.setAttribute('src', '/themes/erabletheme/assets/leaf.svg');
}
// if (document.querySelector('.projet_full')) {
// set hover on leaflet marker and zones // map on the projects page
//
const leafletPlaces = document.querySelectorAll('.leaflet-marker-pane img, .leaflet-overlay-pane path'); let customIcon = L.icon({
const libelles = document.querySelectorAll('.libelles-carte > div > div > div'); iconUrl: '/themes/erabletheme/assets/leaf.svg',
iconSize: [20, 20],
iconAnchor: [10, 20],
popupAnchor: [0, -20]
});
for (let i = 0; i < leafletPlaces.length; i++) { let initiatedMap = document.querySelector(`#${mapid}`);
const carte = document.querySelector('.carte'); const currentLibelle = initiatedMap.parentElement.nextElementSibling.innerText;
initiatedMap.parentElement.nextElementSibling.remove();
if (document.querySelectorAll('.leaflet-container').length <= 1) {
firstMap = map;
let bounds = L.latLngBounds();
map.eachLayer(function (layer) {
if (layer instanceof L.Marker && !layer._popup) {
layer.bindPopup(currentLibelle, { closeButton: false, className: 'popup' })
.setIcon(customIcon)
.on('mouseover', function () {
this.openPopup();
})
.on('mouseout', function () {
this.closePopup();
});
leafletPlaces[i].addEventListener('mouseenter', () => { bounds.extend(layer.getLatLng());
let div = document.createElement('div'); map.fitBounds(bounds, { padding: [30, 30], maxZoom: 18 });
div.setAttribute('id', 'leaflet-popup'); }
div.style.zIndex = '100'; });
const x = leafletPlaces[i].getBoundingClientRect().left + leafletPlaces[i].getBoundingClientRect().width / 2; } else {
const y = leafletPlaces[i].getBoundingClientRect().top; // map on the projects index
setTimeout(() => {
div.style.opacity = 1; document.querySelector(`#${mapid}`).parentElement.parentElement.parentElement.remove();
const divHeight = div.getBoundingClientRect().height; const firstMarker = Object.values(markers)[0];
const divWidth = div.getBoundingClientRect().width; let newMarker = L.marker([firstMarker._latlng.lat, firstMarker._latlng.lng], { icon: customIcon })
.addTo(firstMap)
.bindPopup(currentLibelle, { closeButton: false, className: 'popup' })
.on('mouseover', function () {
this.openPopup();
})
.on('mouseout', function () {
this.closePopup();
});
firstMap.fitBounds(
firstMap.getBounds().extend(newMarker.getLatLng()),
{ padding: [30, 30], maxZoom: 18 }
);
}
} else {
//
// on projects pages, replace leaflet icons with erable leafs
//
const currentMap = document.querySelector('.leaflet-container');
const leafletIcons = document.querySelectorAll('.leaflet-marker-pane img');
for (let icon of leafletIcons) {
icon.setAttribute('src', '/themes/erabletheme/assets/leaf.svg');
}
//
// set hover on leaflet marker and zones
//
const leafletPlaces = document.querySelectorAll('.leaflet-marker-pane img, .leaflet-overlay-pane path');
const libelles = document.querySelectorAll('.libelles-carte > div > div > div');
for (let i = 0; i < leafletPlaces.length; i++) {
const carte = document.querySelector('.carte');
leafletPlaces[i].addEventListener('mouseenter', () => {
let div = document.createElement('div');
div.setAttribute('id', 'leaflet-popup');
div.style.zIndex = '100';
const x = leafletPlaces[i].getBoundingClientRect().left + leafletPlaces[i].getBoundingClientRect().width / 2;
const y = leafletPlaces[i].getBoundingClientRect().top;
setTimeout(() => { setTimeout(() => {
div.style.left = `${x - divWidth / 2}px`; div.style.opacity = 1;
div.style.top = `${y - divHeight}px`; const divHeight = div.getBoundingClientRect().height;
const divWidth = div.getBoundingClientRect().width;
setTimeout(() => {
div.style.left = `${x - divWidth / 2}px`;
div.style.top = `${y - divHeight}px`;
}, 10);
}, 10); }, 10);
}, 10);
div.innerText = libelles[i].innerText;
div.innerText = libelles[i].innerText;
carte.appendChild(div);
carte.appendChild(div); });
}); leafletPlaces[i].addEventListener('mouseleave', () => {
leafletPlaces[i].addEventListener('mouseleave', () => { let divs = document.querySelectorAll('#leaflet-popup');
let divs = document.querySelectorAll('#leaflet-popup'); for (let div of divs) {
for (let div of divs) { div.style.opacity = 0;
div.style.opacity = 0; setTimeout(() => {
setTimeout(() => { div.remove();
div.remove(); }, 300);
}, 300); }
} });
}); }
} }
}); });
} }
} }

View File

@ -27,9 +27,8 @@
} }
.sous_titre { .sous_titre {
font-size: $l_font_size;
padding: 0 $x_margin; padding: 0 $x_margin;
@include main_text_content(); @include sous_titre_alt();
} }
p { p {

View File

@ -1,4 +1,12 @@
.content_partenaires { .content_partenaires {
header {
@include main_text_content();
margin-bottom: 4vh;
margin-top: -5vh;
p {
margin: 1rem $x_margin;
}
}
.views-row { .views-row {
margin-bottom: 2vh; margin-bottom: 2vh;
article { article {

View File

@ -307,6 +307,9 @@
width: auto; width: auto;
margin: 0 $x_margin; margin: 0 $x_margin;
margin-top: 4rem; margin-top: 4rem;
> div > div:first-of-type {
display: none;
}
.leaflet-pane { .leaflet-pane {
path { path {
stroke: $fluo_green; stroke: $fluo_green;
@ -315,19 +318,24 @@
fill-opacity: 0.2; fill-opacity: 0.2;
} }
} }
#leaflet-popup { .popup {
position: fixed; .leaflet-popup-tip {
padding: 0.3rem 0.8rem; background: rgba(0, 0, 0, 0) !important;
background-color: white; box-shadow: none !important;
font-size: $sm_font_size !important; }
opacity: 0; .leaflet-popup-content-wrapper {
transition: opacity 0.3s ease; padding: 0.3rem 0.8rem;
@include main_text_content(); background-color: white;
font-size: $sm_font_size !important;
box-shadow: none;
border-radius: unset;
@include main_text_content();
.leaflet-popup-content {
margin: 0;
}
}
} }
} }
.libelles-carte {
display: none;
}
.legende-carte { .legende-carte {
> div > div:first-of-type { > div > div:first-of-type {
display: none; display: none;

View File

@ -28,7 +28,8 @@
} }
} }
} }
> div:first-of-type { // lien
> div:has(a) {
grid-column: 2; grid-column: 2;
grid-row: 3; grid-row: 3;
> div > span { > div > span {
@ -39,9 +40,11 @@
display: none; display: none;
} }
} }
> div:nth-of-type(2) { // image
> div:has(img) {
grid-column: 1; grid-column: 1;
grid-row: 1/4; grid-row: 1/4;
min-width: 120px;
padding: 2rem 0; padding: 2rem 0;
margin-right: 2rem; margin-right: 2rem;
img { img {
@ -50,7 +53,8 @@
height: auto; height: auto;
} }
} }
> div:nth-of-type(3) { // date
> div:has(time) {
grid-column: 2; grid-column: 2;
grid-row: 2; grid-row: 2;
margin-top: -1rem; margin-top: -1rem;

View File

@ -60,6 +60,7 @@ $title_size: 2.3rem;
border: solid 2px $fluo_green; border: solid 2px $fluo_green;
padding: 9px 18px; padding: 9px 18px;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
text-wrap: nowrap !important;
svg { svg {
display: none; display: none;
} }

View File

@ -47,6 +47,9 @@
font-size: $m_font_size; font-size: $m_font_size;
padding: 5px $x_margin; padding: 5px $x_margin;
padding-left: 0 !important; padding-left: 0 !important;
.sous_titre {
line-height: 1.3 !important;
}
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
padding-left: unset; padding-left: unset;
font-size: $l_font_size; font-size: $l_font_size;

View File

@ -2,39 +2,36 @@
width: 100%; width: 100%;
background-color: white; background-color: white;
margin-top: 50px; margin-top: 50px;
padding: 0 $x_margin; padding: 0 $x_margin !important;
@media screen and (min-width: $breakpoint_desktop) {
width: calc(100% - 50vw);
margin-left: 25vw;
}
#footer_middle { #footer_middle {
display: flex;
#footer_left > div { #footer_left > div {
margin-top: 5px; margin-top: 5px;
display: flex; display: flex;
justify-content: space-between; justify-content: start;
align-items: center; align-items: center;
flex-wrap: nowrap; flex-wrap: nowrap;
#block-erabletheme-logorep { #block-erabletheme-logorep {
width: 30vw; max-width: 100px;
img { img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media (min-width: $breakpoint_tablet) {
width: 10vw;
}
} }
#block-erabletheme-logoepau { #block-erabletheme-logoepau {
width: 50vw; max-width: 150px;
img { img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
width: 15vw;
padding-left: 2vw; padding-left: 2vw;
} }
} }
@media (min-width: $breakpoint_tablet) {
width: 25vw;
padding-left: $x_margin;
}
} }
#footer_section { #footer_section {
display: flex; display: flex;
@ -45,26 +42,38 @@
margin-bottom: 20px; margin-bottom: 20px;
position: relative; position: relative;
#footer_center { #footer_center {
padding-left: 2vw; width: 100%;
width: 50%; > div {
nav ul {
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
li a { nav ul {
color: $dark_green; display: flex;
font-size: $sm_font_size; justify-content: space-between;
font-family: 'Marianne', sans-serif; li {
font-weight: 800; a {
text-decoration: underline; color: $dark_green;
} font-family: 'Marianne', sans-serif;
@media (min-width: $breakpoint_tablet) { font-weight: 800;
width: 50vw; text-decoration: underline;
padding: 0 15vw; font-size: 0.6rem;
text-align: center;
display: inline-block;
line-height: 1.2;
}
&:last-of-type {
margin-left: 1rem;
}
}
&:first-of-type {
margin-left: 1rem;
}
&:last-of-type {
margin-right: 1rem;
}
} }
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
padding-left: 0; padding-left: 0;
width: auto;
} }
} }
@ -72,31 +81,33 @@
width: 30%; width: 30%;
#block-erabletheme-socialmedialinks-2 ul { #block-erabletheme-socialmedialinks-2 ul {
display: flex; display: flex;
justify-content: space-between; justify-content: end;
li { li {
a { a {
span { span {
font-weight: lighter; font-weight: lighter;
font-size: 1.4rem; font-size: 0.8rem;
width: 2.2rem; width: 1.6rem;
height: 2.2rem; height: 1.6rem;
padding: 0.4rem; padding-top: 0.2rem;
border-radius: 1.1rem; border-radius: 0.8rem;
color: white; color: white;
background-color: $teal; background-color: $teal;
display: flex;
justify-content: center;
align-items: center;
} }
svg.ext { svg.ext {
display: none; display: none;
} }
} }
&:last-of-type { &:last-of-type {
margin-left: 25px; margin-left: 5px;
} }
} }
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
width: auto; width: auto;
margin-right: 25px;
} }
} }
@ -106,6 +117,7 @@
} }
} }
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
display: block;
padding: 0; padding: 0;
} }
} }