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

291 by mattgiuca
tutorial: Added code to handle top-level menu and subject menu (reads dir
1
.tuteproblem {
490 by stevenbird
* new styling to make problem boxes stand out from the text
2
    background: #eeeeff url(../images/tutorial/signature.png) no-repeat top left;
3
    color: navy;
4
    margin: 0 5% 0 0;
5
    padding: 0 .5em .5em 25px;
6
    border-left: 1px solid gray;
7
    border-right: 2px solid gray;
8
    border-top: 1px solid gray;
9
    border-bottom: 1px solid gray;
291 by mattgiuca
tutorial: Added code to handle top-level menu and subject menu (reads dir
10
}
297 by mattgiuca
tutorial: Now presents problems correctly, by parsing XML source and writing
11
325 by mattgiuca
tutorial: Added "run" button which submits the students code to the
12
.problembox, .runoutput {
490 by stevenbird
* new styling to make problem boxes stand out from the text
13
    width: 80%;
307 by mattgiuca
tutorial: Now each problem div has an ID. Added submit buttons which call
14
}
15
16
.problembuttons {
17
    text-align: right;
297 by mattgiuca
tutorial: Now presents problems correctly, by parsing XML source and writing
18
}
312 by mattgiuca
Full client-side testing - functional.
19
20
/* Test case outputs are shown as a bulleted list, with these icons as the
21
 * bullets. */
22
23
li.pass {
393 by drtomc
Fix a minor problem with the css for tutorials. The test response (pass/fail) icons used absolute url paths. We've changed them so that now they are relative.
24
    list-style: url(../images/tutorial/pass.png);
312 by mattgiuca
Full client-side testing - functional.
25
}
26
li.fail {
393 by drtomc
Fix a minor problem with the css for tutorials. The test response (pass/fail) icons used absolute url paths. We've changed them so that now they are relative.
27
    list-style: url(../images/tutorial/fail.png);
312 by mattgiuca
Full client-side testing - functional.
28
}
29
li.exception {
393 by drtomc
Fix a minor problem with the css for tutorials. The test response (pass/fail) icons used absolute url paths. We've changed them so that now they are relative.
30
    list-style: url(../images/tutorial/exception.png);
312 by mattgiuca
Full client-side testing - functional.
31
}
378 by stevenbird
www/dispatch/request.py:
32
33
/*
34
:Author: Edward Loper, James Curran
35
:Copyright: This stylesheet has been placed in the public domain.
36
37
Stylesheet for use with Docutils.
38
39
This stylesheet defines new css classes used by NLTK.
40
41
It uses a Python syntax highlighting scheme that matches
42
the colour scheme used by IDLE, which makes it easier for
43
beginners to check they are typing things in correctly.
44
*/
45
46
/* Include the standard docutils stylesheet. */
47
@import url(default.css);
48
49
/* Custom inline roles */
50
span.placeholder    { font-style: italic; font-family: monospace; }
51
span.example        { font-style: italic; }
52
span.emphasis       { font-style: italic; }
53
span.termdef        { font-weight: bold; }
54
/*span.term           { font-style: italic; }*/
55
span.category       { font-variant: small-caps; }
56
span.feature        { font-variant: small-caps; }
57
span.fval           { font-style: italic; }
58
span.math           { font-style: italic; }
59
span.mathit         { font-style: italic; }
60
span.lex            { font-variant: small-caps; }
61
62
/* Python souce code listings */
63
span.pysrc-prompt   { color: #9b0000; }
64
span.pysrc-more     { color: #9b00ff; }
65
span.pysrc-keyword  { color: #e06000; }
66
span.pysrc-builtin  { color: #940094; }
67
span.pysrc-string   { color: #00aa00; }
68
span.pysrc-comment  { color: #ff0000; }
69
span.pysrc-output   { color: #0000ff; }
70
span.pysrc-except   { color: #ff0000; }
71
span.pysrc-defname  { color: #008080; }
72
73
74
/* Doctest blocks */
75
pre.doctest         { margin: 0; padding: 0; font-weight: bold; }
76
div.doctest         { margin: 0 1em 1em 1em; padding: 0; }
77
table.doctest       { margin: 0; padding: 0;
78
                      border-top: 1px solid gray;
79
                      border-bottom: 1px solid gray; }
80
pre.copy-notify     { margin: 0; padding: 0.2em; font-weight: bold;
81
                      background-color: #ffffff; }
82
83
/* Python source listings */
84
div.pylisting       { margin: 0 1em 1em 1em; padding: 0; }
85
table.pylisting     { margin: 0; padding: 0;
86
                      border-top: 1px solid gray; }
87
td.caption { border-top: 1px solid black; margin: 0; padding: 0; }
88
.caption-label { font-weight: bold;  }
89
td.caption p { margin: 0; padding: 0; font-style: normal;}
90
91
table tr td.codeblock { 
92
  padding: 0.2em ! important; margin: 0;
93
  border-left: 1px solid gray;
94
  border-right: 2px solid gray;
95
  border-top: 0px solid gray;
96
  border-bottom: 1px solid gray;
97
  font-weight: bold; background-color: #eeffee;
98
}
99
100
table tr td.doctest  { 
101
  padding: 0.2em; margin: 0;
102
  border-left: 1px solid gray;
103
  border-right: 2px solid gray;
104
  border-top: 0px solid gray;
105
  border-bottom: 1px solid gray;
106
  font-weight: bold; background-color: #eeeeff;
107
}
108
109
td.codeblock table tr td.copybar {
110
    background: #40a060; border: 1px solid gray;
111
    font-family: monospace; padding: 0; margin: 0; }
112
td.doctest table tr td.copybar {
113
    background: #4060a0; border: 1px solid gray;
114
    font-family: monospace; padding: 0; margin: 0; }
115
116
td.pysrc { padding-left: 0.5em; }
117
118
img.callout { border-width: 0px; }
119
120
table.docutils {
121
    border-style: solid;
122
    border-width: 1px;
123
    margin-top: 6px;
124
    border-color: grey;
125
    border-collapse: collapse; }
126
127
table.docutils th {
128
    border-style: none;
129
    border-width: 1px;
130
    border-color: grey;
131
    padding: 0 .5em 0 .5em; }
132
133
table.docutils td {
134
    border-style: none;
135
    border-width: 1px;
136
    border-color: grey; 
137
    padding: 0 .5em 0 .5em; }
138
139
table.footnote td { padding: 0; }
140
table.footnote { border-width: 0; }
141
table.footnote td { border-width: 0; }
142
table.footnote th { border-width: 0; }
143
144
table.noborder { border-width: 0; }
145
146
table.example pre { margin-top: 4px; margin-bottom: 0; }
147
148
/* For figures & tables */
149
p.caption { margin-bottom: 0; }
150
div.figure { text-align: center; }
151
152
/* The index */
153
div.index { border: 1px solid black;
154
            background-color: #eeeeee; }
155
div.index h1 { padding-left: 0.5em; margin-top: 0.5ex;
156
               border-bottom: 1px solid black; }
157
ul.index { margin-left: 0.5em; padding-left: 0; }
158
li.index { list-style-type: none; }
159
p.index-heading { font-size: 120%; font-style: italic; margin: 0; }
160
li.index ul { margin-left: 2em; padding-left: 0; }
161
162
/* 'Note' callouts */
163
div.note
164
{
165
  border-right:   #87ceeb 1px solid;
166
  padding-right: 4px;
167
  border-top: #87ceeb 1px solid;
168
  padding-left: 4px;
169
  padding-bottom: 4px;
170
  margin: 2px 5% 10px;
171
  border-left: #87ceeb 1px solid;
172
  padding-top: 4px;
173
  border-bottom: #87ceeb 1px solid;
174
  font-style: normal;
175
  font-family: verdana, arial;
176
  background-color: #b0c4de;
177
}
178
179
table.avm { border: 0px solid black; width: 0; }
180
table.avm tbody tr {border: 0px solid black; }
181
table.avm tbody tr td { padding: 2px; }
182
table.avm tbody tr td.avm-key { padding: 5px; font-variant: small-caps; }
183
table.avm tbody tr td.avm-eq { padding: 5px; }
184
table.avm tbody tr td.avm-val { padding: 5px; font-style: italic; }
185
p.avm-empty { font-style: normal; }
186
table.avm colgroup col { border: 0px solid black; }
187
table.avm tbody tr td.avm-topleft 
188
    { border-left: 2px solid #000080; border-top: 2px solid #000080; }
189
table.avm tbody tr td.avm-botleft 
190
    { border-left: 2px solid #000080; border-bottom: 2px solid #000080; }
191
table.avm tbody tr td.avm-topright
192
    { border-right: 2px solid #000080; border-top: 2px solid #000080; }
193
table.avm tbody tr td.avm-botright
194
    { border-right: 2px solid #000080; border-bottom: 2px solid #000080; }
195
table.avm tbody tr td.avm-left
196
    { border-left: 2px solid #000080; }
197
table.avm tbody tr td.avm-right
198
    { border-right: 2px solid #000080; }
199
table.avm tbody tr td.avm-topbotleft
200
    { border: 2px solid #000080; border-right: 0px solid black; }
201
table.avm tbody tr td.avm-topbotright
202
    { border: 2px solid #000080; border-left: 0px solid black; }
203
table.avm tbody tr td.avm-ident
204
    { font-size: 80%; padding: 0; padding-left: 2px; vertical-align: top; }
205
.avm-pointer
206
{ border: 1px solid #008000; padding: 1px; color: #008000; 
207
  background: #c0ffc0; font-style: normal; }
208
209
table.gloss { border: 0px solid black; width: 0; }
210
table.gloss tbody tr { border: 0px solid black; }
211
table.gloss tbody tr td { border: 0px solid black; }
212
table.gloss colgroup col { border: 0px solid black; }
213
table.gloss p { margin: 0; padding: 0; }
214
215
table.rst-example { border: 1px solid black; }
216
table.rst-example tbody tr td { background: #eeeeee; }
217
table.rst-example thead tr th { background: #c0ffff; }
218
td.rst-raw { width: 0; }
219
220
/* Used by nltk.org/doc/test: */
221
div.doctest-list { text-align: center; }
222
table.doctest-list { border: 1px solid black;
223
  margin-left: auto; margin-right: auto;
224
}
225
table.doctest-list tbody tr td { background: #eeeeee;
226
  border: 1px solid #cccccc; text-align: left; }
227
table.doctest-list thead tr th { background: #304050; color: #ffffff;
228
  border: 1px solid #000000;}
229
span.doctest-passed { color: #008000; }
230
span.doctest-failed { color: #800000; }