Commit 61ce134f authored by Jacob Schatz's avatar Jacob Schatz

Small outside aside shrink sidebar button for mobile only.

parent cabb6171
......@@ -231,6 +231,13 @@ $ ->
$this = $(this)
$thisIcon = $this.find 'i'
if $thisIcon.hasClass('fa-angle-double-right')
# It's open -> close it
if bootstrapBreakpoint is 'xs'
# it's the gutter open button outside the aside
if not $this.closest('aside').length
$('aside').addClass('hidden-xs')
console.log(bootstrapBreakpoint);
$thisIcon
.removeClass('fa-angle-double-right')
.addClass('fa-angle-double-left')
......@@ -242,6 +249,12 @@ $ ->
.removeClass('right-sidebar-expanded')
.addClass('right-sidebar-collapsed')
else
# It's closed -> open it
if bootstrapBreakpoint is 'xs'
# it's the gutter open button outside the aside
if not $this.closest('aside').length
$('aside').removeClass('hidden-xs')
$thisIcon
.removeClass('fa-angle-double-left')
.addClass('fa-angle-double-right')
......
......@@ -19,7 +19,7 @@
=icon('circle-o')
%a.btn.btn-default.pull-right.hidden-sm.hidden-md.hidden-lg.gutter-toggle{ href: "#" }
«
=icon('angle-double-left')
.issue-meta
%strong.identifier
......
Markdown is supported
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