Code

Ticket #1248: api_css.diff

File api_css.diff, 8.5 KB (added by django@…, 8 years ago)

epydoc css file that generates a django styled api doc

Line 
1Index: docs/api.css
2===================================================================
3--- docs/api.css        (revision 0)
4+++ docs/api.css        (revision 0)
5@@ -0,0 +1,191 @@
6+
7+table { border:0px solid white; }
8+
9+/* Tables */
10+table.help         { margin-left: auto; margin-right: auto; background: #92cc47;}
11+th.summary, th.details, th.index
12+                   { font-family:"Trebuchet MS",sans-serif; font-weight:normal;
13+text-align: left; font-size:150%; margin-top:1em; margin-bottom:.2em; line-height:1.2em; margin-top:-.5em !important; margin-bottom:.6em; color:#487858;  }
14+
15+
16+h1,h2,h3 { margin-top:.8em; font-family:"Trebuchet MS",sans-serif; font-weight:normal; }
17+h1 { font-size:218%; margin-top:.6em; margin-bottom:.6em; color:#092e20; line-height:1.1em; }
18+h2 { font-size:150%; margin-top:1em; margin-bottom:.2em; line-height:1.2em; color:#092e20; }
19+#homepage h2 { font-size:140%; }
20+h3 { font-size:125%; font-weight:bold; margin-bottom:.2em; color:#487858; }
21+h4 { font-size:100%; font-weight:bold; margin-bottom:-3px; margin-top:1.2em; text-transform:uppercase; letter-spacing:1px; }
22+h5 { font-size:1em; font-weight:bold; margin-top:1.5em; margin-bottom:3px; }
23+
24+/* Table of contents */
25+p.toc              { margin:0; margin-left: 10px; padding: 0; }
26+h1.tocheading  { text-align: center; margin-left: 0px;}
27+h2.tocheading  {margin-left: 5px;}
28+
29+/* Base tree */
30+pre.base-tree      { font-size: 80%; margin: 0; }
31+
32+/* Summary Sections */
33+p.varlist          { padding: 0 0 0 0; text-indent: 0em;
34+                     margin: 0;}
35+.varlist-header    { font-weight: bold; }
36+p.imports          { padding: 0 0 0 3em; text-indent: -2.5em; }
37+.imports-header    { font-weight: bold; }
38+
39+/* Details Sections */
40+table.func-details { background: #e0ffb8;
41+                     padding: 0 1em 0 2em; margin: 0.4em 0 0 0;
42+border:1px solid #94da3a;}
43+h3.func-detail     { margin: 0 0 1em 0; }
44+table.var-details  { border-width: 0px; border-style: none;
45+                     padding: 0 1em 0 1em; margin: 0.4em 0 0 0; }
46+h3.var-details     { margin: 0 0 1em 0; }
47+
48+/* Function signatures */
49+.sig               { font-weight: bold; } 
50+
51+/* Doctest blocks */
52+.py-prompt         { font-weight: bold;}
53+pre.doctestblock   { padding: .5em; margin: 1em;
54+                     border-width: 1px; border-style: solid; }
55+table pre.doctestblock
56+                   { padding: .5em; margin: 1em;
57+                     border-width: 1px; border-style: solid; }
58+
59+/* Variable values */
60+pre.variable       { padding: .5em; margin: 0;
61+                     border-width: 1px; border-style: solid; }
62+
63+/* Navigation bar */
64+.nomargin          { margin: 0; }
65+
66+/* This is used in <div> sections containing tables of private
67+values, to make them flow more seamlessly with the table that
68+comes before them. */
69+.continue          { border-top: 0; }
70+
71+
72+/* Source Code Listings */
73+div.py-src         { border:1px solid #94da3a; }
74+div.highlight-hdr  { border-top: 2px solid #94da3a; border-bottom: 1px solid #94da3a; }
75+div.highlight      { border-bottom: 1px solid #94da3a; }
76+.lineno            { border-right: 2px solid;
77+                     padding-right: .2em;
78+                     font-style: italic; }
79+
80+/* Lists */
81+ul { margin-top: 0; }
82+
83+.header            { font-size: 85%; }
84+.breadcrumbs       { font-size: 85%; font-weight: bold; }
85+.options           { font-size: 70%; }
86+.rtype, .ptype, .vtype
87+                   { font-size: 85%; width: 2em;}
88+dt                 { font-weight: bold; }
89+.small             { font-size: 85%; }
90+
91+h2 span.codelink { font-size: 58%; font-weight: normal; }
92+span.codelink { font-size: 85%; font-weight: normal; }
93+
94+/* Body color */
95+
96+body { margin:0; padding:0px; background:#FFFFFF; color:#000000; }
97+body, th, td { font:12px/1.4em Verdana,sans-serif; }
98+
99+/* Tables */
100+table.summary, table.details, table.index
101+                   { background: white; color: #000000; border:5px solid white;}
102+table.summary tr.summary, tr.details, tr.index, th.summery
103+                   { background: white; color: #FFFFFF;  border:0px solid white; }
104+th.group           { background: white; color: #234f32;  text-align: left; font-style: normal; font-weight:bold; padding-left: 8px;}
105+table.summery tr td,  table.details tr td {
106+padding-left: .4em;
107+}
108+/* Details Sections */
109+/* table.func-details { background: #e8f0f8; color: #000000; */
110+/*                      border-color: #c0d0d0; } */
111+/* h3.func-detail     { background: transparent; color: #000000; } */
112+table.var-details  { background: #E0FFB8; color: #000000;
113+                     border-color: #c0d0d0; border:1px solid #94da3a; }
114+h3.var-details     { background: transparent; color: #000000; }
115+
116+/* Function signatures */
117+.sig               { background: transparent; color: #000000; }
118+.sig-name          { background: transparent; color: #006080; } 
119+.sig-arg, .sig-kwarg, .sig-vararg
120+                   { background: transparent; color: #008060; } 
121+.sig-default       { background: transparent; color: #602000; } 
122+.summary-sig       { background: transparent; color: #000000; } 
123+.summary-sig-name  { background: transparent; color: #204080; }
124+.summary-sig-arg, .summary-sig-kwarg, .summary-sig-vararg
125+                   { background: transparent; color: #008060; } 
126+
127+/* Souce code listings & doctest blocks */
128+.py-src            { background: transparent; color: #000000; }
129+.py-prompt         { background: transparent; color: #005050; }
130+.py-string         { background: transparent; color: #006030; }
131+.py-comment        { background: transparent; color: #003060; }
132+.py-keyword        { background: transparent; color: #600000; }
133+.py-output         { background: transparent; color: #404040; }
134+.py-name           { background: transparent; color: #000000; }
135+.py-number         { background: transparent; color: #005000; }
136+.py-def-name       { background: transparent; color: #000060;
137+                     font-weight: bold; }
138+.py-base-class     { background: transparent; color: #000060; }
139+.py-param          { background: transparent; color: #000060; }
140+.py-docstring      { background: transparent; color: #006030; }
141+.py-decorator      { background: transparent; color: #804020; }
142+
143+pre.doctestblock   { background: #f4faff; color: #000000;
144+                     border-color: #708890; }
145+table pre.doctestblock
146+                   { background: #dce4ec; color: #000000;
147+                     border-color: #708890; }
148+div.py-src         { background: #E0FFB8; }
149+div.highlight-hdr  { background: #c3ff76; }
150+div.highlight      { background: #d0ff93; }
151+
152+
153+/* Variable values */
154+pre.variable       { background: #E0FFB8; color: #000000;
155+                     border:1px solid #94da3a;}
156+.variable-linewrap { background: transparent; color: #604000; }
157+.variable-ellipsis { background: transparent; color: #604000; }
158+.variable-quote    { background: transparent; color: #604000; }
159+.re                { background: transparent; color: #000000; }
160+.re-char           { background: transparent; color: #006030; }
161+.re-op             { background: transparent; color: #600000; }
162+.re-group          { background: transparent; color: #003060; }
163+.re-ref            { background: transparent; color: #404040; }
164+
165+/* Navigation bar */
166+table.navbar  { padding:0px 0px 0px 0px; margin:0; bottom:0; right:0; font-family:"Trebuchet MS",sans-serif; white-space:nowrap; }
167+th.navbar { padding:5px 5px 5px 0px; background:#092e20; }
168+th.navselect {  padding:5px 5px 5px 0px; color:white; background:#234f32; }
169+/*th.navselect a:hover {  padding:5px 5px 5px 0px; color:white; background:#234f32; } */
170+table.navbar a { color: #ffc757; }
171+th.navbar:hover, th.navbar a:hover { color: white; background:#092e20; }
172+
173+a {text-decoration: none;}
174+a img {border: none;}
175+a:link, a:visited { color:#AB5603; }
176+a:hover { background-color:#E0FFB8; color:#234f32; text-decoration:none;  }
177+
178+/* remove ugly borders */
179+.summary, tr.summary, th.summary { border:0px solid white; }
180+table.details, table.details th, table.details td { border:0px solid white; }
181+table.summary tr, table.summary th, table.summary td{ border:0px solid white;}
182+
183+table.summary td { padding-left: 2em; }
184+table.summary tr.summary td { padding-left: 0px; }
185+
186+table.index, table.index td, table.index th { border:0px none white;}
187+table.index tr td  { border-bottom:1px solid #CCCCCC;}
188+
189+/* table.summary tr td { padding-left: 10px } */
190+
191+hr { color: #94da3a; border:1px solid #94da3a; }
192+
193+/* Misc. */
194+.footer            { font-size: 85%; background: #092e20; color: #234f32; min-height: 100%;}
195+td.footer a { color: #ffc757; }
196+td.footer a:hover { color: white; background:#092e20; }