From 00d952b3ec7890c7e2c5d55687a221ded86dbb53 Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Fri, 17 Jul 2020 23:59:55 +0200 Subject: [PATCH] minor fixes --- .stylelintrc.json | 5 +++-- src/_includes/partials/components/intro.njk | 2 +- src/pages/nous-rejoindre.md | 2 +- src/scss/components/_post.scss | 10 +++++++--- src/scss/components/_posts-list.scss | 6 ++++++ 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 2113167..07de753 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -10,9 +10,10 @@ "Selector should be written in lowercase (selector-class-pattern)" } ], - "max-nesting-depth": 4, + "max-nesting-depth": 6, "number-leading-zero": "never", "selector-no-qualifying-type": null, - "selector-max-compound-selectors": 4 + "selector-max-compound-selectors": 6, + "selector-max-id": 1 } } diff --git a/src/_includes/partials/components/intro.njk b/src/_includes/partials/components/intro.njk index 24acaf1..fad1aaa 100644 --- a/src/_includes/partials/components/intro.njk +++ b/src/_includes/partials/components/intro.njk @@ -1,7 +1,7 @@

{{ brandHeading }}

- +
Une CAE c'est quoi ? Nous rejoindre diff --git a/src/pages/nous-rejoindre.md b/src/pages/nous-rejoindre.md index 97b2312..351a40c 100644 --- a/src/pages/nous-rejoindre.md +++ b/src/pages/nous-rejoindre.md @@ -72,6 +72,6 @@ permalink: '/nous-rejoindre/index.html' Vous créez votre propre entreprise, félicitations ! - Petit bateau à voile + Petit bateau à voile diff --git a/src/scss/components/_post.scss b/src/scss/components/_post.scss index 241c145..fa63ea9 100644 --- a/src/scss/components/_post.scss +++ b/src/scss/components/_post.scss @@ -244,6 +244,10 @@ flex-direction: column; margin: 3rem 0; + &:first-child { + margin-top: 0; + } + &:last-child { margin-bottom: 0; } @@ -302,7 +306,7 @@ margin: 0 auto; } - .small-boat { + #small-boat { width: 8rem; margin-top: 4rem; margin-left: 18rem; @@ -353,7 +357,7 @@ .process-cae { &__block { - .small-boat { + #small-boat { margin-left: auto; } } @@ -375,7 +379,7 @@ } &__block { - .small-boat { + #small-boat { margin-left: auto; margin-right: auto; } diff --git a/src/scss/components/_posts-list.scss b/src/scss/components/_posts-list.scss index 25e1431..a5c8554 100644 --- a/src/scss/components/_posts-list.scss +++ b/src/scss/components/_posts-list.scss @@ -135,6 +135,8 @@ main.home .news-list { &__items { display: flex; + grid-column-gap: 0; + grid-row-gap: 0; overflow-x: auto; padding-bottom: 1rem; padding-left: 1.25rem; @@ -143,6 +145,10 @@ main.home .news-list { &__item { flex-shrink: 0; flex-basis: 16rem; + + &:not(:first-child) { + margin-left: 1.5rem; + } } .return-link {