From ee78d0bf596871e0ee11d8fcf3a108486ee4e0fb Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 18 Nov 2016 11:18:29 +0000 Subject: [PATCH] Move switch service out of black header Also following the pattern work that Tim and Stephen have done. --- app/assets/stylesheets/_grids.scss | 2 +- app/assets/stylesheets/app.scss | 12 ++++---- .../stylesheets/components/navigation.scss | 28 +++++++++++++++---- app/assets/stylesheets/views/dashboard.scss | 5 ++++ app/templates/admin_template.html | 3 -- app/templates/main_nav.html | 3 -- app/templates/withnav_template.html | 6 ++++ 7 files changed, 42 insertions(+), 17 deletions(-) diff --git a/app/assets/stylesheets/_grids.scss b/app/assets/stylesheets/_grids.scss index cdd68defe..a52facba4 100644 --- a/app/assets/stylesheets/_grids.scss +++ b/app/assets/stylesheets/_grids.scss @@ -46,7 +46,7 @@ .align-with-heading { display: block; text-align: center; - margin-top: $gutter; + margin-top: 13px; padding-left: 2px; padding-right: 2px; } diff --git a/app/assets/stylesheets/app.scss b/app/assets/stylesheets/app.scss index de08eee3c..0ecc41389 100644 --- a/app/assets/stylesheets/app.scss +++ b/app/assets/stylesheets/app.scss @@ -56,14 +56,16 @@ a { .column-main { - > .heading-large { - margin-top: $gutter; + > .heading-large, + > .heading-medium { + margin: 10px 0 15px 0; } - > .grid-row { + > .grid-row:first-child { - .heading-large { - margin-top: $gutter; + .heading-large, + .heading-medium { + margin: 10px 0 15px 0; } } diff --git a/app/assets/stylesheets/components/navigation.scss b/app/assets/stylesheets/components/navigation.scss index 8b16a157c..451a54910 100644 --- a/app/assets/stylesheets/components/navigation.scss +++ b/app/assets/stylesheets/components/navigation.scss @@ -2,17 +2,35 @@ padding: 0 $gutter 0 0; + &-service { + + padding: 11px 0 9px 0; + border-bottom: 1px solid $border-colour; + margin: 0 0 10px; + position: relative; + + h2 { + @include bold-19; + margin: 0 0 0 0; + } + + &-switch { + @include core-16; + text-align: right; + position: absolute; + top: 0; + right: 0; + padding: 13px 0 9px 15px; + } + + } + li { @include core-19; margin: 10px 0 0 0; list-style-type: none; } - h2 { - @include bold-19; - margin: $gutter 0 0 0; - } - a { &:link, diff --git a/app/assets/stylesheets/views/dashboard.scss b/app/assets/stylesheets/views/dashboard.scss index 80f0b994d..9ad0c5843 100644 --- a/app/assets/stylesheets/views/dashboard.scss +++ b/app/assets/stylesheets/views/dashboard.scss @@ -11,6 +11,11 @@ border: 0; } } + + > .heading-medium { + margin-top: 10px; + } + } .keyline-block { diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index 55501e7e8..c0d4dfa4a 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -45,9 +45,6 @@
  • {{ current_user.name }}
  • -
  • - Switch service -
  • {% if current_user.has_permissions(admin_override=True) %}
  • Platform admin diff --git a/app/templates/main_nav.html b/app/templates/main_nav.html index 0ef4ddc35..7305fb577 100644 --- a/app/templates/main_nav.html +++ b/app/templates/main_nav.html @@ -42,9 +42,6 @@ {% endcall %} {% else %}