From 4ea30da2995ae79362f997762b8c9e8b0def9639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 27 Aug 2021 20:29:12 +0200 Subject: [PATCH 1/6] Fix line height in subnavigation items When, on small screens, a navigation element had a very long text causing it to span over multiple lines, the space between each line was the same as the space between elements. This made it hard to see where elements started and ended. Using a padding to separate the contents of one element and the contents of the next one solves the issue. --- app/assets/stylesheets/layout.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 4ebefa35b..beaf3de74 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -744,7 +744,8 @@ body > header, a { color: inherit; display: inline-block; - line-height: $line-height * 2; + padding-bottom: $line-height / 2; + padding-top: $line-height / 2; position: relative; text-align: left; width: 100%; From d6fe49ff4f84ebbb1f2dd3a7cfce7c86d9c58ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 27 Aug 2021 22:51:06 +0200 Subject: [PATCH 2/6] Unify Foundation classes in header menus In commit 55c3c7987 we updated the admin layout header to use `class="dropdown menu" data-dropdown-menu` instead of `class="menu" data-responsive-menu="medium-dropdown"`. Then, in commit dcec003d0, we updated the public layout header to use `class="menu" data-responsive-menu="medium-dropdown"` instead of `class="dropdown menu" data-dropdown-menu`. Now we're applying the same classes to both, hoping we can get some consistent styles. I'm choosing to keep the ones in the public layout because using it I had less problems when trying to improve the styles of this navigation. --- app/views/layouts/_admin_header.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_admin_header.html.erb b/app/views/layouts/_admin_header.html.erb index 88e5e0ff8..e301c0d4a 100644 --- a/app/views/layouts/_admin_header.html.erb +++ b/app/views/layouts/_admin_header.html.erb @@ -40,7 +40,7 @@
-