From 225206425980fae4f7099d2db86ed4826d76b555 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 17 Jun 2024 11:57:52 +0200 Subject: [PATCH] style: cleanup stats.scss --- app/assets/stylesheets/stats.scss | 9 --------- app/views/shared/procedures/_stats.html.haml | 10 +++++----- app/views/stats/index.html.haml | 10 +++++----- app/views/support/admin.html.haml | 2 +- 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/app/assets/stylesheets/stats.scss b/app/assets/stylesheets/stats.scss index 8c255c6f6..759768e6e 100644 --- a/app/assets/stylesheets/stats.scss +++ b/app/assets/stylesheets/stats.scss @@ -1,12 +1,3 @@ -.new-h1 { - margin-bottom: 3.75rem; - font-size: 2.5rem; -} - -.chart-container { - margin-top: 36px; -} - .chart { width: 100%; } diff --git a/app/views/shared/procedures/_stats.html.haml b/app/views/shared/procedures/_stats.html.haml index 1fe3affe0..fd6fb1c85 100644 --- a/app/views/shared/procedures/_stats.html.haml +++ b/app/views/shared/procedures/_stats.html.haml @@ -12,8 +12,8 @@ %h2.fr-callout__title= t('.processing_time') %p.fr-callout__text.fr-text--md= t('.since_procedure_creation') - .chart-container - .chart-procedures-chart{ data: { 'chartkick-target': 'chart' }} + .fr-mt-4w + .chart-procedures-chart{ data: { 'chartkick-target': 'chart' } } = column_chart @usual_traitement_time_by_month, library: Chartkick.options[:default_library_config], ytitle: t('.nb_days'), legend: "bottom", label: t('.processing_time_graph_description') @@ -23,7 +23,7 @@ %h2.fr-callout__title= t('.status_evolution') %p.fr-callout__text.fr-text--md= t('.status_evolution_details') - .chart-container + .fr-mt-4w .chart = area_chart @dossiers_funnel, library: Chartkick.options[:default_library_config], @@ -34,7 +34,7 @@ %h2.fr-callout__title= t('.acceptance_rate') %p.fr-callout__text.fr-text--md= t('.acceptance_rate_details') - .chart-container + .fr-mt-4w .chart = pie_chart @termines_states, library: Chartkick.options[:default_library_config], @@ -48,7 +48,7 @@ %h2.fr-callout__title= t('.weekly_distribution') %p.fr-callout__text.fr-text--md= t('.weekly_distribution_details') - .chart-container + .fr-mt-4w .chart = line_chart @termines_by_week, library: Chartkick.options[:default_library_config], diff --git a/app/views/stats/index.html.haml b/app/views/stats/index.html.haml index af8fc0bc1..96c847e47 100644 --- a/app/views/stats/index.html.haml +++ b/app/views/stats/index.html.haml @@ -27,8 +27,8 @@ %label.fr-label{ for: "segmented-procedures-2" } Cumul - .chart-container - .chart.monthly-procedures-chart{ data: { 'chartkick-target': 'chart' }} + .fr-mt-4w + .chart.monthly-procedures-chart{ data: { 'chartkick-target': 'chart' } } = column_chart @procedures_in_the_last_4_months, library: Chartkick.options[:default_library_config] .chart.cumulative-procedures-chart.hidden{ data: { 'chartkick-target': 'chart' } } = area_chart @procedures_cumulative, library: Chartkick.options[:default_library_config] @@ -55,8 +55,8 @@ Cumul - .chart-container - .chart.monthly-dossiers-chart{ data: { 'chartkick-target': 'chart' }} + .fr-mt-4w + .chart.monthly-dossiers-chart{ data: { 'chartkick-target': 'chart' } } = column_chart @dossiers_in_the_last_4_months, library: Chartkick.options[:default_library_config] .chart.cumulative-dossiers-chart.hidden{ data: { 'chartkick-target': 'chart' } } = area_chart @dossiers_cumulative, library: Chartkick.options[:default_library_config] @@ -65,7 +65,7 @@ .fr-callout %h2.fr-callout__title RĂ©partition des dossiers - .chart-container + .fr-mt-4w .chart = pie_chart @dossiers_states_for_pie, library: Chartkick.options[:default_library_config], colors: ["#000091", "#7F7FC8", "#9A9AFF", "#00006D"] diff --git a/app/views/support/admin.html.haml b/app/views/support/admin.html.haml index dff48a0cc..bfc845b32 100644 --- a/app/views/support/admin.html.haml +++ b/app/views/support/admin.html.haml @@ -2,7 +2,7 @@ #contact-form .container - %h1.new-h1 + %h1 = t('.contact_team') .description