style: cleanup stats.scss

This commit is contained in:
Colin Darie 2024-06-17 11:57:52 +02:00
parent c288d340d8
commit 2252064259
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
4 changed files with 11 additions and 20 deletions

View file

@ -1,12 +1,3 @@
.new-h1 {
margin-bottom: 3.75rem;
font-size: 2.5rem;
}
.chart-container {
margin-top: 36px;
}
.chart {
width: 100%;
}

View file

@ -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],

View file

@ -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"]

View file

@ -2,7 +2,7 @@
#contact-form
.container
%h1.new-h1
%h1
= t('.contact_team')
.description