~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/tutorial/tutorial.css

  • Committer: stevenbird
  • Date: 2008-02-02 00:07:53 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:378
www/dispatch/request.py:
* self.apache_req.write() chokes on strings with Unicode chars;
  specify utf-8 encoding (presumes xhtml headers also specify utf-8

www/media/tutorial/tutorial.css
* incorporate worksheet styles (from informatics/rst/worksheet.css)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
li.exception {
25
25
    list-style: url(/ivle/media/images/tutorial/exception.png);
26
26
}
 
27
 
 
28
/*
 
29
:Author: Edward Loper, James Curran
 
30
:Copyright: This stylesheet has been placed in the public domain.
 
31
 
 
32
Stylesheet for use with Docutils.
 
33
 
 
34
This stylesheet defines new css classes used by NLTK.
 
35
 
 
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.
 
39
*/
 
40
 
 
41
/* Include the standard docutils stylesheet. */
 
42
@import url(default.css);
 
43
 
 
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; }
 
56
 
 
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; }
 
67
 
 
68
 
 
69
/* Doctest blocks */
 
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; }
 
77
 
 
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;}
 
85
 
 
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;
 
93
}
 
94
 
 
95
table tr td.doctest  { 
 
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;
 
102
}
 
103
 
 
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; }
 
110
 
 
111
td.pysrc { padding-left: 0.5em; }
 
112
 
 
113
img.callout { border-width: 0px; }
 
114
 
 
115
table.docutils {
 
116
    border-style: solid;
 
117
    border-width: 1px;
 
118
    margin-top: 6px;
 
119
    border-color: grey;
 
120
    border-collapse: collapse; }
 
121
 
 
122
table.docutils th {
 
123
    border-style: none;
 
124
    border-width: 1px;
 
125
    border-color: grey;
 
126
    padding: 0 .5em 0 .5em; }
 
127
 
 
128
table.docutils td {
 
129
    border-style: none;
 
130
    border-width: 1px;
 
131
    border-color: grey; 
 
132
    padding: 0 .5em 0 .5em; }
 
133
 
 
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; }
 
138
 
 
139
table.noborder { border-width: 0; }
 
140
 
 
141
table.example pre { margin-top: 4px; margin-bottom: 0; }
 
142
 
 
143
/* For figures & tables */
 
144
p.caption { margin-bottom: 0; }
 
145
div.figure { text-align: center; }
 
146
 
 
147
/* The index */
 
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; }
 
156
 
 
157
/* 'Note' callouts */
 
158
div.note
 
159
{
 
160
  border-right:   #87ceeb 1px solid;
 
161
  padding-right: 4px;
 
162
  border-top: #87ceeb 1px solid;
 
163
  padding-left: 4px;
 
164
  padding-bottom: 4px;
 
165
  margin: 2px 5% 10px;
 
166
  border-left: #87ceeb 1px solid;
 
167
  padding-top: 4px;
 
168
  border-bottom: #87ceeb 1px solid;
 
169
  font-style: normal;
 
170
  font-family: verdana, arial;
 
171
  background-color: #b0c4de;
 
172
}
 
173
 
 
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; }
 
200
.avm-pointer
 
201
{ border: 1px solid #008000; padding: 1px; color: #008000; 
 
202
  background: #c0ffc0; font-style: normal; }
 
203
 
 
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; }
 
209
 
 
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; }
 
214
 
 
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;
 
219
}
 
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; }