Skip to content

Commit 1ee20cd

Browse files
committed
Move TOC to left, stop following
It won’t scale; the TOC will be bigger than screen-height.
1 parent 7851abf commit 1ee20cd

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

css/libgit2.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,19 +1991,20 @@ img {
19911991

19921992
#primary {
19931993
width: 700px;
1994+
margin-left: 240px;
19941995
}
19951996

19961997
#toc {
19971998
width: 190px;
1998-
float: right;
1999+
float: left;
19992000
background-color: #fff;
20002001
-webkit-border-radius: 3px;
20012002
-moz-border-radius: 3px;
20022003
-ms-border-radius: 3px;
20032004
-o-border-radius: 3px;
20042005
border-radius: 3px;
20052006
padding: 10px;
2006-
margin-top: 40px;
2007+
margin-top: 45px;
20072008
}
20082009

20092010
.toc-h1 {

js/toc.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ $(function () {
44
return;
55
}
66

7-
// Keep the TOC in view
8-
$(window).scroll(function(){
9-
$("#toc")
10-
.stop()
11-
.animate({"marginTop": ($(window).scrollTop()) + "px",
12-
"marginLeft":($(window).scrollLeft()) + "px"},
13-
"fast");
14-
});
15-
167
// Generate the TOC contents
178
var current_level = 0;
189
$('#primary :header[id]').each(function(i, el) {

0 commit comments

Comments
 (0)