Skip to content
Snippets Groups Projects
Commit ef000615 authored by Eric Davis's avatar Eric Davis
Browse files

[#798] Fixed the sidebar design by moving #sidebar out of #main-menu

The #main-menu was used as the entire left column but was having styles
applied to it for the menu which were leaking onto the #sidebar. By
wrapping the column in a unique div the menu styles were isolated from
the sidebar styles.
parent 15428fc0
No related merge requests found
...@@ -113,9 +113,12 @@ ...@@ -113,9 +113,12 @@
<% end %> <% end %>
<div id="main" class="<%= side_displayed ? '' : "nosidebar" %>"> <div id="main" class="<%= side_displayed ? '' : "nosidebar" %>">
<% if (side_displayed) %> <% if (side_displayed) %>
<div id="main-menu"> <div id="side-container">
<%= main_menu %> <div id="main-menu">
<%= yield :main_menu %> <%= main_menu %>
<%= yield :main_menu %>
</div>
<% if display_sidebar %> <% if display_sidebar %>
<!-- Sidebar --> <!-- Sidebar -->
<div id="sidebar"> <div id="sidebar">
......
...@@ -26,7 +26,7 @@ h5, .wiki h4 {font-size: 11px;padding: 2px 10px 1px 0px;margin-bottom: 5px; bord ...@@ -26,7 +26,7 @@ h5, .wiki h4 {font-size: 11px;padding: 2px 10px 1px 0px;margin-bottom: 5px; bord
#quick-search {float:right;} #quick-search {float:right;}
#main-menu {position: absolute; bottom: auto; left:6px; margin-right: -500px;} #side-container {position: absolute; bottom: auto; left:6px; margin-right: -500px;}
#main-menu ul {margin: 0; padding: 0;} #main-menu ul {margin: 0; padding: 0;}
#main-menu li { #main-menu li {
float: none; float: none;
...@@ -1369,12 +1369,12 @@ div#optional_login_fields { ...@@ -1369,12 +1369,12 @@ div#optional_login_fields {
margin-left:2px; margin-left:2px;
} }
/*------------------------------------------------------------------------------- /*-------------------------------------------------------------------------------
* =02 - Main Menu * =02 - Side container
* *
* This section includes the layout and styles for the left navigation column. * This section includes the layout and styles for the left navigation column and menu.
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
#main-menu { #side-container {
width:185px; width:185px;
height:100%; height:100%;
position:absolute; position:absolute;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment