summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Gateley <christopher.gateley@gmail.com>2010-12-10 23:11:15 -0600
committerChristopher Gateley <christopher.gateley@gmail.com>2010-12-10 23:11:15 -0600
commitf0108e8ae888356e9bb7d7b01947a0022840a9e7 (patch)
tree6cd17871e435334044e9490538c6f739d08e5e49
parentf7dd87e45dac08a495563b38db67eabc689f00aa (diff)
downloadpycco-f0108e8ae888356e9bb7d7b01947a0022840a9e7.tar.gz
added back in unused 'jump-list' specific css and html
-rw-r--r--pycco_resources/__init__.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/pycco_resources/__init__.py b/pycco_resources/__init__.py
index f9535f5..0f320c5 100644
--- a/pycco_resources/__init__.py
+++ b/pycco_resources/__init__.py
@@ -32,6 +32,42 @@ h2, h3, h4, h5, h6 {
border-left: 1px solid #e5e5ee;
z-index: -1;
}
+#jump_to, #jump_page {
+ background: white;
+ -webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
+ -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px;
+ font: 10px Arial;
+ text-transform: uppercase;
+ cursor: pointer;
+ text-align: right;
+}
+#jump_to, #jump_wrapper {
+ position: fixed;
+ right: 0; top: 0;
+ padding: 5px 10px;
+}
+ #jump_wrapper {
+ padding: 0;
+ display: none;
+ }
+ #jump_to:hover #jump_wrapper {
+ display: block;
+ }
+ #jump_page {
+ padding: 5px 0 3px;
+ margin: 0 0 25px 25px;
+ }
+ #jump_page .source {
+ display: block;
+ padding: 5px 10px;
+ text-decoration: none;
+ border-top: 1px solid #eee;
+ }
+ #jump_page .source:hover {
+ background: #f5f5ff;
+ }
+ #jump_page .source:first-child {
+ }
div.docs {
float: left;
max-width: 500px;
@@ -162,6 +198,21 @@ html = """\
<body>
<div id="background"></div>
<div id='container'>
+ {{#sources?}}
+ <div id="jump_to">
+ Jump To &hellip;
+ <div id="jump_wrapper">
+ <div id="jump_page">
+ {{#sources}}
+ <a class="source" href="{{ url }}">{{ basename }}</a>
+ {{/sources}}
+ </div>
+ </div>
+ </div>
+ {{/sources?}}
+ <div class='section'>
+ <div class='docs'><h1>{{ title }}</h1></div>
+ </div>
{{#sections}}
<div id='section-{{ num }}' class='section'>
<div class='docs'>