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