Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
a40d4993
Commit
a40d4993
authored
13 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
make subnav fix
parent
c2312220
9 merge requests
!1475
2.0 wip
,
!1403
warningText and warningBackground docs fix
,
!1351
2.0 wip - relative font sizes
,
!1315
[2.0-wip] Fix mustache glob when building
,
!1268
[wip-2.0] IE 7/8 Typehead JS fix
,
!1236
2.0 wip - Fix for issue #1202
,
!1219
Removed dotted outline on navbar dropdown menu
,
!1210
Missing icon class from examples
,
!1195
Fixed display of secondary container
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 @
a40d4993
...
...
@@ -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 @
a40d4993
...
...
@@ -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
Menu
Explore
Projects
Groups
Snippets