From f18a862337452896776916ab75b1943fc3b3a80c Mon Sep 17 00:00:00 2001 From: Panos Sakkos Date: Mon, 30 Dec 2024 18:20:33 +0200 Subject: [PATCH] Fix (#264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Gradient css fixed in header * reduce intro text font size and remove shadow --------- Co-authored-by: César Lizurey --- _includes/header.html | 25 +++++++------- css/grayscale.scss | 79 ++++++++++++++++--------------------------- 2 files changed, 43 insertions(+), 61 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 42cf7c235..e3762d579 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,19 +1,20 @@
-
diff --git a/css/grayscale.scss b/css/grayscale.scss index e1a74b8a1..e72940e0e 100644 --- a/css/grayscale.scss +++ b/css/grayscale.scss @@ -159,44 +159,25 @@ a { } .intro { - display: table; + display: flex; + position: relative; + flex-direction: column; width: 100%; - height: auto; + height: 100svh; text-align: center; - padding-top: 20rem; color: $font-color; - background: url("{{ site.baseurl }}/img/intro-bg.jpg") no-repeat center center; - background-size: cover; + background-color: $primary-color; -webkit-background-size: cover; -moz-background-size: cover; + background-size: cover; -o-background-size: cover; + background-attachment: scroll; + background-image: url("{{ site.baseurl }}/img/intro-bg.jpg"); + background-position: center center; + background-repeat: none; - .intro-body { - display: table-cell; - vertical-align: middle; - position: relative; - z-index: 2; - .brand-heading { - font-size: 40px; - } - .intro-text { - font-size: 1.3rem; - } - } - - @media (min-width: 768px) { - height: 100%; - .intro-body { - .brand-heading { - font-size: 100px; - } - .intro-text { - font-size: 1.6rem; - } - } - } - @media (min-width: 1200px) { - padding-top: 30rem; + .intro-text { + font-size: 1.6rem; } } @@ -205,28 +186,28 @@ a { position: absolute; left: 0px; right: 0px; - bottom: 23rem; - height: 20%; - background: linear-gradient(180deg, rgba(35, 42, 46, 0) 0%, #232a2e 100%); + height: 50%; + bottom: 0px; + background: linear-gradient( + 180deg, + rgba(139, 167, 32, 0) 0%, + $primary-color 100% + ); pointer-events: none; - @media (max-width: 1200px) { - bottom: 35rem; - height: 50%; - } - @media (max-width: 768px) { - bottom: 18rem; - height: 50%; - } - @media (max-width: 414px) { - bottom: 7rem; - height: 50%; - } - @media (max-width: 375px) { - bottom: 2rem; - height: 50%; + @media (min-width: 768px) { + height: 20%; } } +.intro .wrapper { + align-content: end; + height: 40%; +} + +.intro a { + padding-top: 5%; +} + @-webkit-keyframes pulse { from { -webkit-transform: scale(1);