##// END OF EJS Templates
Changing CodeMirror-scroll to overflow-y: hidden....
Brian E. Granger -
Show More
@@ -1,311 +1,313
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: center;
95 95 }
96 96
97 97 .help_string_label {
98 98 float: right;
99 99 }
100 100
101 101 #autoindent_span {
102 102 float: right;
103 103 }
104 104
105 105 .checkbox_label {
106 106 font-size: 85%;
107 107 float: right;
108 108 padding: 0.3em;
109 109 }
110 110
111 111 .section_row_header {
112 112 float: left;
113 113 font-size: 85%;
114 114 padding: 0.4em 0em;
115 115 font-weight: bold;
116 116 }
117 117
118 118 span.button_label {
119 119 padding: 0.2em 1em;
120 120 font-size: 77%;
121 121 float: right;
122 122 }
123 123
124 124 /* This is needed because FF was adding a 2px margin top and bottom. */
125 125 .section_row .ui-button {
126 126 margin-top: 0px;
127 127 margin-bottom: 0px;
128 128 }
129 129
130 130 #download_format {
131 131 float: right;
132 132 font-size: 85%;
133 133 width: 62px;
134 134 margin: 1px 5px;
135 135 }
136 136
137 137 div#left_panel_splitter {
138 138 width: 8px;
139 139 top: 0px;
140 140 left: 202px;
141 141 margin: 0px;
142 142 padding: 0px;
143 143 position: absolute;
144 144 }
145 145
146 146 div#notebook_panel {
147 147 /* The L margin will be set in the Javascript code*/
148 148 margin: 0px 0px 0px 0px;
149 149 padding: 0px;
150 150 }
151 151
152 152 div#notebook {
153 153 overflow-y: scroll;
154 154 overflow-x: auto;
155 155 width: 100%;
156 156 /* This spaces the cell away from the edge of the notebook area */
157 157 padding: 15px 15px 15px 15px;
158 158 margin: 0px
159 159 background-color: white;
160 160 }
161 161
162 162 div#pager_splitter {
163 163 height: 8px;
164 164 }
165 165
166 166 div#pager {
167 167 padding: 15px;
168 168 overflow: auto;
169 169 }
170 170
171 171 div.cell {
172 172 width: 100%;
173 173 padding: 5px;
174 174 /* This acts as a spacer between cells, that is outside the border */
175 175 margin: 5px 0px 5px 0px;
176 176 }
177 177
178 178 div.code_cell {
179 179 background-color: white;
180 180 }
181 181
182 182 div.prompt {
183 183 /* No width is used so the prompt area can expand as the prompt number
184 184 increases in width */
185 185 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
186 186 padding: 0.4em;
187 187 margin: 0px;
188 188 font-family: monospace;
189 189 }
190 190
191 191 div.input {
192 192 page-break-inside: avoid;
193 193 }
194 194
195 195 div.input_area {
196 196 color: black;
197 197 }
198 198
199 199 div.input_prompt {
200 200 color: navy;
201 201 }
202 202
203 203 div.output {
204 204 /* This is a spacer between the input and output of each cell */
205 205 margin-top: 5px;
206 206 }
207 207
208 208 div.output_prompt {
209 209 color: darkred;
210 210 }
211 211
212 212 /* This class is applied to all types of output (pyout, pyerr, stream, display_data) */
213 213 div.output_area {
214 214 padding: 0px 0.4em;
215 215 page-break-inside: avoid;
216 216 }
217 217
218 218 /* This is the output area after the Out[] prompt of type pyout */
219 219 div.pyout_area {
220 220 padding: 0.4em;
221 221 }
222 222
223 223 /* The rest of the output_* classes are for special styling of the different
224 224 output types */
225 225
226 226 div.output_pyout {
227 227 padding: 0px;
228 228 }
229 229
230 230 div.output_stream {
231 231 text-align: left;
232 232 color: black;
233 233 font-family: monospace;
234 234 }
235 235
236 236 div.output_latex {
237 237 text-align: left;
238 238 color: black;
239 239 }
240 240
241 241 div.output_html {
242 242 }
243 243
244 244 div.output_png {
245 245 }
246 246
247 247 div.output_jpeg {
248 248 }
249 249
250 250 div.text_cell {
251 251 background-color: white;
252 252 }
253 253
254 254 div.text_cell_input {
255 255 color: black;
256 256 }
257 257
258 258 div.text_cell_render {
259 259 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
260 260 outline: none;
261 261 resize: none;
262 262 width: inherit;
263 263 border-style: none;
264 264 padding: 5px;
265 265 color: black;
266 266 }
267 267
268 268 .CodeMirror {
269 269 line-height: 1.231; /* Changed from 1em to our global default */
270 270 }
271 271
272 272 .CodeMirror-scroll {
273 273 height: auto; /* Changed to auto to autogrow */
274 overflow-y: visible; /* Changed from auto to remove scrollbar */
274 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
275 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
276 overflow-y: hidden;
275 277 overflow-x: auto; /* Changed from auto to remove scrollbar */
276 278 }
277 279
278 280 /* CSS font colors for translated ANSI colors. */
279 281
280 282
281 283 .ansiblack {color: black;}
282 284 .ansired {color: darkred;}
283 285 .ansigreen {color: darkgreen;}
284 286 .ansiyellow {color: brown;}
285 287 .ansiblue {color: darkblue;}
286 288 .ansipurple {color: darkviolet;}
287 289 .ansicyan {color: steelblue;}
288 290 .ansigrey {color: grey;}
289 291 .ansibold {font-weight: bold;}
290 292
291 293 .completions {
292 294 position: absolute;
293 295 z-index: 10;
294 296 overflow: auto;
295 297 border: 1px solid black;
296 298 }
297 299
298 300 .completions select {
299 301 background: white;
300 302 outline: none;
301 303 border: none;
302 304 padding: 0px;
303 305 margin: 0px;
304 306 font-family: monospace;
305 307 }
306 308
307 309 @media print {
308 310 body { overflow: visible !important; }
309 311 .ui-widget-content { border: 0px; }
310 312 }
311 313
@@ -1,228 +1,228
1 1 <!DOCTYPE HTML>
2 2 <html>
3 3
4 4 <head>
5 5 <meta charset="utf-8">
6 6
7 7 <title>IPython Notebook</title>
8 8
9 9 <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
10 10 <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> -->
11 11 <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />-->
12 12
13 13 <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script>
14 14 <!-- <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script> -->
15 15 <script type="text/javascript">
16 16 if (typeof MathJax == 'undefined') {
17 17 console.log("Trying to load local copy of MathJax");
18 18 document.write(unescape("%3Cscript type='text/javascript' src='static/mathjax/MathJax.js%3Fconfig=TeX-AMS_HTML' charset='utf-8'%3E%3C/script%3E"));
19 19 }
20 20 </script>
21 21
22 22 <link rel="stylesheet" href="static/codemirror-2.12/lib/codemirror.css">
23 23 <link rel="stylesheet" href="static/codemirror-2.12/mode/rst/rst.css">
24 24 <link rel="stylesheet" href="static/codemirror-2.12/theme/ipython.css">
25 25 <link rel="stylesheet" href="static/codemirror-2.12/theme/default.css">
26 26
27 27 <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
28 28 <link rel="stylesheet" href="static/css/layout.css" type="text/css" />
29 29 <link rel="stylesheet" href="static/css/base.css" type="text/css" />
30 30 <link rel="stylesheet" href="static/css/notebook.css" type="text/css" />
31 31 <link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" />
32 32
33 33
34 34 </head>
35 35
36 36 <body>
37 37
38 38 <div id="header">
39 39 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
40 40 <span id="save_widget">
41 41 <input type="text" id="notebook_name" size="20"></textarea>
42 42 <span id="notebook_id" style="display:none">{{notebook_id}}</span>
43 43 <button id="save_notebook">Save</button>
44 44 </span>
45 45 <span id="kernel_status">Idle</span>
46 46 </div>
47 47
48 48 <div id="main_app">
49 49
50 50 <div id="left_panel">
51 51
52 52 <div id="notebook_section">
53 53 <h3 class="section_header">Notebook</h3>
54 54 <div class="section_content">
55 55 <div class="section_row">
56 56 <span id="new_open" class="section_row_buttons">
57 57 <button id="new_notebook">New</button>
58 58 <button id="open_notebook">Open</button>
59 59 </span>
60 60 <span class="section_row_header">Actions</span>
61 61 </div>
62 62 <div class="section_row">
63 63 <span>
64 64 <select id="download_format">
65 <option value="json">json</option>
65 <option value="json">ipynb</option>
66 66 <option value="py">py</option>
67 67 </select>
68 68 </span>
69 69 <span class="section_row_buttons">
70 70 <span id="print_widget">
71 71 <button id="print_notebook">Print</button>
72 72 </span>
73 73
74 74 <button id="download_notebook">Download</button>
75 75 </span>
76 76 </div>
77 77 </div>
78 78 </div>
79 79
80 80 <div id="cell_section">
81 81 <h3 class="section_header">Cell</h3>
82 82 <div class="section_content">
83 83 <div class="section_row">
84 84 <span class="section_row_buttons">
85 85 <button id="delete_cell">Delete</button>
86 86 </span>
87 87 <span class="section_row_header">Actions</span>
88 88 </div>
89 89 <div class="section_row">
90 90 <span id="cell_type" class="section_row_buttons">
91 91 <button id="to_code">Code</button>
92 92 <!-- <button id="to_html">HTML</button>-->
93 93 <button id="to_markdown">Markdown</button>
94 94 </span>
95 95 <span class="button_label">Format</span>
96 96 </div>
97 97 <div class="section_row">
98 98 <span id="toggle_output" class="section_row_buttons">
99 99 <button id="collapse_cell">Collapse</button>
100 100 <button id="expand_cell">Expand</button>
101 101 <button id="clear_all_output">ClearAll</button>
102 102 </span>
103 103 <span class="button_label">Output</span>
104 104 </div>
105 105 <div class="section_row">
106 106 <span id="insert" class="section_row_buttons">
107 107 <button id="insert_cell_above">Above</button>
108 108 <button id="insert_cell_below">Below</button>
109 109 </span>
110 110 <span class="button_label">Insert</span>
111 111 </div>
112 112 <div class="section_row">
113 113 <span id="move" class="section_row_buttons">
114 114 <button id="move_cell_up">Up</button>
115 115 <button id="move_cell_down">Down</button>
116 116 </span>
117 117 <span class="button_label">Move</span>
118 118 </div>
119 119 <div class="section_row">
120 120 <span id="run_cells" class="section_row_buttons">
121 121 <button id="run_selected_cell">Selected</button>
122 122 <button id="run_all_cells">All</button>
123 123 </span>
124 124 <span class="button_label">Run</span>
125 125 </div>
126 126 <div class="section_row">
127 127 <span id="autoindent_span">
128 128 <input type="checkbox" id="autoindent" checked="true"></input>
129 129 </span>
130 130 <span class="checkbox_label">Autoindent:</span>
131 131 </div>
132 132 </div>
133 133 </div>
134 134
135 135 <div id="kernel_section">
136 136 <h3 class="section_header">Kernel</h3>
137 137 <div class="section_content">
138 138 <div class="section_row">
139 139 <span id="int_restart" class="section_row_buttons">
140 140 <button id="int_kernel">Interrupt</button>
141 141 <button id="restart_kernel">Restart</button>
142 142 </span>
143 143 <span class="section_row_header">Actions</span>
144 144 </div>
145 145 <div class="section_row">
146 146 <span id="kernel_persist">
147 147 <input type="checkbox" id="kill_kernel"></input>
148 148 </span>
149 149 <span class="checkbox_label">Kill kernel upon exit:</span>
150 150 </div>
151 151 </div>
152 152 </div>
153 153
154 154 <div id="help_section">
155 155 <h3 class="section_header">Help</h3>
156 156 <div class="section_content">
157 157 <div class="section_row">
158 158 <span id="help_buttons0" class="section_row_buttons">
159 159 <a id="python_help" href="http://docs.python.org" target="_blank">Python</a>
160 160 <a id="ipython_help" href="http://ipython.org/documentation.html" target="_blank">IPython</a>
161 161 <a id="numpy_help" href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a>
162 162 </span>
163 163 <span class="section_row_header">Links</span>
164 164 </div>
165 165 <div class="section_row">
166 166 <span id="help_buttons1" class="section_row_buttons">
167 167 <a id="matplotlib_help" href="http://matplotlib.sourceforge.net/" target="_blank">MPL</a>
168 168 <a id="scipy_help" href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a>
169 169 <a id="sympy_help" href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a>
170 170 </span>
171 171 </div>
172 172 <div class="section_row">
173 173 <span class="help_string">run selected cell</span>
174 174 <span class="help_string_label">Shift-Enter |</span>
175 175 </div>
176 176 <div class="section_row">
177 177 <span class="help_string">run in terminal mode</span>
178 178 <span class="help_string_label">Ctrl-Enter |</span>
179 179 </div>
180 180 </div>
181 181 </div>
182 182
183 183 </div>
184 184 <div id="left_panel_splitter"></div>
185 185 <div id="notebook_panel">
186 186 <div id="notebook"></div>
187 187 <div id="pager_splitter"></div>
188 188 <div id="pager"></div>
189 189 </div>
190 190
191 191 </div>
192 192
193 193 <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
194 194 <script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
195 195 <script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
196 196
197 197 <script src="static/codemirror-2.12/lib/codemirror.js" charset="utf-8"></script>
198 198 <script src="static/codemirror-2.12/mode/python/python.js" charset="utf-8"></script>
199 199 <script src="static/codemirror-2.12/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script>
200 200 <script src="static/codemirror-2.12/mode/xml/xml.js" charset="utf-8"></script>
201 201 <script src="static/codemirror-2.12/mode/javascript/javascript.js" charset="utf-8"></script>
202 202 <script src="static/codemirror-2.12/mode/css/css.js" charset="utf-8"></script>
203 203 <script src="static/codemirror-2.12/mode/rst/rst.js" charset="utf-8"></script>
204 204
205 205 <script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
206 206
207 207 <script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
208 208 <script src="static/js/utils.js" type="text/javascript" charset="utf-8"></script>
209 209 <script src="static/js/cell.js" type="text/javascript" charset="utf-8"></script>
210 210 <script src="static/js/codecell.js" type="text/javascript" charset="utf-8"></script>
211 211 <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
212 212 <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
213 213 <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
214 214 <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
215 215 <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
216 216 <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
217 217 <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
218 218 <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
219 219 <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
220 220 <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
221 221 <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script>
222 222
223 223
224 224 </body>
225 225
226 226 </html>
227 227
228 228
General Comments 0
You need to be logged in to leave comments. Login now