From ef320cd1f19e295c54e6641fdf3db4b62985a9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 27 Jun 2024 16:26:11 +0200 Subject: [PATCH] sass fix --- resources/sass/club/base/_layout.scss | 93 ++++++++++++++------------- resources/sass/club/pages/home.scss | 2 +- 2 files changed, 50 insertions(+), 45 deletions(-) diff --git a/resources/sass/club/base/_layout.scss b/resources/sass/club/base/_layout.scss index 55e5a4e8..664b97a3 100644 --- a/resources/sass/club/base/_layout.scss +++ b/resources/sass/club/base/_layout.scss @@ -6,6 +6,38 @@ body { min-height: 100lvh; flex-direction: column; + // * COMMON + > footer, > header { + .btn-social { + filter: hue-rotate(-137deg) brightness(2.1) contrast(2.5); + } + + .btn-lang { + padding: 0.4rem 0; + background-clip: inherit !important; + background-color: inherit !important; + background-image: url('@/images/footer/lang-btn-bg.png'); + background-position: 100% 100%; + background-repeat: no-repeat; + background-size: contain; + font-family: BourtonBase, sans-serif; + text-align: center !important; + text-decoration: none; + + @include rfs(1.1rem, font-size); + + > span { + @include text-inset-shadow(var(--bs-btn-color)); + } + } + + .btn-social, .btn-lang { + width: 2.3rem; + height: 2.3rem; + padding: 0.1rem; + } + } + // * HEADER > header { padding-top: 1.86rem; @@ -105,8 +137,9 @@ body { .search-input { label, label::after, button { color: $color-hex-dark-blue !important; - text-transform: uppercase; font-weight: bold; + text-transform: uppercase; + @include media-breakpoint-up(sm) { @include rfs(1.2rem, font-size); } @@ -115,14 +148,15 @@ body { } .header-club-logo { - object-fit: contain; width: 6.5625rem; height: 4.25rem; + object-fit: contain; @include media-breakpoint-up(md) { width: 7.6875rem; height: 5rem; } + @include media-breakpoint-up(xl) { width: 10.1875rem; height: 6.625rem; @@ -138,6 +172,7 @@ body { flex-direction: row; align-items: center; } + span { display: none; width: 6rem; @@ -149,12 +184,11 @@ body { } .guest-cta-btn-list { - display: none; - flex-direction: column; - flex-wrap: wrap; - align-content: center; position: absolute; right: 4rem; + display: none; + flex-flow: column wrap; + align-content: center; align-items: end; @include media-breakpoint-up(md) { @@ -168,16 +202,16 @@ body { .customer-points { position: absolute; - right: 0; top: 50%; - transform: translateY(-50%); + right: 0; display: inline-flex; flex-direction: row; align-items: center; justify-content: start; + padding: .2rem .4rem; background-color: $color-hex-light-blue; color: $color-white; - padding: .2rem .4rem; + transform: translateY(-50%); @include media-breakpoint-up(md) { padding: .5rem 1rem; @@ -185,10 +219,10 @@ body { .header-club-egg { display: none; - object-fit: contain; width: 2.0625rem; height: 1.9375rem; margin-right: .6rem; + object-fit: contain; @include media-breakpoint-up(md) { display: inline-block; @@ -196,11 +230,12 @@ body { } .header-club-points { - font-family: BourtonBase; - @include rfs(2.0625rem, font-size); - margin-right: .3rem; display: flex; align-items: end; + margin-right: .3rem; + font-family: BourtonBase, sans-serif; + + @include rfs(2.0625rem, font-size); @include rfs(1.8rem, line-height); @include media-breakpoint-up(md) { @@ -210,6 +245,7 @@ body { > span:nth-child(2) { margin-left: .2rem; font-size: 0.75rem; + @include rfs(0.875rem, line-height); } } @@ -225,35 +261,4 @@ body { position: relative; flex-grow: 0; } - - > footer, > header { - .btn-social, .btn-lang { - width: 2.3rem; - height: 2.3rem; - padding: 0.1rem; - } - - .btn-social { - filter: hue-rotate(-137deg) brightness(2.1) contrast(2.5); - } - - .btn-lang { - padding: 0.4rem 0; - background-clip: inherit !important; - background-color: inherit !important; - background-image: url('@/images/footer/lang-btn-bg.png'); - background-position: 100% 100%; - background-repeat: no-repeat; - background-size: contain; - font-family: BourtonBase, sans-serif; - text-align: center !important; - text-decoration: none; - - @include rfs(1.1rem, font-size); - - span { - @include text-inset-shadow(var(--bs-btn-color)); - } - } - } } diff --git a/resources/sass/club/pages/home.scss b/resources/sass/club/pages/home.scss index ec4da150..3faf2504 100644 --- a/resources/sass/club/pages/home.scss +++ b/resources/sass/club/pages/home.scss @@ -12,7 +12,7 @@ .card-body { position: absolute; - bottom: 0rem; + bottom: 0; .lines { position: relative;