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