103
:Author: Edward Loper, James Curran
104
:Copyright: This stylesheet has been placed in the public domain.
106
Stylesheet for use with Docutils.
108
This stylesheet defines new css classes used by NLTK.
110
It uses a Python syntax highlighting scheme that matches
111
the colour scheme used by IDLE, which makes it easier for
112
beginners to check they are typing things in correctly.
115
/* Include the standard docutils stylesheet. */
116
@import url(default.css);
118
/* Custom inline roles */
119
span.placeholder { font-style: italic; font-family: monospace; }
120
span.example { font-style: italic; }
121
span.emphasis { font-style: italic; }
122
span.termdef { font-weight: bold; }
123
/*span.term { font-style: italic; }*/
124
span.category { font-variant: small-caps; }
125
span.feature { font-variant: small-caps; }
126
span.fval { font-style: italic; }
127
span.math { font-style: italic; }
128
span.mathit { font-style: italic; }
129
span.lex { font-variant: small-caps; }
131
/* Python souce code listings */
132
span.pysrc-prompt { color: #9b0000; }
133
span.pysrc-more { color: #9b00ff; }
134
span.pysrc-keyword { color: #e06000; }
135
span.pysrc-builtin { color: #940094; }
136
span.pysrc-string { color: #00aa00; }
137
span.pysrc-comment { color: #ff0000; }
138
span.pysrc-output { color: #0000ff; }
139
span.pysrc-except { color: #ff0000; }
140
span.pysrc-defname { color: #008080; }
144
pre.doctest { margin: 0; padding: 0; font-weight: bold; }
145
div.doctest { margin: 0 1em 1em 1em; padding: 0; }
146
table.doctest { margin: 0; padding: 0;
147
border-top: 1px solid gray;
148
border-bottom: 1px solid gray; }
149
pre.copy-notify { margin: 0; padding: 0.2em; font-weight: bold;
150
background-color: #ffffff; }
152
/* Python source listings */
153
div.pylisting { margin: 0 1em 1em 1em; padding: 0; }
154
table.pylisting { margin: 0; padding: 0;
155
border-top: 1px solid gray; }
156
td.caption { border-top: 1px solid black; margin: 0; padding: 0; }
157
.caption-label { font-weight: bold; }
158
td.caption p { margin: 0; padding: 0; font-style: normal;}
160
table tr td.codeblock {
161
padding: 0.2em ! important; margin: 0;
162
border-left: 1px solid gray;
163
border-right: 2px solid gray;
164
border-top: 0px solid gray;
165
border-bottom: 1px solid gray;
166
font-weight: bold; background-color: #eeffee;
169
table tr td.doctest {
170
padding: 0.2em; margin: 0;
171
border-left: 1px solid gray;
172
border-right: 2px solid gray;
173
border-top: 0px solid gray;
174
border-bottom: 1px solid gray;
175
font-weight: bold; background-color: #eeeeff;
178
td.codeblock table tr td.copybar {
179
background: #40a060; border: 1px solid gray;
180
font-family: monospace; padding: 0; margin: 0; }
181
td.doctest table tr td.copybar {
182
background: #4060a0; border: 1px solid gray;
183
font-family: monospace; padding: 0; margin: 0; }
185
td.pysrc { padding-left: 0.5em; }
187
img.callout { border-width: 0px; }
194
border-collapse: collapse; }
200
padding: 0 .5em 0 .5em; }
206
padding: 0 .5em 0 .5em; }
208
table.footnote td { padding: 0; }
209
table.footnote { border-width: 0; }
210
table.footnote td { border-width: 0; }
211
table.footnote th { border-width: 0; }
213
table.noborder { border-width: 0; }
215
table.example pre { margin-top: 4px; margin-bottom: 0; }
217
/* For figures & tables */
218
p.caption { margin-bottom: 0; }
219
div.figure { text-align: center; }
222
div.index { border: 1px solid black;
223
background-color: #eeeeee; }
224
div.index h1 { padding-left: 0.5em; margin-top: 0.5ex;
225
border-bottom: 1px solid black; }
226
ul.index { margin-left: 0.5em; padding-left: 0; }
227
li.index { list-style-type: none; }
228
p.index-heading { font-size: 120%; font-style: italic; margin: 0; }
229
li.index ul { margin-left: 2em; padding-left: 0; }
231
/* 'Note' callouts */
237
font-family: sans-serif;
238
background-color: #b0c4de;
239
-moz-border-radius: 10px;
242
div.note p.admonition-title
247
table.rst-example { border: 1px solid black; }
248
table.rst-example tbody tr td { background: #eeeeee; }
249
table.rst-example thead tr th { background: #c0ffff; }
250
td.rst-raw { width: 0; }
252
/* Used by nltk.org/doc/test: */
253
div.doctest-list { text-align: center; }
254
table.doctest-list { border: 1px solid black;
255
margin-left: auto; margin-right: auto;
257
table.doctest-list tbody tr td { background: #eeeeee;
258
border: 1px solid #cccccc; text-align: left; }
259
table.doctest-list thead tr th { background: #304050; color: #ffffff;
260
border: 1px solid #000000;}
261
span.doctest-passed { color: #008000; }
262
span.doctest-failed { color: #800000; }