New styles for Sphinx documentation
Douglas Creager
12 years ago
0 | @import url("basic.css"); | |
1 | ||
2 | /* -- page layout ----------------------------------------------------------- */ | |
3 | ||
4 | body { | |
5 | font-family: 'Palatino Linotype', Palatino, 'URW Palladio L', 'Book Antiqua', FreeSerif, serif; | |
6 | /*font-size: 95%;*/ | |
7 | font-size: 95%; | |
8 | color: #252519; | |
9 | margin: 0; | |
10 | padding: 0; | |
11 | } | |
12 | ||
13 | div.document { | |
14 | } | |
15 | ||
16 | div.documentwrapper { | |
17 | float: left; | |
18 | width: 100%; | |
19 | } | |
20 | ||
21 | div.bodywrapper { | |
22 | margin: 0 0 0 19em; | |
23 | background-color: #ffffff; | |
24 | } | |
25 | ||
26 | div.body { | |
27 | color: #252519; | |
28 | padding: 30px 0px 30px 60px; | |
29 | width: 40em; | |
30 | } | |
31 | ||
32 | div.footer { | |
33 | width: 100%; | |
34 | padding: 9px 0 9px 0; | |
35 | text-align: center; | |
36 | font-size: 75%; | |
37 | } | |
38 | ||
39 | div.footer a { | |
40 | color: #261a3b; | |
41 | text-decoration: underline; | |
42 | } | |
43 | ||
44 | div.related { | |
45 | background-color: #eee; | |
46 | border: 1px solid #ccc; | |
47 | line-height: 30px; | |
48 | } | |
49 | ||
50 | div.related a { | |
51 | color: #261a3b; | |
52 | } | |
53 | ||
54 | div.sphinxsidebar { | |
55 | padding: 30px 0px 0 20px; | |
56 | width: 19em; | |
57 | color: #555; | |
58 | } | |
59 | ||
60 | div.sphinxsidebar a { | |
61 | color: #555; | |
62 | } | |
63 | ||
64 | div.sphinxsidebar h3 { | |
65 | font-size: 1.4em; | |
66 | margin: 0; | |
67 | padding: 0; | |
68 | } | |
69 | ||
70 | div.sphinxsidebar h4 { | |
71 | font-size: 1.3em; | |
72 | margin: 5px 0 0 0; | |
73 | padding: 0; | |
74 | } | |
75 | ||
76 | div.sphinxsidebar p { | |
77 | } | |
78 | ||
79 | div.sphinxsidebar p.topless { | |
80 | margin: 5px 10px 10px 10px; | |
81 | } | |
82 | ||
83 | div.sphinxsidebar ul { | |
84 | margin: 10px; | |
85 | padding: 0; | |
86 | color: #ffffff; | |
87 | } | |
88 | ||
89 | div.sphinxsidebar li { | |
90 | padding-top: 5px; | |
91 | line-height: 115%; | |
92 | } | |
93 | ||
94 | div.sphinxsidebar input { | |
95 | border: 1px solid #ccc; | |
96 | font-family: sans-serif; | |
97 | font-size: 1em; | |
98 | } | |
99 | ||
100 | ||
101 | ||
102 | /* -- hyperlink styles ------------------------------------------------------ */ | |
103 | ||
104 | a { | |
105 | color: #306060; | |
106 | text-decoration: none; | |
107 | } | |
108 | ||
109 | a:visited { | |
110 | color: #306060; | |
111 | text-decoration: none; | |
112 | } | |
113 | ||
114 | a:hover { | |
115 | text-decoration: underline; | |
116 | } | |
117 | ||
118 | ||
119 | ||
120 | /* -- body styles ----------------------------------------------------------- */ | |
121 | ||
122 | div.body h1, | |
123 | div.body h2, | |
124 | div.body h3, | |
125 | div.body h4, | |
126 | div.body h5, | |
127 | div.body h6 { | |
128 | border-top: 1px solid #ccc; | |
129 | margin: 40px -20px 10px -20px; | |
130 | padding: 3px 0 3px 0; | |
131 | } | |
132 | ||
133 | div.body h1 { margin-top: 0; font-size: 200%; border: 0px; } | |
134 | div.body h2 { font-size: 160%; } | |
135 | div.body h3 { font-size: 140%; } | |
136 | div.body h4 { font-size: 120%; } | |
137 | div.body h5 { font-size: 110%; } | |
138 | div.body h6 { font-size: 100%; } | |
139 | ||
140 | a.headerlink { | |
141 | color: #c60f0f; | |
142 | font-size: 0.8em; | |
143 | padding: 0 4px 0 4px; | |
144 | text-decoration: none; | |
145 | } | |
146 | ||
147 | a.headerlink:hover { | |
148 | background-color: #c60f0f; | |
149 | color: white; | |
150 | } | |
151 | ||
152 | div.body p, div.body dd, div.body li { | |
153 | line-height: 130%; | |
154 | } | |
155 | ||
156 | p.admonition-title { | |
157 | margin-right: 0.3em; | |
158 | } | |
159 | ||
160 | div.admonition p.admonition-title + p { | |
161 | display: inline; | |
162 | } | |
163 | ||
164 | div.admonition p { | |
165 | margin-bottom: 5px; | |
166 | } | |
167 | ||
168 | div.admonition pre { | |
169 | margin-bottom: 5px; | |
170 | } | |
171 | ||
172 | div.admonition ul, div.admonition ol { | |
173 | margin-bottom: 5px; | |
174 | } | |
175 | ||
176 | div.note { | |
177 | background-color: #eee; | |
178 | border: 1px solid #ccc; | |
179 | } | |
180 | ||
181 | div.seealso { | |
182 | background-color: #ffc; | |
183 | border: 1px solid #ff6; | |
184 | } | |
185 | ||
186 | div.topic { | |
187 | background-color: #eee; | |
188 | } | |
189 | ||
190 | div.warning { | |
191 | background-color: #ffe4e4; | |
192 | border: 1px solid #f66; | |
193 | } | |
194 | ||
195 | p.admonition-title { | |
196 | display: inline; | |
197 | } | |
198 | ||
199 | p.admonition-title:after { | |
200 | content: ":"; | |
201 | } | |
202 | ||
203 | pre { | |
204 | font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace; | |
205 | font-size: 80%; | |
206 | padding: 5px; | |
207 | background-color: #f5f5ff; | |
208 | color: #333333; | |
209 | line-height: 130%; | |
210 | border: 1px solid #e5e5ee; | |
211 | border-left: none; | |
212 | border-right: none; | |
213 | } | |
214 | ||
215 | tt { | |
216 | font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace; | |
217 | background-color: #f8f8ff; | |
218 | border: 1px solid #dedede; | |
219 | padding: 0 0.2em; | |
220 | font-size: 85%; | |
221 | } | |
222 | ||
223 | a tt { | |
224 | background-color: transparent; | |
225 | border: 0px; | |
226 | } | |
227 | ||
228 | dt { | |
229 | font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace; | |
230 | font-size: 90%; | |
231 | line-height: 130%; | |
232 | } | |
233 | ||
234 | table.indextable dt { | |
235 | font-family: 'Palatino Linotype', Palatino, 'URW Palladio L', 'Book Antiqua', FreeSerif, serif; | |
236 | font-size: 100%; | |
237 | } | |
238 | ||
239 | tt.descname { | |
240 | background-color: transparent; | |
241 | border: 0px; | |
242 | font-size: 100%; | |
243 | padding: 0px; | |
244 | } | |
245 | ||
246 | dt big { | |
247 | font-family: 'Palatino Linotype', Palatino, 'URW Palladio L', 'Book Antiqua', FreeSerif, serif; | |
248 | font-size: 140%; | |
249 | padding: 0 2px; | |
250 | } | |
251 | ||
252 | th { | |
253 | background-color: #ede; | |
254 | } | |
255 | ||
256 | .warning tt { | |
257 | background: #efc2c2; | |
258 | } | |
259 | ||
260 | .note tt { | |
261 | background: #d6d6d6; | |
262 | } | |
263 | ||
264 | .viewcode-back { | |
265 | font-family: sans-serif; | |
266 | } | |
267 | ||
268 | div.viewcode-block:target { | |
269 | background-color: #f4debf; | |
270 | border-top: 1px solid #ac9; | |
271 | border-bottom: 1px solid #ac9; | |
272 | } |
0 | .highlight .hll { background-color: #ffffcc } | |
1 | .highlight .c { color: #408080; font-style: italic } /* Comment */ | |
2 | .highlight .err { border: 1px solid #FF0000 } /* Error */ | |
3 | .highlight .k { color: #954121 } /* Keyword */ | |
4 | .highlight .o { color: #666666 } /* Operator */ | |
5 | .highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
6 | .highlight .cp { color: #BC7A00 } /* Comment.Preproc */ | |
7 | .highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
8 | .highlight .cs { color: #408080; font-style: italic } /* Comment.Special */ | |
9 | .highlight .gd { color: #A00000 } /* Generic.Deleted */ | |
10 | .highlight .ge { font-style: italic } /* Generic.Emph */ | |
11 | .highlight .gr { color: #FF0000 } /* Generic.Error */ | |
12 | .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
13 | .highlight .gi { color: #00A000 } /* Generic.Inserted */ | |
14 | .highlight .go { color: #808080 } /* Generic.Output */ | |
15 | .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
16 | .highlight .gs { font-weight: bold } /* Generic.Strong */ | |
17 | .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
18 | .highlight .gt { color: #0040D0 } /* Generic.Traceback */ | |
19 | .highlight .kc { color: #954121 } /* Keyword.Constant */ | |
20 | .highlight .kd { color: #954121; font-weight: bold } /* Keyword.Declaration */ | |
21 | .highlight .kn { color: #954121; font-weight: bold } /* Keyword.Namespace */ | |
22 | .highlight .kp { color: #954121 } /* Keyword.Pseudo */ | |
23 | .highlight .kr { color: #954121; font-weight: bold } /* Keyword.Reserved */ | |
24 | .highlight .kt { color: #B00040 } /* Keyword.Type */ | |
25 | .highlight .m { color: #666666 } /* Literal.Number */ | |
26 | .highlight .s { color: #219161 } /* Literal.String */ | |
27 | .highlight .na { color: #7D9029 } /* Name.Attribute */ | |
28 | .highlight .nb { color: #954121 } /* Name.Builtin */ | |
29 | .highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
30 | .highlight .no { color: #880000 } /* Name.Constant */ | |
31 | .highlight .nd { color: #AA22FF } /* Name.Decorator */ | |
32 | .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
33 | .highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
34 | .highlight .nf { color: #0000FF } /* Name.Function */ | |
35 | .highlight .nl { color: #A0A000 } /* Name.Label */ | |
36 | .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
37 | .highlight .nt { color: #954121; font-weight: bold } /* Name.Tag */ | |
38 | .highlight .nv { color: #19469D } /* Name.Variable */ | |
39 | .highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
40 | .highlight .w { color: #bbbbbb } /* Text.Whitespace */ | |
41 | .highlight .mf { color: #666666 } /* Literal.Number.Float */ | |
42 | .highlight .mh { color: #666666 } /* Literal.Number.Hex */ | |
43 | .highlight .mi { color: #666666 } /* Literal.Number.Integer */ | |
44 | .highlight .mo { color: #666666 } /* Literal.Number.Oct */ | |
45 | .highlight .sb { color: #219161 } /* Literal.String.Backtick */ | |
46 | .highlight .sc { color: #219161 } /* Literal.String.Char */ | |
47 | .highlight .sd { color: #219161; font-style: italic } /* Literal.String.Doc */ | |
48 | .highlight .s2 { color: #219161 } /* Literal.String.Double */ | |
49 | .highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
50 | .highlight .sh { color: #219161 } /* Literal.String.Heredoc */ | |
51 | .highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
52 | .highlight .sx { color: #954121 } /* Literal.String.Other */ | |
53 | .highlight .sr { color: #BB6688 } /* Literal.String.Regex */ | |
54 | .highlight .s1 { color: #219161 } /* Literal.String.Single */ | |
55 | .highlight .ss { color: #19469D } /* Literal.String.Symbol */ | |
56 | .highlight .bp { color: #954121 } /* Name.Builtin.Pseudo */ | |
57 | .highlight .vc { color: #19469D } /* Name.Variable.Class */ | |
58 | .highlight .vg { color: #19469D } /* Name.Variable.Global */ | |
59 | .highlight .vi { color: #19469D } /* Name.Variable.Instance */ | |
60 | .highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ |
68 | 68 | exclude_patterns = ['_build'] |
69 | 69 | |
70 | 70 | # The reST default role (used for this markup: `text`) to use for all documents. |
71 | #default_role = None | |
71 | default_role = 'c:func' | |
72 | primary_domain = 'c' | |
72 | 73 | |
73 | 74 | # If true, '()' will be appended to :func: etc. cross-reference text. |
74 | 75 | #add_function_parentheses = True |