From fcae2c0ac23b4e808f48e90e16d02739855a092d Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 9 Apr 2018 18:03:11 +0200 Subject: [PATCH] Updates top bar html and styles --- app/assets/stylesheets/layout.scss | 63 +++++++++++------- app/views/layouts/_header.html.erb | 70 ++++++++++++-------- app/views/shared/_admin_login_items.html.erb | 4 +- 3 files changed, 84 insertions(+), 53 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 3a0b73864..5b78fa374 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -436,8 +436,6 @@ header { .top-bar { background: $brand !important; color: #fff; - height: $line-height * 2; - line-height: $line-height * 2; padding-bottom: 0; padding-top: 0; @@ -445,30 +443,44 @@ header { padding: 0; } - .top-bar-title a { - @include logo; - line-height: rem-calc(80); - - @include breakpoint(medium) { - line-height: rem-calc(80); - } - - &:hover { - text-decoration: none; - } - } - ul { background: none; padding-right: rem-calc(15); } + .menu .menu-text { + padding: 0; + + a { + color: #fff; + display: inline-block; + font-family: 'Lato' !important; + font-size: rem-calc(24); + font-weight: lighter; + line-height: $line-height * 2; + padding: 0; + + @include breakpoint(medium) { + line-height: rem-calc(80); + margin-top: 0; + } + + img { + + @include breakpoint(medium) { + margin-right: $line-height / 2; + margin-top: 0; + } + } + } + } + .menu > li { display: block; + width: 100%; @include breakpoint(medium) { - display: table-cell; - height: $line-height * 3.5; + width: auto; } a { @@ -492,13 +504,11 @@ header { } } - .menu-icon.dark { - height: 20px; + .has-submenu { - &::after, - &:hover::after { - background: #fff; - box-shadow: 0 7px 0 #fff, 0 14px 0 #fff; + &.is-active a { + color: #fff; + font-weight: bold; } } @@ -507,7 +517,7 @@ header { &.is-dropdown-submenu { background: #fff; margin: 0; - margin-top: rem-calc(-24); + margin-top: rem-calc(-12); padding: 0; z-index: 9; } @@ -524,6 +534,11 @@ header { } } +.title-bar { + background: none; + float: right; +} + .dropdown.menu > li { &.is-dropdown-submenu-parent > a::after { diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index a73a99509..8b4c0a171 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -10,37 +10,53 @@
+
+ +
<%= t("application.menu")%>
+
+
- - <%= link_to setting['org_name'], root_path, class: "logo show-for-small-only" %> - - - - <%= t("application.menu")%> - - -
-
- <%= link_to root_path, class: "hide-for-small-only", accesskey: "0" do %> - <%= image_tag(image_path_for('logo_header.png'), class: 'hide-for-small-only float-left', size: '80x80', alt: t("layouts.header.logo")) %> - <%= setting['org_name'] %> +
+ + +
-
- +
+
+ +
-
- +
+ +
+ +
+
diff --git a/app/views/shared/_admin_login_items.html.erb b/app/views/shared/_admin_login_items.html.erb index a9e6fa4b9..3fbb34fcc 100644 --- a/app/views/shared/_admin_login_items.html.erb +++ b/app/views/shared/_admin_login_items.html.erb @@ -1,7 +1,7 @@ <% if show_admin_menu? %> -
  • +
  • <%= link_to t("layouts.header.administration_menu"), "#", rel: "nofollow", class: "hide-for-small-only" %> -