Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#783 allow the content of the toc directive to go into a separate div…
… so we can more easily style the content separately from the TOC; also added some basic CSS so things kinda look nice (and fix a little NPE gremlin on the top link)
- Loading branch information
Showing
3 changed files
with
95 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* jquery.tocify.css 1.8.0 | ||
* Author: @gregfranko | ||
*/ | ||
/* The Table of Contents container element */ | ||
.tocify { | ||
width: 20%; | ||
padding-left: 1em; | ||
padding-right: 1em; | ||
overflow: auto; | ||
position: fixed; | ||
border: 1px solid #ccc; | ||
webkit-border-radius: 6px; | ||
moz-border-radius: 6px; | ||
border-radius: 6px; | ||
} | ||
|
||
/* The Table of Contents is composed of multiple nested unordered lists. These styles remove the default styling of an unordered list because it is ugly. */ | ||
/* | ||
.tocify ul, .tocify li { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
border: none; | ||
line-height: 30px; | ||
} | ||
*/ | ||
|
||
/* Top level header elements */ | ||
/* | ||
.tocify-header { | ||
text-indent: 10px; | ||
} | ||
*/ | ||
/* Top level subheader elements. These are the first nested items underneath a header element. */ | ||
/* | ||
.tocify-subheader { | ||
text-indent: 20px; | ||
display: none; | ||
} | ||
*/ | ||
/* Makes the font smaller for all subheader elements. */ | ||
.tocify-subheader li { | ||
font-size: 12px; | ||
} | ||
|
||
/* Further indents second level subheader elements. */ | ||
.tocify-subheader .tocify-subheader { | ||
text-indent: 30px; | ||
} | ||
|
||
/* Further indents third level subheader elements. You can continue this pattern if you have more nested elements. */ | ||
.tocify-subheader .tocify-subheader .tocify-subheader { | ||
text-indent: 40px; | ||
} | ||
|
||
/* Twitter Bootstrap Override Style */ | ||
.nav-list > li > a, .nav-list .nav-header { | ||
/* | ||
margin: 0px; | ||
} | ||
*/ | ||
|
||
/* Twitter Bootstrap Override Style */ | ||
/* | ||
.nav-list > li > a { | ||
padding: 5px; | ||
}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters