Project

General

Profile

Patch #30448 » 0001-Remove-wrapper2-and-wrapper3-wrapping-containers-304.patch

Marius BĂLTEANU, 2021-07-04 15:31

View differences:

app/views/layouts/base.html.erb
</div>
<div id="wrapper2">
<div id="wrapper3">
<div id="top-menu">
<div id="account">
<%= render_menu :account_menu -%>
......
<div id="footer">
Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> &copy; 2006-2021 Jean-Philippe Lang
</div>
</div>
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
<div id="ajax-modal" style="display:none;"></div>
</div>
</div>
<%= call_hook :view_layouts_base_body_bottom %>
</body>
public/javascripts/responsive.js
function openFlyout() {
$('html').addClass('flyout-is-active');
$('#wrapper2').on('click', function(e){
$('#wrapper').on('click', function(e){
e.preventDefault();
e.stopPropagation();
closeFlyout();
......
function closeFlyout() {
$('html').removeClass('flyout-is-active');
$('#wrapper2').off('click');
$('#wrapper').off('click');
}
public/stylesheets/application.css
.wiki h6 {font-size: 1em; color: #8e8e8e;}
/***** Layout *****/
div#wrapper, div#wrapper2, div#wrapper3 { min-height: inherit; }
#wrapper {background: white;overflow: hidden;}
#wrapper3 { display: flex; flex-direction: column; }
#wrapper {
min-height: inherit;
background: white;
overflow: hidden;
display: flex;
flex-direction: column;
}
#top-menu {background: #3E5B76; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 10px 0px 12px;}
#top-menu ul {margin: 0; padding: 0;}
......
#sidebar li input[type=checkbox] {height: 20px;}
#content { flex-grow: 1; background-color: #fff; margin: 0px; padding: 10px 16px 10px 16px; overflow-x: auto;}
html>body #content { min-height: 600px; }
* html body #content { height: 600px; } /* IE */
#main.nosidebar #sidebar{ display: none; }
public/stylesheets/responsive.css
position: relative;
overflow-x: hidden; /* hide horizontal overflow */
max-width: 100%;
}
#wrapper,
#wrapper2 {
margin: 0;
}
(2-2/3)