25
25
list-style: url(/ivle/media/images/tutorial/exception.png);
29
:Author: Edward Loper, James Curran
30
:Copyright: This stylesheet has been placed in the public domain.
32
Stylesheet for use with Docutils.
34
This stylesheet defines new css classes used by NLTK.
36
It uses a Python syntax highlighting scheme that matches
37
the colour scheme used by IDLE, which makes it easier for
38
beginners to check they are typing things in correctly.
41
/* Include the standard docutils stylesheet. */
42
@import url(default.css);
44
/* Custom inline roles */
45
span.placeholder { font-style: italic; font-family: monospace; }
46
span.example { font-style: italic; }
47
span.emphasis { font-style: italic; }
48
span.termdef { font-weight: bold; }
49
/*span.term { font-style: italic; }*/
50
span.category { font-variant: small-caps; }
51
span.feature { font-variant: small-caps; }
52
span.fval { font-style: italic; }
53
span.math { font-style: italic; }
54
span.mathit { font-style: italic; }
55
span.lex { font-variant: small-caps; }
57
/* Python souce code listings */
58
span.pysrc-prompt { color: #9b0000; }
59
span.pysrc-more { color: #9b00ff; }
60
span.pysrc-keyword { color: #e06000; }
61
span.pysrc-builtin { color: #940094; }
62
span.pysrc-string { color: #00aa00; }
63
span.pysrc-comment { color: #ff0000; }
64
span.pysrc-output { color: #0000ff; }
65
span.pysrc-except { color: #ff0000; }
66
span.pysrc-defname { color: #008080; }
70
pre.doctest { margin: 0; padding: 0; font-weight: bold; }
71
div.doctest { margin: 0 1em 1em 1em; padding: 0; }
72
table.doctest { margin: 0; padding: 0;
73
border-top: 1px solid gray;
74
border-bottom: 1px solid gray; }
75
pre.copy-notify { margin: 0; padding: 0.2em; font-weight: bold;
76
background-color: #ffffff; }
78
/* Python source listings */
79
div.pylisting { margin: 0 1em 1em 1em; padding: 0; }
80
table.pylisting { margin: 0; padding: 0;
81
border-top: 1px solid gray; }
82
td.caption { border-top: 1px solid black; margin: 0; padding: 0; }
83
.caption-label { font-weight: bold; }
84
td.caption p { margin: 0; padding: 0; font-style: normal;}
86
table tr td.codeblock {
87
padding: 0.2em ! important; margin: 0;
88
border-left: 1px solid gray;
89
border-right: 2px solid gray;
90
border-top: 0px solid gray;
91
border-bottom: 1px solid gray;
92
font-weight: bold; background-color: #eeffee;
96
padding: 0.2em; margin: 0;
97
border-left: 1px solid gray;
98
border-right: 2px solid gray;
99
border-top: 0px solid gray;
100
border-bottom: 1px solid gray;
101
font-weight: bold; background-color: #eeeeff;
104
td.codeblock table tr td.copybar {
105
background: #40a060; border: 1px solid gray;
106
font-family: monospace; padding: 0; margin: 0; }
107
td.doctest table tr td.copybar {
108
background: #4060a0; border: 1px solid gray;
109
font-family: monospace; padding: 0; margin: 0; }
111
td.pysrc { padding-left: 0.5em; }
113
img.callout { border-width: 0px; }
120
border-collapse: collapse; }
126
padding: 0 .5em 0 .5em; }
132
padding: 0 .5em 0 .5em; }
134
table.footnote td { padding: 0; }
135
table.footnote { border-width: 0; }
136
table.footnote td { border-width: 0; }
137
table.footnote th { border-width: 0; }
139
table.noborder { border-width: 0; }
141
table.example pre { margin-top: 4px; margin-bottom: 0; }
143
/* For figures & tables */
144
p.caption { margin-bottom: 0; }
145
div.figure { text-align: center; }
148
div.index { border: 1px solid black;
149
background-color: #eeeeee; }
150
div.index h1 { padding-left: 0.5em; margin-top: 0.5ex;
151
border-bottom: 1px solid black; }
152
ul.index { margin-left: 0.5em; padding-left: 0; }
153
li.index { list-style-type: none; }
154
p.index-heading { font-size: 120%; font-style: italic; margin: 0; }
155
li.index ul { margin-left: 2em; padding-left: 0; }
157
/* 'Note' callouts */
160
border-right: #87ceeb 1px solid;
162
border-top: #87ceeb 1px solid;
166
border-left: #87ceeb 1px solid;
168
border-bottom: #87ceeb 1px solid;
170
font-family: verdana, arial;
171
background-color: #b0c4de;
174
table.avm { border: 0px solid black; width: 0; }
175
table.avm tbody tr {border: 0px solid black; }
176
table.avm tbody tr td { padding: 2px; }
177
table.avm tbody tr td.avm-key { padding: 5px; font-variant: small-caps; }
178
table.avm tbody tr td.avm-eq { padding: 5px; }
179
table.avm tbody tr td.avm-val { padding: 5px; font-style: italic; }
180
p.avm-empty { font-style: normal; }
181
table.avm colgroup col { border: 0px solid black; }
182
table.avm tbody tr td.avm-topleft
183
{ border-left: 2px solid #000080; border-top: 2px solid #000080; }
184
table.avm tbody tr td.avm-botleft
185
{ border-left: 2px solid #000080; border-bottom: 2px solid #000080; }
186
table.avm tbody tr td.avm-topright
187
{ border-right: 2px solid #000080; border-top: 2px solid #000080; }
188
table.avm tbody tr td.avm-botright
189
{ border-right: 2px solid #000080; border-bottom: 2px solid #000080; }
190
table.avm tbody tr td.avm-left
191
{ border-left: 2px solid #000080; }
192
table.avm tbody tr td.avm-right
193
{ border-right: 2px solid #000080; }
194
table.avm tbody tr td.avm-topbotleft
195
{ border: 2px solid #000080; border-right: 0px solid black; }
196
table.avm tbody tr td.avm-topbotright
197
{ border: 2px solid #000080; border-left: 0px solid black; }
198
table.avm tbody tr td.avm-ident
199
{ font-size: 80%; padding: 0; padding-left: 2px; vertical-align: top; }
201
{ border: 1px solid #008000; padding: 1px; color: #008000;
202
background: #c0ffc0; font-style: normal; }
204
table.gloss { border: 0px solid black; width: 0; }
205
table.gloss tbody tr { border: 0px solid black; }
206
table.gloss tbody tr td { border: 0px solid black; }
207
table.gloss colgroup col { border: 0px solid black; }
208
table.gloss p { margin: 0; padding: 0; }
210
table.rst-example { border: 1px solid black; }
211
table.rst-example tbody tr td { background: #eeeeee; }
212
table.rst-example thead tr th { background: #c0ffff; }
213
td.rst-raw { width: 0; }
215
/* Used by nltk.org/doc/test: */
216
div.doctest-list { text-align: center; }
217
table.doctest-list { border: 1px solid black;
218
margin-left: auto; margin-right: auto;
220
table.doctest-list tbody tr td { background: #eeeeee;
221
border: 1px solid #cccccc; text-align: left; }
222
table.doctest-list thead tr th { background: #304050; color: #ffffff;
223
border: 1px solid #000000;}
224
span.doctest-passed { color: #008000; }
225
span.doctest-failed { color: #800000; }