From ddf1e850a0f1bc750e88c436f15c2aac0e49f0ea Mon Sep 17 00:00:00 2001 From: Simon C Date: Mon, 14 Feb 2022 09:36:54 +0100 Subject: [PATCH] feat: Add sticky on services section --- assets/styles/main.sass | 47 ++++++++++++++++++++++++++++++++++++-- config/_default/config.yml | 2 +- content/_index.md | 9 ++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/assets/styles/main.sass b/assets/styles/main.sass index 17d440a..a0f4592 100644 --- a/assets/styles/main.sass +++ b/assets/styles/main.sass @@ -1,6 +1,6 @@ $line-height: 1.15 $size-small: 600px -$layout-size: 960px +$layout-size: 1040px // COLOR @@ -96,7 +96,6 @@ $color-tertiary: #A61A07 .card, .cards > *, .footnotes color: var(--color-secondary-card-paragraph) background: var(--color-secondary-card-background) - border-radius: var(--border-radius) h1, h2, h3, h4, h5, h6 color: var(--color-secondary-card-headline) button, .button @@ -124,6 +123,7 @@ body --border-style: dashed --border-size: 4px --border-radius: calc(var(--tile)/2) + --border-radius-small: 3px --link-style: dotted font-size: 1.125rem @@ -287,6 +287,12 @@ sub max-width: $layout-size padding: var(--tile) margin: 0 auto + width: 90% + margin-right: auto + margin-left: auto + + @media screen and (max-width: 800px) + width: inherit .blogDate:first-child + h1 padding-top: var(--tile) @@ -297,6 +303,43 @@ sub .quote:first-child margin-top: 0 +.sticky + position: relative + display: block + + .sticky-col + top: 0 + position: sticky + width: 40% + margin-right: 7% + float: left + margin-bottom: 1rem + + .sticky-cards + width: 50% + float: right + + .cards + grid-template-columns: 1fr + + & > * + border-radius: var(--border-radius-small) + + + @media screen and (max-width: 800px) + .sticky-col, .sticky-cards + width: inherit + position: relative + margin-right: 0 + +.clearfix::before, .clearfix::after + content: " " + display: table + +.clearfix::after + clear: both + + .cards display: grid grid-template-columns: 1fr 1fr diff --git a/config/_default/config.yml b/config/_default/config.yml index f03cf11..a0e0d24 100644 --- a/config/_default/config.yml +++ b/config/_default/config.yml @@ -16,7 +16,7 @@ permalinks: params: FaviconFile: /favicon.svg - ImageSize: 960x + ImageSize: 1040x minify: tdewolff: diff --git a/content/_index.md b/content/_index.md index 2b02e8c..b341952 100644 --- a/content/_index.md +++ b/content/_index.md @@ -23,10 +23,17 @@ RésiLien est géré par un **collectif** d'entreprises de l'**Économie Sociale
+
+
## Quels services propose RésiLien ? {.center} +Tous les services sont Open Source et sont accompagnés d'une formation personnalisée. Des sauvegardes sont effectuées quotidiennement sur un autre site. + +
+
+ -
![Collaboration sur un document](/icons/writting.svg) @@ -57,6 +64,8 @@ RésiLien est géré par un **collectif** d'entreprises de l'**Économie Sociale Avec le logiciel libre Hugo, l'équipe de RésiLien peut concevoir un site web selon votre demande et l'héberger sur son infrastructure. { .cards } +
+