From 1d7a45dc26d1f8a482822847814ac98d62de5059 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Thu, 1 Feb 2024 17:59:34 +0100 Subject: [PATCH] colors and shadow --- client/src/curriculum/modules-list.scss | 5 ++- client/src/ui/base/_themes.scss | 44 ++++++++++++------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/client/src/curriculum/modules-list.scss b/client/src/curriculum/modules-list.scss index e00efbbc237c..47a380600405 100644 --- a/client/src/curriculum/modules-list.scss +++ b/client/src/curriculum/modules-list.scss @@ -1,6 +1,9 @@ @use "../ui/vars" as *; .curriculum-content-container { + --module-shadow: 4px 4px 8px 0 rgba(179, 179, 179, 0.18), + -4px 4px 8px 0 rgba(179, 179, 179, 0.15); + .curriculum-content { .modules { input[type="radio"]:not(:checked) ~ ol { @@ -106,7 +109,7 @@ .module-list-item { border: 0; border-radius: var(--elem-radius); - box-shadow: var(--shadow-02); + box-shadow: var(--module-shadow); display: flex; flex-direction: column; justify-self: center; diff --git a/client/src/ui/base/_themes.scss b/client/src/ui/base/_themes.scss index 2ff440677565..bdb95ba705e9 100644 --- a/client/src/ui/base/_themes.scss +++ b/client/src/ui/base/_themes.scss @@ -208,18 +208,18 @@ --baseline-limited-cross: #ea8600; --cur-bg-color: #fcefe2; - --cur-bg-color-topic-standards: #d5f4f5; - --cur-bg-color-topic-styling: #eff5d5; - --cur-bg-color-topic-scripting: #fff8d6; - --cur-bg-color-topic-tooling: #d5e4f5; - --cur-bg-color-topic-practices: #f5dfd5; + --cur-bg-color-topic-standards: #{$mdn-color-light-theme-red-10}; + --cur-bg-color-topic-styling: #{$mdn-color-light-theme-blue-10}; + --cur-bg-color-topic-scripting: #{$mdn-color-light-theme-yellow-10}; + --cur-bg-color-topic-tooling: #{$mdn-color-light-theme-green-10}; + --cur-bg-color-topic-practices: #{$mdn-color-light-theme-violet-10}; --cur-category-color: #e3642a; --cur-color: #d47d55; - --cur-color-topic-standards: #187b7f; - --cur-color-topic-styling: #187f22; - --cur-color-topic-scripting: #7f6f16; - --cur-color-topic-tooling: #182f7f; - --cur-color-topic-practices: #a25e3f; + --cur-color-topic-standards: #{$mdn-color-light-theme-red-60}; + --cur-color-topic-styling: #{$mdn-color-light-theme-blue-60}; + --cur-color-topic-scripting: #{$mdn-color-light-theme-yellow-60}; + --cur-color-topic-tooling: #{$mdn-color-light-theme-green-60}; + --cur-color-topic-practices: #{$mdn-color-light-theme-violet-60}; color-scheme: light; } @@ -428,18 +428,18 @@ --baseline-limited-check: #1e8e3e; --baseline-limited-cross: #ea8600; - --cur-color: #fcefe2; - --cur-color-topic-standards: #d5f4f5; - --cur-color-topic-styling: #eff5d5; - --cur-color-topic-scripting: #fff8d6; - --cur-color-topic-tooling: #d5e4f5; - --cur-color-topic-practices: #f5dfd5; - --cur-bg-color: #d47d55; - --cur-bg-color-topic-standards: #187b7f; - --cur-bg-color-topic-styling: #187f22; - --cur-bg-color-topic-scripting: #7f6f16; - --cur-bg-color-topic-tooling: #182f7f; - --cur-bg-color-topic-practices: #a25e3f; + --cur-color: #e3642a; + --cur-color-topic-standards: #{$mdn-color-light-theme-red-30}; + --cur-color-topic-styling: #{$mdn-color-light-theme-blue-30}; + --cur-color-topic-scripting: #{$mdn-color-light-theme-yellow-40}; + --cur-color-topic-tooling: #{$mdn-color-light-theme-green-40}; + --cur-color-topic-practices: #{$mdn-color-light-theme-violet-40}; + --cur-bg-color: #664b33; + --cur-bg-color-topic-standards: #{$mdn-color-light-theme-red-70}; + --cur-bg-color-topic-styling: #{$mdn-color-light-theme-blue-70}; + --cur-bg-color-topic-scripting: #{$mdn-color-light-theme-yellow-70}; + --cur-bg-color-topic-tooling: #{$mdn-color-light-theme-green-70}; + --cur-bg-color-topic-practices: #{$mdn-color-light-theme-violet-70}; --cur-category-color: #e3642a; color-scheme: dark;