Updates top bar html and styles
This commit is contained in:
@@ -436,8 +436,6 @@ header {
|
|||||||
.top-bar {
|
.top-bar {
|
||||||
background: $brand !important;
|
background: $brand !important;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
height: $line-height * 2;
|
|
||||||
line-height: $line-height * 2;
|
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
|
|
||||||
@@ -445,30 +443,44 @@ header {
|
|||||||
padding: 0;
|
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 {
|
ul {
|
||||||
background: none;
|
background: none;
|
||||||
padding-right: rem-calc(15);
|
padding-right: rem-calc(15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu > li {
|
.menu .menu-text {
|
||||||
display: block;
|
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) {
|
@include breakpoint(medium) {
|
||||||
display: table-cell;
|
line-height: rem-calc(80);
|
||||||
height: $line-height * 3.5;
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
|
||||||
|
@include breakpoint(medium) {
|
||||||
|
margin-right: $line-height / 2;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu > li {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
@include breakpoint(medium) {
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -492,13 +504,11 @@ header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-icon.dark {
|
.has-submenu {
|
||||||
height: 20px;
|
|
||||||
|
|
||||||
&::after,
|
&.is-active a {
|
||||||
&:hover::after {
|
color: #fff;
|
||||||
background: #fff;
|
font-weight: bold;
|
||||||
box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -507,7 +517,7 @@ header {
|
|||||||
&.is-dropdown-submenu {
|
&.is-dropdown-submenu {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: rem-calc(-24);
|
margin-top: rem-calc(-12);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
}
|
}
|
||||||
@@ -524,6 +534,11 @@ header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title-bar {
|
||||||
|
background: none;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown.menu > li {
|
.dropdown.menu > li {
|
||||||
|
|
||||||
&.is-dropdown-submenu-parent > a::after {
|
&.is-dropdown-submenu-parent > a::after {
|
||||||
|
|||||||
@@ -10,29 +10,47 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="title-bar" data-responsive-toggle="responsive_menu" data-hide-for="medium">
|
||||||
|
<button class="menu-icon" type="button" data-toggle="responsive_menu"></button>
|
||||||
|
<div class="title-bar-title"><%= t("application.menu")%></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="top-bar">
|
<div class="top-bar">
|
||||||
|
<ul class="menu show-for-small-only">
|
||||||
<%= link_to setting['org_name'], root_path, class: "logo show-for-small-only" %>
|
<li class="menu-text">
|
||||||
|
<%= link_to root_path, accesskey: "0" do %>
|
||||||
<span data-responsive-toggle="responsive_menu" data-hide-for="medium" class="float-right">
|
<%= image_tag(image_path_for("logo_header.png"),
|
||||||
<span class="menu-icon dark" data-toggle></span>
|
class: "float-left",
|
||||||
<%= t("application.menu")%>
|
size: "48x48",
|
||||||
</span>
|
alt: t("layouts.header.logo")) %>
|
||||||
|
<%= setting["org_name"] %>
|
||||||
<div id="responsive_menu">
|
|
||||||
<div class="top-bar-title">
|
|
||||||
<%= 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'] %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="top-bar" id="responsive_menu">
|
||||||
|
<div class="top-bar-left">
|
||||||
|
<ul class="menu">
|
||||||
|
<li class="menu-text">
|
||||||
|
<%= 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"] %>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="top-bar-right">
|
<div class="top-bar-right">
|
||||||
<ul class="menu" data-responsive-menu="medium-dropdown">
|
<ul class="dropdown menu" data-dropdown-menu>
|
||||||
<%= render "shared/admin_login_items" %>
|
<%= render "shared/admin_login_items" %>
|
||||||
<%= render "layouts/notification_item" %>
|
<%= render "layouts/notification_item" %>
|
||||||
<%= render "devise/menu/login_items" %>
|
<%= render "devise/menu/login_items" %>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="show-for-small-only">
|
<div class="show-for-small-only">
|
||||||
<div class="subnavigation row">
|
<div class="subnavigation row">
|
||||||
@@ -44,8 +62,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="subnavigation expanded">
|
<div class="subnavigation expanded">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<% if show_admin_menu? %>
|
<% if show_admin_menu? %>
|
||||||
<li>
|
<li class="has-submenu">
|
||||||
<%= link_to t("layouts.header.administration_menu"), "#", rel: "nofollow", class: "hide-for-small-only" %>
|
<%= link_to t("layouts.header.administration_menu"), "#", rel: "nofollow", class: "hide-for-small-only" %>
|
||||||
<ul class="menu">
|
<ul class="submenu menu vertical" data-submenu>
|
||||||
<% if current_user.administrator? %>
|
<% if current_user.administrator? %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to t("layouts.header.administration"), admin_root_path %>
|
<%= link_to t("layouts.header.administration"), admin_root_path %>
|
||||||
|
|||||||
Reference in New Issue
Block a user