1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
/*
:Author: Edward Loper, James Curran
:Copyright: This stylesheet has been placed in the public domain.
Stylesheet for use with Docutils.
This stylesheet defines new css classes used by NLTK.
It uses a Python syntax highlighting scheme that matches
the colour scheme used by IDLE, which makes it easier for
beginners to check they are typing things in correctly.
*/
/* Include the standard docutils stylesheet. */
/* XXX: We're not ready for this CSS, apparently. See bug #516911. */
/* @import url(default.css); */
/* Custom inline roles */
span.placeholder { font-style: italic; font-family: monospace; }
span.example { font-style: italic; }
span.emphasis { font-style: italic; }
span.termdef { font-weight: bold; }
/*span.term { font-style: italic; }*/
span.category { font-variant: small-caps; }
span.feature { font-variant: small-caps; }
span.fval { font-style: italic; }
span.math { font-style: italic; }
span.mathit { font-style: italic; }
span.lex { font-variant: small-caps; }
/* Python souce code listings */
span.pysrc-prompt { color: #9b0000; }
span.pysrc-more { color: #9b00ff; }
span.pysrc-keyword { color: #e06000; }
span.pysrc-builtin { color: #940094; }
span.pysrc-string { color: #00aa00; }
span.pysrc-comment { color: #ff0000; }
span.pysrc-output { color: #0000ff; }
span.pysrc-except { color: #ff0000; }
span.pysrc-defname { color: #008080; }
/* Doctest blocks */
pre.doctest { margin: 0; padding: 0; font-weight: bold; }
div.doctest { margin: 0 1em 1em 1em; padding: 0; }
table.doctest { margin: 0; padding: 0;
border-top: 1px solid gray;
border-bottom: 1px solid gray; }
pre.copy-notify { margin: 0; padding: 0.2em; font-weight: bold;
background-color: #ffffff; }
/* Python source listings */
div.pylisting { margin: 0 1em 1em 1em; padding: 0; }
table.pylisting { margin: 0; padding: 0;
border-top: 1px solid gray; }
td.caption { border-top: 1px solid black; margin: 0; padding: 0; }
.caption-label { font-weight: bold; }
td.caption p { margin: 0; padding: 0; font-style: normal;}
table tr td.codeblock {
padding: 0.2em ! important; margin: 0;
border-left: 1px solid gray;
border-right: 2px solid gray;
border-top: 0px solid gray;
border-bottom: 1px solid gray;
font-weight: bold; background-color: #eeffee;
}
table tr td.doctest {
padding: 0.2em; margin: 0;
border-left: 1px solid gray;
border-right: 2px solid gray;
border-top: 0px solid gray;
border-bottom: 1px solid gray;
font-weight: bold; background-color: #eeeeff;
}
td.codeblock table tr td.copybar {
background: #40a060; border: 1px solid gray;
font-family: monospace; padding: 0; margin: 0; }
td.doctest table tr td.copybar {
background: #4060a0; border: 1px solid gray;
font-family: monospace; padding: 0; margin: 0; }
td.pysrc { padding-left: 0.5em; }
img.callout { border-width: 0px; }
table.docutils {
border-style: solid;
border-width: 1px;
margin-top: 6px;
border-color: grey;
border-collapse: collapse; }
table.docutils th {
border-style: none;
border-width: 1px;
border-color: grey;
padding: 0 .5em 0 .5em; }
table.docutils td {
border-style: none;
border-width: 1px;
border-color: grey;
padding: 0 .5em 0 .5em; }
table.footnote td { padding: 0; }
table.footnote { border-width: 0; }
table.footnote td { border-width: 0; }
table.footnote th { border-width: 0; }
table.noborder { border-width: 0; }
table.example pre { margin-top: 4px; margin-bottom: 0; }
/* For figures & tables */
p.caption { margin-bottom: 0; }
div.figure { text-align: center; }
/* The index */
div.index { border: 1px solid black;
background-color: #eeeeee; }
div.index h1 { padding-left: 0.5em; margin-top: 0.5ex;
border-bottom: 1px solid black; }
ul.index { margin-left: 0.5em; padding-left: 0; }
li.index { list-style-type: none; }
p.index-heading { font-size: 120%; font-style: italic; margin: 0; }
li.index ul { margin-left: 2em; padding-left: 0; }
/* 'Note' callouts */
div.note
{
padding: 4px;
margin: 2px 5% 10px;
font-style: normal;
font-family: sans-serif;
background-color: #b0c4de;
-moz-border-radius: 10px;
}
div.note p.admonition-title
{
font-weight: bold;
}
table.rst-example { border: 1px solid black; }
table.rst-example tbody tr td { background: #eeeeee; }
table.rst-example thead tr th { background: #c0ffff; }
td.rst-raw { width: 0; }
/* Used by nltk.org/doc/test: */
div.doctest-list { text-align: center; }
table.doctest-list { border: 1px solid black;
margin-left: auto; margin-right: auto;
}
table.doctest-list tbody tr td { background: #eeeeee;
border: 1px solid #cccccc; text-align: left; }
table.doctest-list thead tr th { background: #304050; color: #ffffff;
border: 1px solid #000000;}
span.doctest-passed { color: #008000; }
span.doctest-failed { color: #800000; }
|