Merge remote-tracking branch 'upstream/2.0RC' into 2.0RC-doco

This commit is contained in:
Andrew Manning 2016-12-22 21:42:23 -05:00
commit c9a6e0155b
6 changed files with 67 additions and 48 deletions

View File

@ -1,35 +1,3 @@
<style>
.doco-list-group-item > a {
font-weight: bold;
}
.sub-menu {
margin: 3px 0px 10px 10px;
}
#doco-content h3 {
border-bottom: #ccc 3px solid;
padding-bottom: 0.3em;
}
#doco-content h4 {
text-decoration: underline;
}
#doco-content h5 {
text-decoration: underline;
}
#region_1 .widget ul ul {
list-style-type: none;
}
.toc-content li,
#doco-top-toc li {
padding: 3px 0px;
}
</style>
<div class="" id="accordion"> <div class="" id="accordion">
<div class="panel"> <div class="panel">
<div class=""> <div class="">

View File

@ -15,12 +15,14 @@ main {
} }
aside { aside {
position: relative;
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
padding: 71px 7px 0px 7px; padding: 71px 7px 0px 7px;
} }
section { section {
position: relative;
width: 100%; width: 100%;
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;

29
view/css/mod_help.css Normal file
View File

@ -0,0 +1,29 @@
.doco-list-group-item > a {
font-weight: bold;
}
.sub-menu {
margin: 3px 0px 10px 10px;
}
#doco-content h3 {
border-bottom: #ccc 3px solid;
padding-bottom: 0.3em;
}
#doco-content h4 {
text-decoration: underline;
}
#doco-content h5 {
text-decoration: underline;
}
#region_1 .widget ul ul {
list-style-type: none;
}
.toc-content li,
#doco-top-toc li {
padding: 3px 0px;
}

View File

@ -23,7 +23,6 @@ body {
margin: 0px; margin: 0px;
height: 100%; height: 100%;
overflow-x: hidden; overflow-x: hidden;
} }
aside { aside {
@ -46,6 +45,16 @@ main {
max-width: $main_widthpx; max-width: $main_widthpx;
} }
#overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: pointer;
z-index: 1029;
}
h1, .h1 { h1, .h1 {
font-size: 2em; font-size: 2em;
} }

View File

@ -14,12 +14,13 @@ $(document).ready(function() {
} }
}); });
} }
$('#css3-calc').remove(); // Remove the test element $('#css3-calc').remove(); // Remove the test element
if($(window).width() > 767) {
$('#left_aside_wrapper').stick_in_parent({ $('#left_aside_wrapper').stick_in_parent({
offset_top: $('nav').outerHeight(true) offset_top: $('nav').outerHeight(true)
}); });
}
$('#expand-aside').on('click', toggleAside); $('#expand-aside').on('click', toggleAside);
@ -92,7 +93,17 @@ function makeFullScreen(full) {
} }
function toggleAside() { function toggleAside() {
$(window).scroll();
$('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left'); $('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left');
$('main').toggleClass('region_1-on'); if($('main').hasClass('region_1-on')){
$('main').removeClass('region_1-on')
$('#overlay').remove();
$('#left_aside_wrapper').trigger("sticky_kit:detach");
}
else {
$('main').addClass('region_1-on')
$('<div id="overlay"></div>').appendTo('section');
$('#left_aside_wrapper').stick_in_parent({
offset_top: $('nav').outerHeight(true)
});
}
} }

View File

@ -3,17 +3,18 @@
<h2>{{$title}}: {{$heading}}</h2> <h2>{{$title}}: {{$heading}}</h2>
</div> </div>
<div class="section-content-wrapper" id="doco-content"> <div class="section-content-wrapper" id="doco-content">
<h3 id="doco-top-toc-heading"><span class="fakelink" onclick="docoTocToggle(); return false;"> <h3 id="doco-top-toc-heading">
<span class="fakelink" onclick="docoTocToggle(); return false;">
<i class="fakelink fa fa-caret-right" id="doco-toc-toggle"></i> <i class="fakelink fa fa-caret-right" id="doco-toc-toggle"></i>
{{$tocHeading}} {{$tocHeading}}
</span></h3> </span>
</h3>
<ul id="doco-top-toc" style="margin-bottom: 1.5em; display: none;"></ul> <ul id="doco-top-toc" style="margin-bottom: 1.5em; display: none;"></ul>
{{$content}} {{$content}}
</div> </div>
</div> </div>
<script> <script>
// Generate the table of contents in the side nav menu (see view/tpl/help.tpl) // Generate the table of contents in the side nav menu (see view/tpl/help.tpl)
$(document).ready(function () { $(document).ready(function () {
$('#doco-top-toc').toc({content: "#doco-content", headings: "h3,h4,h5,h6"}); $('#doco-top-toc').toc({content: "#doco-content", headings: "h3,h4,h5,h6"});
@ -29,5 +30,4 @@
return false; return false;
} }
</script> </script>