From eb951c75e434a6555e0b25e828179093af2e0d38 Mon Sep 17 00:00:00 2001 From: kara Diaby Date: Wed, 22 Sep 2021 11:29:02 +0200 Subject: [PATCH] change stats colors --- app/assets/stylesheets/stats.scss | 10 ++++------ app/views/stats/index.html.haml | 2 +- config/initializers/chartkick.rb | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/stats.scss b/app/assets/stylesheets/stats.scss index 301dac482..c300cef14 100644 --- a/app/assets/stylesheets/stats.scss +++ b/app/assets/stylesheets/stats.scss @@ -1,8 +1,6 @@ @import "colors"; $dark-grey: #333333; $light-grey: #999999; -$blue: rgba(61, 149, 236, 1); -$blue-hover: rgba(61, 149, 236, 0.8); $default-space: 15px; @@ -87,11 +85,11 @@ $segmented-control-item-border-radius: 2 * $default-space; .segmented-control-item { display: inline-block; font-size: 15px; - border: 2px solid $blue-france-500; + border: 2px solid $blue-france-700; margin-right: -2px; padding-left: $segmented-control-item-horizontal-padding; padding-right: $segmented-control-item-horizontal-padding; - color: $blue-france-500; + color: $blue-france-700; &:first-of-type { border-radius: $segmented-control-item-border-radius 0px 0px $segmented-control-item-border-radius; @@ -103,14 +101,14 @@ $segmented-control-item-border-radius: 2 * $default-space; } &:hover { - background-color: $blue-hover; + background-color: $blue-france-500; color: #FFFFFF; cursor: pointer; } } .segmented-control-item-active { - background-color: $blue-france-500; + background-color: $blue-france-700; color: #FFFFFF; } diff --git a/app/views/stats/index.html.haml b/app/views/stats/index.html.haml index f78ebafe0..9704f56de 100644 --- a/app/views/stats/index.html.haml +++ b/app/views/stats/index.html.haml @@ -43,7 +43,7 @@ .chart-container .chart = pie_chart @dossiers_states_for_pie, - colors: ["rgba(222, 238, 265, 1)", "rgba(191, 220, 249, 1)", "rgba(113, 176, 239, 1)", "rgba(61, 149, 236, 1)"] + colors: ["#000091", "#7F7FC8", "#9A9AFF", "#00006D"] .stat-card.stat-card-half.pull-left %ul.segmented-control.pull-right diff --git a/config/initializers/chartkick.rb b/config/initializers/chartkick.rb index cf507c8be..4e07d45e5 100644 --- a/config/initializers/chartkick.rb +++ b/config/initializers/chartkick.rb @@ -1,7 +1,7 @@ Chartkick.options = { content_for: :charts_js, defer: true, - colors: ["rgba(61, 149, 236, 1)"], + colors: ["#000091"], thousands: ' ', decimal: ',' }