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