From 2642c0e9cd1fda53cb8f81f6538c152bc6dc1004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Fri, 18 Feb 2022 21:37:59 +0100 Subject: [PATCH] Meet WCAM contrast minima on portal --- .../static/scipost/assets/config/preconfig.scss | 5 ++++- .../static/scipost/assets/css/_homepage.scss | 2 +- .../static/scipost/assets/css/_navbar.scss | 15 ++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/scipost_django/scipost/static/scipost/assets/config/preconfig.scss b/scipost_django/scipost/static/scipost/assets/config/preconfig.scss index f1ad8374f..c57b7db8d 100644 --- a/scipost_django/scipost/static/scipost/assets/config/preconfig.scss +++ b/scipost_django/scipost/static/scipost/assets/config/preconfig.scss @@ -31,7 +31,10 @@ $scipost-light: #C3D7EE; $scipost-lightblue: #6885c3; $scipost-blue55: #5b7abe; $scipost-blue50: #496bb6; -$scipost-blue45: #4161a4; +$scipost-blue48: #4869b4; +$scipost-blue47: #4768b2; +$scipost-blue45: #4565ac; +$scipost-blue41: #4161a4; $scipost-lightestblue: #d3e3f6; $scipost-darkblue: #002b49; $scipost-orange: #f6a11a; diff --git a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss index 1cc79f861..3d6d88ddc 100644 --- a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss +++ b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss @@ -205,7 +205,7 @@ } .news li .date { - color: #aaa; + color: #767676; text-transform: uppercase; font-size: 2.3em; width: 60px; diff --git a/scipost_django/scipost/static/scipost/assets/css/_navbar.scss b/scipost_django/scipost/static/scipost/assets/css/_navbar.scss index 0fd57bb65..46fe7a7b0 100644 --- a/scipost_django/scipost/static/scipost/assets/css/_navbar.scss +++ b/scipost_django/scipost/static/scipost/assets/css/_navbar.scss @@ -75,7 +75,7 @@ white-space: normal; a { - color: $scipost-blue50; + color: $scipost-blue48; transition: 0.08s; &:hover { @@ -132,7 +132,8 @@ } .dropdown-menu { - background: #7a94c5; // background: $scipost-blue50; + //background: #7a94c5; // background: $scipost-blue50; + background: $scipost-blue48; // background: $scipost-blue50; border: 0; //2px solid $scipost-darkblue; box-shadow: none; padding: 0.75rem 0 !important; @@ -207,7 +208,7 @@ .main-nav { - background-color: $scipost-blue50; + background-color: $scipost-blue48; letter-spacing: 0.3px; .container { @@ -237,7 +238,7 @@ .dropdown-menu { min-width: 255px; padding: 0.45rem 0.75rem; - background: $scipost-blue50; + background: $scipost-blue48; color: $white; //border-color: #e0e0e0; top: 36px; @@ -316,7 +317,7 @@ } .dropdown-menu { - background: $scipost-blue50;//#7a94c5; + background: $scipost-blue48;//#7a94c5; border: 2px solid $scipost-darkblue; box-shadow: none; padding: 0.75rem 0 !important; @@ -458,13 +459,13 @@ header .nav-item { #portal-tablist { - background-color: $scipost-blue50; + background-color: $scipost-blue48; list-style: none; padding: 0;// 0 4px 0; margin: 0; li button, li a { - border: 2px solid $scipost-blue50; + border: 2px solid $scipost-blue48; color: #eee; font-size: 0.8rem; font-weight: 800; -- GitLab