From be1f4cb858683ab845852b441e22d7306066ce2f Mon Sep 17 00:00:00 2001 From: Alexandru Emil Lupu Date: Fri, 26 Apr 2024 18:17:36 +0300 Subject: [PATCH] Adjust budget category boxes --- .../budget_category_voting/order_category/show.erbx | 11 ----------- .../add_category_limits.html.erb.deface | 2 +- .../budget_category_voting.scss | 6 ++++++ 3 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 app/cells/decidim/budget_category_voting/order_category/show.erbx diff --git a/app/cells/decidim/budget_category_voting/order_category/show.erbx b/app/cells/decidim/budget_category_voting/order_category/show.erbx deleted file mode 100644 index 403140c..0000000 --- a/app/cells/decidim/budget_category_voting/order_category/show.erbx +++ /dev/null @@ -1,11 +0,0 @@ -<%= content_tag :div, class: "column vote_by_category", data: data do %> -
-
-

<%= category_name %>

-

<%= remaining_votes %>

-

<%= caption %>

-
-
-<% end %> - -<%= render :popup %> \ No newline at end of file diff --git a/app/overrides/decidim/budgets/projects/_budget_summary/add_category_limits.html.erb.deface b/app/overrides/decidim/budgets/projects/_budget_summary/add_category_limits.html.erb.deface index 7e466c6..c89c13b 100644 --- a/app/overrides/decidim/budgets/projects/_budget_summary/add_category_limits.html.erb.deface +++ b/app/overrides/decidim/budgets/projects/_budget_summary/add_category_limits.html.erb.deface @@ -1,6 +1,6 @@
-
+
<% current_order.categories.each do |category| %> <%= cell category.card_class, category %> <% end %> diff --git a/app/packs/stylesheets/decidim/budget_category_voting/budget_category_voting.scss b/app/packs/stylesheets/decidim/budget_category_voting/budget_category_voting.scss index 2a7d3d0..fc314d6 100644 --- a/app/packs/stylesheets/decidim/budget_category_voting/budget_category_voting.scss +++ b/app/packs/stylesheets/decidim/budget_category_voting/budget_category_voting.scss @@ -6,10 +6,16 @@ text-decoration: underline; padding-bottom: 1rem; text-underline-offset: 5px; + @include breakpoint(small down){ + font-size: 1.125em; + } } .assigned { font-weight: 600; + @include breakpoint(small down){ + font-size: 1em; + } } .criteria-not-met {