From ee884ed998cda8eaf8fbfb5b92b9a7d6f77d59ba Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 10 Apr 2018 19:55:28 +0200 Subject: [PATCH] Updates active to is-active class for menus --- app/assets/stylesheets/layout.scss | 17 +++++++++++++---- .../legislation/processes/_subnav.html.erb | 8 ++++---- app/views/admin/poll/polls/_subnav.html.erb | 10 +++++----- app/views/notifications/index.html.erb | 2 +- app/views/notifications/read.html.erb | 2 +- app/views/polls/_poll_subnav.html.erb | 6 +++--- app/views/shared/_filter_subnav.html.erb | 2 +- app/views/users/show.html.erb | 2 +- spec/features/users_spec.rb | 2 +- 9 files changed, 30 insertions(+), 21 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 5b78fa374..128b21346 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -253,12 +253,21 @@ a { } } - &.active { - border-bottom: 2px solid $brand; - color: $brand; + & + li { + margin-left: 0; } - &:not(.active) { + &.is-active { + border-bottom: 2px solid $brand; + color: $brand; + padding-bottom: rem-calc(1); + + h2 a { + color: $brand; + } + } + + &:not(.is-active) { margin-bottom: $line-height / 3; } } diff --git a/app/views/admin/legislation/processes/_subnav.html.erb b/app/views/admin/legislation/processes/_subnav.html.erb index 0b8c55840..2bfa9dd1d 100644 --- a/app/views/admin/legislation/processes/_subnav.html.erb +++ b/app/views/admin/legislation/processes/_subnav.html.erb @@ -1,6 +1,6 @@