From 21d95578a7e3ddecccbe88c5e690f8df9bb5424c Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Mon, 23 Dec 2024 09:06:05 +0100 Subject: [PATCH 1/2] [Site] Improve contrast on IconModal --- ux.symfony.com/assets/styles/components/_IconModal.scss | 5 ++--- ux.symfony.com/assets/styles/components/_Tabs.scss | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ux.symfony.com/assets/styles/components/_IconModal.scss b/ux.symfony.com/assets/styles/components/_IconModal.scss index 381d446f1d9..09346939173 100644 --- a/ux.symfony.com/assets/styles/components/_IconModal.scss +++ b/ux.symfony.com/assets/styles/components/_IconModal.scss @@ -176,7 +176,7 @@ padding: 0.35rem 0.5rem; border-radius: .5rem; border: 1px solid var(--bs-dark-border-subtle); - background: var(--bs-secondary-bg-subtle); + background: var(--bs-secondary-bg); overflow: hidden; position: relative; opacity: .8; @@ -212,7 +212,7 @@ } .IconModal__code span { - color: lightskyblue; + color: var(--bs-code-color); } .IconModal__copy { @@ -238,4 +238,3 @@ .IconModal__main h3:first-child { padding-top: 0; } - diff --git a/ux.symfony.com/assets/styles/components/_Tabs.scss b/ux.symfony.com/assets/styles/components/_Tabs.scss index b769ac56a85..1ca29f8472e 100644 --- a/ux.symfony.com/assets/styles/components/_Tabs.scss +++ b/ux.symfony.com/assets/styles/components/_Tabs.scss @@ -30,7 +30,7 @@ transition: background-color 150ms ease-in-out; } .TabControl.active { - background: var(--bs-secondary-bg); + background: var(--bs-tertiary-bg); } .TabPanel { From 610db723dba03cfe0c5041877388359d7df3845b Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Mon, 23 Dec 2024 09:18:02 +0100 Subject: [PATCH 2/2] [Site] Improve IconModal display on mobile --- .../assets/styles/components/_IconModal.scss | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/ux.symfony.com/assets/styles/components/_IconModal.scss b/ux.symfony.com/assets/styles/components/_IconModal.scss index 09346939173..5f51fa84e8f 100644 --- a/ux.symfony.com/assets/styles/components/_IconModal.scss +++ b/ux.symfony.com/assets/styles/components/_IconModal.scss @@ -15,7 +15,7 @@ min-height: 1rem; max-width: 100vw; max-height: 100vh; - overflow: clip; + overflow: auto; padding: 1rem 1.5rem; background: var(--bs-body-bg); color: var(--bs-body-color); @@ -59,7 +59,6 @@ .IconModal__body { display: grid; - grid-template-columns: 300px 1fr; gap: 1.5rem; } @@ -238,3 +237,21 @@ .IconModal__main h3:first-child { padding-top: 0; } + +.IconModal__main .TabBody { + padding-block-end: 0; +} + +@media screen and (max-width: 768px) { + .IconModal { + padding: .5rem; + margin: .5rem; + width: auto; + height: auto; + } +} +@media screen and (min-width: 768px) { + .IconModal__body { + grid-template-columns: 300px 1fr; + } +}