feat: Reveal 'Top of Page' only on scroll
[ci skip]
This commit is contained in:
parent
e458ee1a0d
commit
195245624e
@ -72,6 +72,15 @@ a {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.is-hidden-until-scroll {
|
||||||
|
max-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: all .6s ease;
|
||||||
|
}
|
||||||
|
.is-sticky .is-hidden-until-scroll {
|
||||||
|
max-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.is-hidden-mobile {
|
.is-hidden-mobile {
|
||||||
@include mobile {
|
@include mobile {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
@ -65,7 +65,7 @@ block content
|
|||||||
.sidebar-label
|
.sidebar-label
|
||||||
span Page Contents
|
span Page Contents
|
||||||
ul.sidebar-menu
|
ul.sidebar-menu
|
||||||
li: a(href='#root', title='Top of Page')
|
li.is-hidden-until-scroll: a(href='#root', title='Top of Page')
|
||||||
i.icon-arrow-up2
|
i.icon-arrow-up2
|
||||||
+tocMenu(pageData.tree)
|
+tocMenu(pageData.tree)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user