diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 74cbddf3c..4cdc650f5 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -692,21 +692,18 @@ body > header, .subnavigation { @include full-width-background; - - @include breakpoint(small only) { - @include grid-row-nest; - } + @include grid-column-gutter; + display: flex; + flex-direction: column; @include breakpoint(medium) { background: $body-background; color: $text; + flex-direction: row; padding-bottom: 0; - } - .search-form-header { - - @include breakpoint(small only) { - padding-left: rem-calc(map-get($grid-column-gutter, small) / 2); + > :first-child { + flex-grow: 1; } } @@ -790,6 +787,11 @@ body > header, } } +.subnavigation-with-top-links { + padding-left: 0; + padding-right: 0; +} + .top-bar-right { .is-active { diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index b95335e96..1e101fa36 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -33,25 +33,20 @@
-
-