From 1036813b9777c3e8c6b9378aef14c0828560076d Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Fri, 8 Mar 2019 23:48:45 +0100 Subject: [PATCH] Fixed: Finetuned color-impaired mode styling in Calendar. --- frontend/src/Calendar/Events/CalendarEvent.css | 17 +++++++++++++---- frontend/src/Styles/Variables/colors.js | 3 ++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/frontend/src/Calendar/Events/CalendarEvent.css b/frontend/src/Calendar/Events/CalendarEvent.css index c135dbc5b..5b1aeaf6b 100644 --- a/frontend/src/Calendar/Events/CalendarEvent.css +++ b/frontend/src/Calendar/Events/CalendarEvent.css @@ -5,6 +5,10 @@ border-bottom: 1px solid $borderColor; border-left: 4px solid $borderColor; font-size: 12px; + + &:global(.colorImpaired) { + border-left-width: 5px; + } } .info, @@ -39,6 +43,10 @@ .downloaded { border-left-color: $successColor !important; + + &:global(.colorImpaired) { + border-left-color: color($successColor, saturation(+15%)) !important; + } } .downloading { @@ -49,7 +57,7 @@ border-left-color: $gray !important; &:global(.colorImpaired) { - background: repeating-linear-gradient(45deg, transparent, transparent 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); + background: repeating-linear-gradient(45deg, $colorImpairedGradientDark, $colorImpairedGradientDark 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); } } @@ -57,7 +65,7 @@ border-left-color: $warningColor !important; &:global(.colorImpaired) { - background: repeating-linear-gradient(90deg, transparent, transparent 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); + background: repeating-linear-gradient(90deg, $colorImpairedGradientDark, $colorImpairedGradientDark 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); } } @@ -65,7 +73,8 @@ border-left-color: $dangerColor !important; &:global(.colorImpaired) { - background: repeating-linear-gradient(90deg, transparent, transparent 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); + border-left-color: color($dangerColor saturation(+15%)) !important; + background: repeating-linear-gradient(90deg, $colorImpairedGradientDark, $colorImpairedGradientDark 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); } } @@ -73,6 +82,6 @@ border-left-color: $primaryColor !important; &:global(.colorImpaired) { - background: repeating-linear-gradient(90deg, transparent, transparent 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); + background: repeating-linear-gradient(90deg, $colorImpairedGradientDark, $colorImpairedGradientDark 5px, $colorImpairedGradient 5px, $colorImpairedGradient 10px); } } diff --git a/frontend/src/Styles/Variables/colors.js b/frontend/src/Styles/Variables/colors.js index 4ded49029..051a8b624 100644 --- a/frontend/src/Styles/Variables/colors.js +++ b/frontend/src/Styles/Variables/colors.js @@ -61,7 +61,8 @@ module.exports = { inputErrorBoxShadowColor: 'rgba(240, 80, 80, 0.6)', inputWarningBorderColor: '#ffa500', inputWarningBoxShadowColor: 'rgba(255, 165, 0, 0.6)', - colorImpairedGradient: '#fcfcfc', + colorImpairedGradient: '#ffffff', + colorImpairedGradientDark: '#f4f5f6', // // Buttons