From baec96e7d1df551f81369dfa6e727b4a0582930e Mon Sep 17 00:00:00 2001 From: rebuilt Date: Tue, 19 Oct 2021 21:06:00 +0200 Subject: [PATCH] Style _gauge_graph --- app/assets/stylesheets/sqm_application.scss | 5 +++++ app/views/sqm_categories/_gauge_graph.html.erb | 15 +++++---------- app/views/sqm_categories/show.html.erb | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/sqm_application.scss b/app/assets/stylesheets/sqm_application.scss index d0f369ab..ac8d9e3e 100644 --- a/app/assets/stylesheets/sqm_application.scss +++ b/app/assets/stylesheets/sqm_application.scss @@ -39,6 +39,11 @@ height: auto; } +.gauge-title { + margin-top: -1.5em; + margin-bottom: 0; +} + .measure-presenter { flex-basis: 33%; } diff --git a/app/views/sqm_categories/_gauge_graph.html.erb b/app/views/sqm_categories/_gauge_graph.html.erb index 99303d23..07d6ff79 100644 --- a/app/views/sqm_categories/_gauge_graph.html.erb +++ b/app/views/sqm_categories/_gauge_graph.html.erb @@ -1,3 +1,4 @@ +
- - <%= gauge.title %> - " transform="rotate(<%= rotation_angle_for(percentage: gauge.key_benchmark_percentage) %> <%= arc_center.x %> <%= arc_center.y %>)" stroke="none" /> + +

<%= gauge.title %>

+
diff --git a/app/views/sqm_categories/show.html.erb b/app/views/sqm_categories/show.html.erb index 47932b8b..b3f4cbfa 100644 --- a/app/views/sqm_categories/show.html.erb +++ b/app/views/sqm_categories/show.html.erb @@ -19,7 +19,7 @@
- <%= render partial: "gauge_graph", locals: { gauge: subcategory.gauge_presenter, gauge_class: 'gauge-graph-lg', font_class: 'font-bitter' } %> + <%= render partial: "gauge_graph", locals: { gauge: subcategory.gauge_presenter, gauge_class: 'gauge-graph-lg', font_class: 'sub-header-3' } %>

<%= subcategory.description %>

@@ -31,7 +31,7 @@

<%= measure_presenter.name %>

- <%= render partial: "gauge_graph", locals: { gauge: measure_presenter.gauge_presenter, gauge_class: 'gauge-graph-sm', font_class: 'font-cabin' } %> + <%= render partial: "gauge_graph", locals: { gauge: measure_presenter.gauge_presenter, gauge_class: 'gauge-graph-sm', font_class: 'weight-700' } %>

<%= measure_presenter.description %>