Skip to content
Snippets Groups Projects

Implement basic site menu

Merged Martyn Welch requested to merge wip/martyn/T7416-basic-sidebar into master
1 unresolved thread
Files
3
@@ -2,3 +2,14 @@
<script>
anchors.add('h1,h2,h3,h4,h5,h6').remove('.page-heading > h1');
</script>
<script>
+1
function toggleSidebar(item) {
$('#site-sidebar').toggleClass('sidebar-hidden');
if ($('#site-sidebar').width() != 300) {
    • Alternatively: set sidebar-hidden on the body, drop this block and then add this CSS:

      .sidebar-hidden a.navbar-brand.navbar-sitebar {
         transform: rotate(180deg);
      }
      Edited by Emanuele Aina
      • I've not got this bit working - it's not being inherited as the .sitebar-hidden class doesn't get applied to the link. If I give the link the site-sitebar ID it still doesn't seem to get inherited, though I can see the .sitebar-hidden class being applied. The link also gains visibility: hidden, which we don't want...

        Edited by Martyn Welch
      • Please register or sign in to reply
Please register or sign in to reply
item.innerHTML = "&#x25B2"
} else {
item.innerHTML = "&#x25BC"
}
}
</script>
Loading