Simplify main admin header margin rules
Instead of having a header with a bottom margin followed by an element with a negative margin, it makes more sense to have no margin on either element.
This commit is contained in:
@@ -134,6 +134,10 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
> header {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> .menu-and-content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body class="admin">
|
||||
<%= render "layouts/admin_header" %>
|
||||
|
||||
<div class="menu-and-content no-margin-top">
|
||||
<div class="menu-and-content">
|
||||
<%= check_box_tag :show_menu, nil, false, role: "switch" %>
|
||||
|
||||
<nav id="side_menu" class="admin-sidebar">
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<%= render "layouts/header", with_subnavigation: false %>
|
||||
|
||||
<div class="menu-and-content no-margin-top">
|
||||
<div class="menu-and-content">
|
||||
<%= check_box_tag :show_menu, nil, false, role: "switch" %>
|
||||
|
||||
<nav id="side_menu" class="dashboard-sidebar">
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="menu-and-content no-margin-top">
|
||||
<div class="menu-and-content">
|
||||
<%= check_box_tag :show_menu, nil, false, role: "switch" %>
|
||||
|
||||
<nav class="admin-sidebar">
|
||||
|
||||
Reference in New Issue
Block a user