Last active
August 29, 2015 14:07
-
-
Save bildepunkt/dc50b5f43b8786ad070b to your computer and use it in GitHub Desktop.
replace the standard jsdoc-default.css file with this for somewhat nicer layout and styling.
This file contains hidden or 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
body { | |
margin: 0; | |
padding: 0; | |
font-family: sans-serif; | |
} | |
nav { | |
width: 180px; | |
position: fixed; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
overflow: auto; | |
padding-left: 24px; | |
border-right: 1px solid #aaa; | |
background-color: #ddd; | |
} | |
ul { | |
list-style: none; | |
padding-left: 12px; | |
} | |
a { | |
color: #215282; | |
text-decoration: none; | |
} | |
a:hover { | |
text-decoration: underline; | |
} | |
footer { | |
margin-left: 240px; | |
text-align: center; | |
font-size: 10px; | |
padding: 24px 0; | |
} | |
#main { | |
margin-left: 240px; | |
overflow: auto; | |
} | |
.yes-def { | |
text-indent: -1000px; | |
} | |
.type-signature { | |
color: #aaa; | |
} | |
.name, .signature { | |
font-family: Consolas, "Lucida Console", Monaco, monospace; | |
} | |
.details { margin-top: 14px; border-left: 2px solid #DDD; } | |
.details dt { width:200px; float:left; padding-left: 10px; padding-top: 6px; } | |
.details dd { margin-left: 50px; } | |
.details ul { margin: 0; } | |
.details ul { list-style-type: none; } | |
.details li { margin-left: 30px; padding-top: 6px; } | |
.details pre.prettyprint { margin: 0 } | |
.details .object-value { padding-top: 0; } | |
.description { | |
margin-bottom: 1em; | |
margin-left: -16px; | |
margin-top: 1em; | |
} | |
.code-caption | |
{ | |
font-style: italic; | |
font-family: Palatino, 'Palatino Linotype', serif; | |
font-size: 107%; | |
margin: 0; | |
} | |
.prettyprint | |
{ | |
border: 1px solid #ddd; | |
width: 80%; | |
overflow: auto; | |
} | |
.prettyprint.source { | |
width: inherit; | |
} | |
.prettyprint code | |
{ | |
font-family: Consolas, 'Lucida Console', Monaco, monospace; | |
font-size: 100%; | |
line-height: 18px; | |
display: block; | |
padding: 4px 12px; | |
margin: 0; | |
background-color: #fff; | |
color: #000; | |
} | |
.prettyprint code span.line | |
{ | |
display: inline-block; | |
} | |
.prettyprint.linenums | |
{ | |
padding-left: 70px; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
.prettyprint.linenums ol | |
{ | |
padding-left: 0; | |
} | |
.prettyprint.linenums li | |
{ | |
border-left: 3px #ddd solid; | |
} | |
.prettyprint.linenums li.selected, | |
.prettyprint.linenums li.selected * | |
{ | |
background-color: lightyellow; | |
} | |
.prettyprint.linenums li * | |
{ | |
-webkit-user-select: text; | |
-moz-user-select: text; | |
-ms-user-select: text; | |
user-select: text; | |
} | |
.params, .props | |
{ | |
border-spacing: 0; | |
border: 0; | |
border-collapse: collapse; | |
} | |
.params .name, .props .name, .name code { | |
color: #A35A00; | |
font-family: Consolas, 'Lucida Console', Monaco, monospace; | |
font-size: 100%; | |
} | |
.params td, .params th, .props td, .props th | |
{ | |
border: 1px solid #ddd; | |
margin: 0px; | |
text-align: left; | |
vertical-align: top; | |
padding: 4px 6px; | |
display: table-cell; | |
} | |
.params thead tr, .props thead tr | |
{ | |
background-color: #ddd; | |
font-weight: bold; | |
} | |
.params .params thead tr, .props .props thead tr | |
{ | |
background-color: #fff; | |
font-weight: bold; | |
} | |
.params th, .props th { border-right: 1px solid #aaa; } | |
.params thead .last, .props thead .last { border-right: 1px solid #ddd; } | |
.params td.description > p:first-child | |
{ | |
margin-top: 0; | |
padding-top: 0; | |
} | |
.params td.description > p:last-child | |
{ | |
margin-bottom: 0; | |
padding-bottom: 0; | |
} | |
.disabled { | |
color: #454545; | |
} | |
.signature-attributes { | |
color: gray; | |
font-size: small; | |
} | |
/* optional; hides superfluous/ugly details */ | |
.details ~ *, | |
article > dl > dd > h5, | |
article > dl > dd > ul { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment