Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
4793a6f8
Commit
4793a6f8
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
parents
805a965f
a40d4993
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/assets/css/docs.css
+6
-0
docs/assets/css/docs.css
docs/assets/js/application.js
+21
-0
docs/assets/js/application.js
with
27 additions
and
0 deletions
+27
-0
docs/assets/css/docs.css
+
6
-
0
View file @
4793a6f8
...
...
@@ -165,6 +165,12 @@ section {
border-right
:
0
;
}
.subhead
.subnav-fixed
{
position
:
fixed
;
top
:
40px
;
z-index
:
1000
;
}
/* Quick links
-------------------------------------------------- */
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/application.js
+
21
-
0
View file @
4793a6f8
...
...
@@ -116,6 +116,27 @@ $(function(){
})
})
// fix sub nav playa
var
$win
=
$
(
window
)
,
$nav
=
$
(
'
.subhead .nav
'
)
,
navTop
=
$
(
'
.subhead .nav
'
).
offset
().
top
-
40
,
isFixed
=
0
processScroll
()
$win
.
on
(
'
scroll
'
,
processScroll
)
function
processScroll
()
{
var
i
,
scrollTop
=
$win
.
scrollTop
()
if
(
scrollTop
>=
navTop
&&
!
isFixed
)
{
isFixed
=
1
$nav
.
addClass
(
'
subnav-fixed
'
)
}
else
if
(
scrollTop
<=
navTop
&&
isFixed
)
{
isFixed
=
0
$nav
.
removeClass
(
'
subnav-fixed
'
)
}
}
})
// JS for javascript demos
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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