From 4b65dc92a2fdc874afd92f7aae6f283aba86acdf Mon Sep 17 00:00:00 2001 From: Simon C Date: Fri, 7 Oct 2022 22:07:27 +0200 Subject: [PATCH] feat: Ajustement des marges --- data/fr/skill.yml | 4 +-- themes/meghna-hugo/assets/css/style.css | 30 +++++++++++++++++-- themes/meghna-hugo/layouts/partials/cta.html | 6 ++-- .../meghna-hugo/layouts/partials/feature.html | 6 ++-- .../layouts/partials/navigation.html | 2 +- .../meghna-hugo/layouts/partials/service.html | 2 +- .../meghna-hugo/layouts/partials/skill.html | 6 ++-- 7 files changed, 40 insertions(+), 16 deletions(-) diff --git a/data/fr/skill.yml b/data/fr/skill.yml index 9b00e7b..0526cb9 100644 --- a/data/fr/skill.yml +++ b/data/fr/skill.yml @@ -3,9 +3,7 @@ skill: enable : true #title : "Notre zone d'intervention" subtitle : "Notre zone d'intervention" - content : | - Vos cyclistes jardiniers sont en capacité de venir s’occuper de vos jardins sur les communes de Bordeaux, Bègles, Villenave d’Ornon, Talence, Pessac, Mérignac, Le Bouscat, Bruges et Floirac. - A Bordeaux, nous passons dans tous les quartiers, de l'hypercentre à Caudéran, Chartrons, Grand Parc, Jardin Public, La Bastide, Nansouty, Saint-Genès, Saint-Augustin, Tauzin, Alphonse Dupeux, La Benauge, Saint-Jean, Bacalan, Saint Seurin, Faudondège, Quinconces, Capucins, Victoire, Mériadeck, Saint-Pierre, Ginko, Saint-Bruno. + # content : | content_blocks: - Vos cyclistes jardiniers sont en capacité de venir s’occuper de vos jardins sur les communes de Bordeaux, Bègles, Villenave d’Ornon, Talence, Pessac, Mérignac, Le Bouscat, Bruges et Floirac. - A Bordeaux, nous passons dans tous les quartiers, de l'hypercentre à Caudéran, Chartrons, Grand Parc, Jardin Public, La Bastide, Nansouty, Saint-Genès, Saint-Augustin, Tauzin, Alphonse Dupeux, La Benauge, Saint-Jean, Bacalan, Saint Seurin, Fondaudège, Quinconces, Capucins, Victoire, Mériadeck, Saint-Pierre, Ginko, Saint-Bruno. diff --git a/themes/meghna-hugo/assets/css/style.css b/themes/meghna-hugo/assets/css/style.css index b8ab5db..b7ebe32 100644 --- a/themes/meghna-hugo/assets/css/style.css +++ b/themes/meghna-hugo/assets/css/style.css @@ -247,18 +247,34 @@ a:hover { } .section { - padding: 100px 0; + padding: 5rem 0; } @media (max-width: 768px) { .section { - padding: 80px 0; + padding: 4rem 0; } } @media (max-width: 480px) { .section { - padding: 50px 0; + padding: 3rem 0; + } +} + +.section.stick { + padding: 5rem 0 0; +} + +@media (max-width: 768px) { + .section.stick { + padding: 4rem 0 0; + } +} + +@media (max-width: 480px) { + .section.stick { + padding: 3rem 0 0; } } @@ -445,6 +461,10 @@ a:hover { border-color: #fff; } +strong { + font-variation-settings: 'wght' 500 +} + .navbar-dark .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgb(255, 255, 255)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); } @@ -727,6 +747,10 @@ a:hover { padding-right: 5px; } +.con-info strong a { + font-size: 1.4rem; +} + .error { display: none; padding: 10px; diff --git a/themes/meghna-hugo/layouts/partials/cta.html b/themes/meghna-hugo/layouts/partials/cta.html index f0ae9a6..3b7a3ed 100644 --- a/themes/meghna-hugo/layouts/partials/cta.html +++ b/themes/meghna-hugo/layouts/partials/cta.html @@ -10,7 +10,9 @@
-

{{ .title | markdownify }}

+
+

{{ .title | markdownify }}

+

{{ .content | markdownify }}

{{ if .button.enable }} {{ with .button }} @@ -18,7 +20,7 @@ {{ end }} {{ end }} {{ with .call_to_action }} -
+
{{ range . }} {{ .text }} {{ end }} diff --git a/themes/meghna-hugo/layouts/partials/feature.html b/themes/meghna-hugo/layouts/partials/feature.html index 027fa88..51015de 100644 --- a/themes/meghna-hugo/layouts/partials/feature.html +++ b/themes/meghna-hugo/layouts/partials/feature.html @@ -3,9 +3,9 @@ {{ if $data.feature.feature.enable }} {{ with $data.feature.feature }} {{"" | safeHTML}} -
+
-
+
@@ -15,7 +15,7 @@

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ with .call_to_action }} -
+ {{ end }} diff --git a/themes/meghna-hugo/layouts/partials/navigation.html b/themes/meghna-hugo/layouts/partials/navigation.html index e072846..c45ec15 100644 --- a/themes/meghna-hugo/layouts/partials/navigation.html +++ b/themes/meghna-hugo/layouts/partials/navigation.html @@ -10,7 +10,7 @@ {{ end }} - diff --git a/themes/meghna-hugo/layouts/partials/service.html b/themes/meghna-hugo/layouts/partials/service.html index 459d782..70e717b 100644 --- a/themes/meghna-hugo/layouts/partials/service.html +++ b/themes/meghna-hugo/layouts/partials/service.html @@ -3,7 +3,7 @@ {{ if $data.service.service.enable}} {{ with $data.service.service}} {{"" | safeHTML }} -
+
diff --git a/themes/meghna-hugo/layouts/partials/skill.html b/themes/meghna-hugo/layouts/partials/skill.html index 20ee3c7..1d04a8d 100644 --- a/themes/meghna-hugo/layouts/partials/skill.html +++ b/themes/meghna-hugo/layouts/partials/skill.html @@ -3,7 +3,7 @@ {{ if $data.skill.skill.enable }} {{ with $data.skill.skill }} {{"" | safeHTML }} -
+
{{ if .title }}
@@ -33,8 +33,8 @@ {{ $col := div 12 (len .content_blocks) }}
{{ range .content_blocks }} -
- {{ . | markdownify }} +
+

{{ . | markdownify }}

{{ end }}