From d99ca9bd34643a45126fe55d1b0984a7576f3073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 26 Nov 2020 13:12:26 +0100 Subject: [PATCH] Use CSS to make items bold in the admin menu From a semantic point of view, there's no reason to add a strong emphasis to the menu items. Besides, using CSS simplifies the code and is less error-prone. For instance, the "stats" section didn't have a tag, and so it was the only one which wasn't bold. --- app/assets/stylesheets/admin/menu.scss | 4 +++ app/components/admin/menu_component.html.erb | 28 ++++++++++---------- app/views/management/_menu.html.erb | 2 +- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/admin/menu.scss b/app/assets/stylesheets/admin/menu.scss index 482d2db91..fdbe295b0 100644 --- a/app/assets/stylesheets/admin/menu.scss +++ b/app/assets/stylesheets/admin/menu.scss @@ -20,6 +20,10 @@ } } + > ul > li a { + font-weight: bold; + } + li { margin: 0; outline: 0; diff --git a/app/components/admin/menu_component.html.erb b/app/components/admin/menu_component.html.erb index 657d0eebf..36d96702e 100644 --- a/app/components/admin/menu_component.html.erb +++ b/app/components/admin/menu_component.html.erb @@ -3,7 +3,7 @@
  • <%= link_to admin_proposals_path do %> - <%= t("admin.menu.proposals") %> + <%= t("admin.menu.proposals") %> <% end %>
  • <% end %> @@ -12,7 +12,7 @@
  • "> <%= link_to admin_debates_path do %> - <%= t("admin.menu.debates") %> + <%= t("admin.menu.debates") %> <% end %>
  • <% end %> @@ -20,7 +20,7 @@
  • "> <%= link_to admin_comments_path do %> - <%= t("admin.menu.comments") %> + <%= t("admin.menu.comments") %> <% end %>
  • @@ -28,7 +28,7 @@
  • "> <%= link_to admin_polls_path do %> - <%= t("admin.menu.polls") %> + <%= t("admin.menu.polls") %> <% end %>
  • <% end %> @@ -37,7 +37,7 @@
  • "> <%= link_to admin_legislation_processes_path do %> - <%= t("admin.menu.legislation") %> + <%= t("admin.menu.legislation") %> <% end %>
  • <% end %> @@ -46,7 +46,7 @@
  • "> <%= link_to admin_budgets_path do %> - <%= t("admin.menu.budgets") %> + <%= t("admin.menu.budgets") %> <% end %>
  • <% end %> @@ -54,7 +54,7 @@
  • - <%= t("admin.menu.title_booths") %> + <%= t("admin.menu.title_booths") %>