From: Tom Hughes Date: Mon, 8 Apr 2024 19:24:48 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/4664' X-Git-Tag: live~205 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5dc9fb3dc550a7b81ee6df5d6ca97e050798aba9?hp=fa8151c2ec262265cb8bf462c283a1ededa5894e Merge remote-tracking branch 'upstream/pull/4664' --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 6cbc55d7e..eac3f7417 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -150,11 +150,6 @@ nav.primary { nav.secondary { .nav-link { padding: 0.2rem; - color: $darkgrey; - } - - > ul li.current a { - color: darken($darkgrey, 25%); } #inboxanchor { @@ -846,8 +841,6 @@ tr.turn:hover { } .search_form { - background-color: $lightgrey; - #query { z-index: 0; } @@ -857,10 +850,6 @@ tr.turn:hover { } } -.directions_form { - background-color: $lightgrey; -} - /* Rules for user images */ img.user_image { diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 17c36bdfe..368668a9b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -41,8 +41,8 @@ module ApplicationHelper end end - def current_page_class(path) - :current if current_page?(path) + def header_nav_link_class(path) + ["nav-link", current_page?(path) ? "text-secondary-emphasis" : "text-secondary"] end def application_data diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 0fafc3c7f..6a926d692 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -34,48 +34,48 @@