From 6995382dcb01e961412edd05ed22c982399adf3f Mon Sep 17 00:00:00 2001 From: ouidade Date: Sun, 21 Nov 2021 21:52:51 +0100 Subject: [PATCH] positionnement bouton 'voir toutes les actus' bandeau bleu --- web/themes/custom/eql/css-compiled/styles.css | 5 ++++- web/themes/custom/eql/scss/pages/_home.scss | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index eb87c84..e6d4225 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -255,12 +255,15 @@ a { .layout--onecol .block-block-content { display: grid; - grid-template-columns: 1fr repeat(8, 2fr) 1fr; } + grid-template-columns: 1fr repeat(8, 2fr) 1fr; + position: relative; } .layout--onecol .field--type-link { grid-area: 8 / span 9; grid-row: 0; justify-self: end; + position: relative; + top: -200%; width: fit-content; height: fit-content; padding: 0.4rem 1rem; diff --git a/web/themes/custom/eql/scss/pages/_home.scss b/web/themes/custom/eql/scss/pages/_home.scss index b028369..c1cb533 100644 --- a/web/themes/custom/eql/scss/pages/_home.scss +++ b/web/themes/custom/eql/scss/pages/_home.scss @@ -85,14 +85,15 @@ .layout--onecol{ .block-block-content{ display: grid; - // grid-template-rows: repeat(auto fill, 1fr); grid-template-columns: 1fr repeat(8, 2fr) 1fr; - } - + position: relative; + } .field--type-link { grid-area: 8 / span 9; grid-row: 0; justify-self: end; + position: relative; + top: -200%; // display: block; // float: right; width: fit-content; @@ -144,6 +145,7 @@ background-color: $white; border: 2px solid $blue-light; list-style: none; + a{ text-transform: uppercase;