Show More
@@ -1,322 +1,332 b'' | |||
|
1 | 1 | /** |
|
2 | 2 | * Primary styles |
|
3 | 3 | * |
|
4 | 4 | * Author: IPython Development Team |
|
5 | 5 | */ |
|
6 | 6 | |
|
7 | 7 | |
|
8 | 8 | body { |
|
9 | 9 | overflow: hidden; |
|
10 | 10 | } |
|
11 | 11 | |
|
12 | 12 | span#save_widget { |
|
13 | 13 | padding: 5px; |
|
14 | 14 | margin: 0px 0px 0px 300px; |
|
15 | 15 | display:inline-block; |
|
16 | 16 | } |
|
17 | 17 | |
|
18 | 18 | span#notebook_name { |
|
19 | 19 | height: 1em; |
|
20 | 20 | line-height: 1em; |
|
21 | 21 | padding: 3px; |
|
22 | 22 | border: none; |
|
23 | 23 | font-size: 146.5%; |
|
24 | 24 | } |
|
25 | 25 | |
|
26 | 26 | .ui-menubar-item .ui-button .ui-button-text { |
|
27 | 27 | padding: 0.4em 1.0em; |
|
28 | 28 | font-size: 100%; |
|
29 | 29 | } |
|
30 | 30 | |
|
31 | 31 | .ui-menu { |
|
32 | 32 | -moz-box-shadow: 0px 6px 10px -1px #adadad; |
|
33 | 33 | -webkit-box-shadow: 0px 6px 10px -1px #adadad; |
|
34 | 34 | box-shadow: 0px 6px 10px -1px #adadad; |
|
35 | 35 | } |
|
36 | 36 | |
|
37 | 37 | .ui-menu .ui-menu-item a { |
|
38 | border: 1px solid transparent; | |
|
38 | 39 | padding: 2px 1.6em; |
|
39 | 40 | } |
|
40 | 41 | |
|
41 | 42 | .ui-menu hr { |
|
42 | 43 | margin: 0.3em 0; |
|
43 | 44 | } |
|
44 | 45 | |
|
45 | 46 | #menubar_container { |
|
46 | 47 | position: relative; |
|
47 | 48 | } |
|
48 | 49 | |
|
49 | 50 | #notification { |
|
50 | 51 | position: absolute; |
|
51 | 52 | right: 3px; |
|
52 | 53 | top: 3px; |
|
53 | 54 | height: 25px; |
|
54 | 55 | padding: 3px 6px; |
|
55 | 56 | z-index: 10; |
|
56 | 57 | } |
|
57 | 58 | |
|
58 | 59 | #toolbar { |
|
59 | 60 | padding: 3px 15px; |
|
60 | 61 | } |
|
61 | 62 | |
|
62 | 63 | #cell_type { |
|
63 | 64 | font-size: 85%; |
|
64 | 65 | } |
|
65 | 66 | |
|
66 | 67 | |
|
67 | 68 | div#main_app { |
|
68 | 69 | width: 100%; |
|
69 | 70 | position: relative; |
|
70 | 71 | } |
|
71 | 72 | |
|
72 | 73 | span#quick_help_area { |
|
73 | 74 | position: static; |
|
74 | 75 | padding: 5px 0px; |
|
75 | 76 | margin: 0px 0px 0px 0px; |
|
76 | 77 | } |
|
77 | 78 | |
|
78 | 79 | .help_string { |
|
79 | 80 | float: right; |
|
80 | 81 | width: 170px; |
|
81 | 82 | padding: 0px 5px; |
|
82 | 83 | text-align: left; |
|
83 | 84 | font-size: 85%; |
|
84 | 85 | } |
|
85 | 86 | |
|
86 | 87 | .help_string_label { |
|
87 | 88 | float: right; |
|
88 | 89 | font-size: 85%; |
|
89 | 90 | } |
|
90 | 91 | |
|
91 | 92 | div#notebook_panel { |
|
92 | 93 | margin: 0px 0px 0px 0px; |
|
93 | 94 | padding: 0px; |
|
94 | 95 | } |
|
95 | 96 | |
|
96 | 97 | div#notebook { |
|
97 | 98 | overflow-y: scroll; |
|
98 | 99 | overflow-x: auto; |
|
99 | 100 | width: 100%; |
|
100 | 101 | /* This spaces the cell away from the edge of the notebook area */ |
|
101 | 102 | padding: 5px 5px 15px 5px; |
|
102 | 103 | margin: 0px |
|
103 | 104 | background-color: white; |
|
104 | 105 | } |
|
105 | 106 | |
|
106 | 107 | div#pager_splitter { |
|
107 | 108 | height: 8px; |
|
108 | 109 | } |
|
109 | 110 | |
|
110 | 111 | div#pager { |
|
111 | 112 | padding: 15px; |
|
112 | 113 | overflow: auto; |
|
113 | 114 | display: none; |
|
114 | 115 | } |
|
115 | 116 | |
|
117 | div.ui-widget-content { | |
|
118 | border: 1px solid #aaa; | |
|
119 | outline: none; | |
|
120 | } | |
|
121 | ||
|
122 | .cell { | |
|
123 | border: 1px solid transparent; | |
|
124 | } | |
|
125 | ||
|
116 | 126 | div.cell { |
|
117 | 127 | width: 100%; |
|
118 | 128 | padding: 5px 5px 5px 0px; |
|
119 | 129 | /* This acts as a spacer between cells, that is outside the border */ |
|
120 | 130 | margin: 2px 0px 2px 0px; |
|
121 | 131 | } |
|
122 | 132 | |
|
123 | 133 | div.code_cell { |
|
124 | 134 | background-color: white; |
|
125 | 135 | } |
|
126 | 136 | /* any special styling for code cells that are currently running goes here */ |
|
127 | 137 | div.code_cell.running { |
|
128 | 138 | } |
|
129 | 139 | |
|
130 | 140 | div.prompt { |
|
131 | 141 | /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ |
|
132 | 142 | width: 11ex; |
|
133 | 143 | /* This 0.4em is tuned to match the padding on the CodeMirror editor. */ |
|
134 | 144 | padding: 0.4em; |
|
135 | 145 | margin: 0px; |
|
136 | 146 | font-family: monospace; |
|
137 | 147 | text-align:right; |
|
138 | 148 | } |
|
139 | 149 | |
|
140 | 150 | div.input { |
|
141 | 151 | page-break-inside: avoid; |
|
142 | 152 | } |
|
143 | 153 | |
|
144 | 154 | /* input_area and input_prompt must match in top border and margin for alignment */ |
|
145 | 155 | div.input_area { |
|
146 | 156 | color: black; |
|
147 | 157 | border: 1px solid #ddd; |
|
148 | 158 | border-radius: 3px; |
|
149 | 159 | background: #f7f7f7; |
|
150 | 160 | } |
|
151 | 161 | |
|
152 | 162 | div.input_prompt { |
|
153 | 163 | color: navy; |
|
154 | 164 | border-top: 1px solid transparent; |
|
155 | 165 | } |
|
156 | 166 | |
|
157 | 167 | div.output { |
|
158 | 168 | /* This is a spacer between the input and output of each cell */ |
|
159 | 169 | margin-top: 5px; |
|
160 | 170 | } |
|
161 | 171 | |
|
162 | 172 | div.output_prompt { |
|
163 | 173 | color: darkred; |
|
164 | 174 | } |
|
165 | 175 | |
|
166 | 176 | /* This class is the outer container of all output sections. */ |
|
167 | 177 | div.output_area { |
|
168 | 178 | padding: 0px; |
|
169 | 179 | page-break-inside: avoid; |
|
170 | 180 | } |
|
171 | 181 | |
|
172 | 182 | /* This class is for the output subarea inside the output_area and after |
|
173 | 183 | the prompt div. */ |
|
174 | 184 | div.output_subarea { |
|
175 | 185 | padding: 0.4em 0.4em 0.4em 0.4em; |
|
176 | 186 | } |
|
177 | 187 | |
|
178 | 188 | /* The rest of the output_* classes are for special styling of the different |
|
179 | 189 | output types */ |
|
180 | 190 | |
|
181 | 191 | /* all text output has this class: */ |
|
182 | 192 | div.output_text { |
|
183 | 193 | text-align: left; |
|
184 | 194 | color: black; |
|
185 | 195 | font-family: monospace; |
|
186 | 196 | } |
|
187 | 197 | |
|
188 | 198 | /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */ |
|
189 | 199 | div.output_stream { |
|
190 | 200 | padding-top: 0.0em; |
|
191 | 201 | padding-bottom: 0.0em; |
|
192 | 202 | } |
|
193 | 203 | div.output_stdout { |
|
194 | 204 | } |
|
195 | 205 | div.output_stderr { |
|
196 | 206 | background: #fdd; /* very light red background for stderr */ |
|
197 | 207 | } |
|
198 | 208 | |
|
199 | 209 | div.output_latex { |
|
200 | 210 | text-align: left; |
|
201 | 211 | color: black; |
|
202 | 212 | } |
|
203 | 213 | |
|
204 | 214 | div.output_html { |
|
205 | 215 | } |
|
206 | 216 | |
|
207 | 217 | div.output_png { |
|
208 | 218 | } |
|
209 | 219 | |
|
210 | 220 | div.output_jpeg { |
|
211 | 221 | } |
|
212 | 222 | |
|
213 | 223 | div.text_cell { |
|
214 | 224 | background-color: white; |
|
215 | 225 | padding: 5px 5px 5px 5px; |
|
216 | 226 | } |
|
217 | 227 | |
|
218 | 228 | div.text_cell_input { |
|
219 | 229 | color: black; |
|
220 | 230 | border: 1px solid #ddd; |
|
221 | 231 | border-radius: 3px; |
|
222 | 232 | background: #f7f7f7; |
|
223 | 233 | } |
|
224 | 234 | |
|
225 | 235 | div.text_cell_render { |
|
226 | 236 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; |
|
227 | 237 | outline: none; |
|
228 | 238 | resize: none; |
|
229 | 239 | width: inherit; |
|
230 | 240 | border-style: none; |
|
231 | 241 | padding: 5px; |
|
232 | 242 | color: black; |
|
233 | 243 | } |
|
234 | 244 | |
|
235 | 245 | .CodeMirror { |
|
236 | 246 | line-height: 1.231; /* Changed from 1em to our global default */ |
|
237 | 247 | } |
|
238 | 248 | |
|
239 | 249 | .CodeMirror-scroll { |
|
240 | 250 | height: auto; /* Changed to auto to autogrow */ |
|
241 | 251 | /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/ |
|
242 | 252 | /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/ |
|
243 | 253 | overflow-y: hidden; |
|
244 | 254 | overflow-x: auto; /* Changed from auto to remove scrollbar */ |
|
245 | 255 | } |
|
246 | 256 | |
|
247 | 257 | /* CSS font colors for translated ANSI colors. */ |
|
248 | 258 | |
|
249 | 259 | |
|
250 | 260 | .ansiblack {color: black;} |
|
251 | 261 | .ansired {color: darkred;} |
|
252 | 262 | .ansigreen {color: darkgreen;} |
|
253 | 263 | .ansiyellow {color: brown;} |
|
254 | 264 | .ansiblue {color: darkblue;} |
|
255 | 265 | .ansipurple {color: darkviolet;} |
|
256 | 266 | .ansicyan {color: steelblue;} |
|
257 | 267 | .ansigrey {color: grey;} |
|
258 | 268 | .ansibold {font-weight: bold;} |
|
259 | 269 | |
|
260 | 270 | .completions { |
|
261 | 271 | position: absolute; |
|
262 | 272 | z-index: 10; |
|
263 | 273 | overflow: auto; |
|
264 | 274 | border: 1px solid grey; |
|
265 | 275 | } |
|
266 | 276 | |
|
267 | 277 | .completions select { |
|
268 | 278 | background: white; |
|
269 | 279 | outline: none; |
|
270 | 280 | border: none; |
|
271 | 281 | padding: 0px; |
|
272 | 282 | margin: 0px; |
|
273 | 283 | font-family: monospace; |
|
274 | 284 | } |
|
275 | 285 | |
|
276 | 286 | option.context { |
|
277 | 287 | background-color: #DEF7FF; |
|
278 | 288 | } |
|
279 | 289 | option.introspection { |
|
280 | 290 | background-color: #EBF4EB; |
|
281 | 291 | } |
|
282 | 292 | |
|
283 | 293 | /*fixed part of the completion*/ |
|
284 | 294 | .completions p b { |
|
285 | 295 | font-weight:bold; |
|
286 | 296 | } |
|
287 | 297 | |
|
288 | 298 | .completions p { |
|
289 | 299 | background: #DDF; |
|
290 | 300 | /*outline: none; |
|
291 | 301 | padding: 0px;*/ |
|
292 | 302 | border-bottom: black solid 1px; |
|
293 | 303 | padding: 1px; |
|
294 | 304 | font-family: monospace; |
|
295 | 305 | } |
|
296 | 306 | |
|
297 | 307 | pre.dialog { |
|
298 | 308 | background-color: #f7f7f7; |
|
299 | 309 | border: 1px solid #ddd; |
|
300 | 310 | border-radius: 3px; |
|
301 | 311 | padding: 0.4em; |
|
302 | 312 | padding-left: 2em; |
|
303 | 313 | } |
|
304 | 314 | |
|
305 | 315 | p.dialog { |
|
306 | 316 | padding : 0.2em; |
|
307 | 317 | } |
|
308 | 318 | |
|
309 | 319 | .shortcut_key { |
|
310 | 320 | display: inline-block; |
|
311 | 321 | width: 15ex; |
|
312 | 322 | text-align: right; |
|
313 | 323 | font-family: monospace; |
|
314 | 324 | } |
|
315 | 325 | |
|
316 | 326 | .shortcut_descr { |
|
317 | 327 | } |
|
318 | 328 | |
|
319 | 329 | /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems |
|
320 | 330 | to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. |
|
321 | 331 | */ |
|
322 | 332 | pre, code, kbd, samp { white-space: pre-wrap; } |
General Comments 0
You need to be logged in to leave comments.
Login now