Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
University of Michigan Fencing
club-theme
Commits
22423b24
Commit
22423b24
authored
May 06, 2016
by
key-amb
Browse files
Fix sidebar start position considering navbar margin-bottom
parent
6908538d
Changes
1
Hide whitespace changes
Inline
Side-by-side
static/js/bootie-docs.js
View file @
22423b24
...
...
@@ -19,7 +19,7 @@ window.onload = function() {
if
(
w
.
scrollTop
()
<=
scrollStart
)
{
sideNode
.
css
({
"
position
"
:
"
fixed
"
});
}
else
if
(
scrollStart
<
w
.
scrollTop
()
&&
w
.
scrollTop
()
<
scrollStop
)
{
sideNode
.
css
({
"
position
"
:
"
fixed
"
,
"
top
"
:
headHeight
+
"
px
"
});
sideNode
.
css
({
"
position
"
:
"
fixed
"
,
"
top
"
:
headHeight
+
20
+
"
px
"
});
}
else
if
(
w
.
scrollTop
()
>=
scrollStop
)
{
var
topNext
=
headHeight
-
(
headHeight
+
sideHeight
)
...
...
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