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