Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
19524562
Commit
19524562
authored
Apr 30, 2017
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Reveal 'Top of Page' only on scroll
[ci skip]
parent
e458ee1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
base.scss
client/scss/base/base.scss
+9
-0
view.pug
server/views/pages/view.pug
+1
-1
No files found.
client/scss/base/base.scss
View file @
19524562
...
...
@@ -72,6 +72,15 @@ a {
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
{
@include
mobile
{
display
:
none
!
important
;
...
...
server/views/pages/view.pug
View file @
19524562
...
...
@@ -65,7 +65,7 @@ block content
.sidebar-label
span Page Contents
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
+tocMenu(pageData.tree)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment