Skip to content

Commit 4587fa8

Browse files
committed
adding the little up/down icon
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 1de3598 commit 4587fa8

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

_includes/footer.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
$(".pancakes-parent").on('click', function(){
4747
console.log($(this).next());
4848
$(this).next().find('.pancakes-child').toggle();
49+
if ($(this).hasClass('open-parent')){
50+
$(this).removeClass('open-parent');
51+
} else {
52+
$(this).addClass('open-parent');
53+
}
4954
})
5055
</script>
5156
{% assign slashes = page.url | split: "/" %}

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="md-sidebar__scrollwrap">
33
<div class="md-sidebar__inner">
44
<nav class="md-nav md-nav--primary" data-md-level="0">
5-
<label class="md-nav__title md-nav__title--site" for="__drawer"><span class="md-nav__button md-logo"><img height="48" src="../{{ site.logo }}" width="48"></span> {{ site.title }}</label>
5+
<label class="md-nav__title md-nav__title--site" for="__drawer"><span class="md-nav__button md-logo"><img height="48" src="{{ site.url }}/{{ site.baseurl }}/{{ site.logo }}" width="48"></span> {{ site.title }}</label>
66
<div class="md-nav__source">
77
<a class="md-source" data-md-source="github" href="{{ site.repo }}" title="Go to repository">
88
<div class="md-source__icon">

assets/css/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,10 @@ html .md-footer-meta.md-typeset a:focus, html .md-footer-meta.md-typeset a:hover
882882
}
883883
.md-nav__item--nested>.md-nav__link:after {
884884
content: "\E313"}
885+
886+
.open-parent:after {
887+
content: "\E316" !important}
888+
885889
html .md-nav__link[for=__toc], html .md-nav__link[for=__toc]+.md-nav__link:after, html .md-nav__link[for=__toc]~.md-nav {
886890
display: none;
887891
}

0 commit comments

Comments
 (0)