##// END OF EJS Templates
Make the main notebook div auto scroll.
Brian Granger -
Show More
@@ -1,217 +1,209 b''
1 /**
1 /**
2 * HTML5 ✰ Boilerplate
2 * HTML5 ✰ Boilerplate
3 *
3 *
4 * style.css contains a reset, font normalization and some base styles.
4 * style.css contains a reset, font normalization and some base styles.
5 *
5 *
6 * Credit is left where credit is due.
6 * Credit is left where credit is due.
7 * Much inspiration was taken from these projects:
7 * Much inspiration was taken from these projects:
8 * - yui.yahooapis.com/2.8.1/build/base/base.css
8 * - yui.yahooapis.com/2.8.1/build/base/base.css
9 * - camendesign.com/design/
9 * - camendesign.com/design/
10 * - praegnanz.de/weblog/htmlcssjs-kickstart
10 * - praegnanz.de/weblog/htmlcssjs-kickstart
11 */
11 */
12
12
13
13
14 /**
14 /**
15 * html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
15 * html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
16 * v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
16 * v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
17 * html5doctor.com/html-5-reset-stylesheet/
17 * html5doctor.com/html-5-reset-stylesheet/
18 */
18 */
19
19
20 html, body, div, span, object, iframe,
20 html, body, div, span, object, iframe,
21 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
21 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
22 abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
22 abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
23 small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
23 small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
24 fieldset, form, label, legend,
24 fieldset, form, label, legend,
25 table, caption, tbody, tfoot, thead, tr, th, td,
25 table, caption, tbody, tfoot, thead, tr, th, td,
26 article, aside, canvas, details, figcaption, figure,
26 article, aside, canvas, details, figcaption, figure,
27 footer, header, hgroup, menu, nav, section, summary,
27 footer, header, hgroup, menu, nav, section, summary,
28 time, mark, audio, video {
28 time, mark, audio, video {
29 margin: 0;
29 margin: 0;
30 padding: 0;
30 padding: 0;
31 border: 0;
31 border: 0;
32 font-size: 100%;
32 font-size: 100%;
33 font: inherit;
33 font: inherit;
34 vertical-align: baseline;
34 vertical-align: baseline;
35 }
35 }
36
36
37 article, aside, details, figcaption, figure,
37 article, aside, details, figcaption, figure,
38 footer, header, hgroup, menu, nav, section {
38 footer, header, hgroup, menu, nav, section {
39 display: block;
39 display: block;
40 }
40 }
41
41
42 blockquote, q { quotes: none; }
42 blockquote, q { quotes: none; }
43
43
44 blockquote:before, blockquote:after,
44 blockquote:before, blockquote:after,
45 q:before, q:after { content: ""; content: none; }
45 q:before, q:after { content: ""; content: none; }
46
46
47 ins { background-color: #ff9; color: #000; text-decoration: none; }
47 ins { background-color: #ff9; color: #000; text-decoration: none; }
48
48
49 mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
49 mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
50
50
51 del { text-decoration: line-through; }
51 del { text-decoration: line-through; }
52
52
53 abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
53 abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
54
54
55 table { border-collapse: collapse; border-spacing: 0; }
55 table { border-collapse: collapse; border-spacing: 0; }
56
56
57 hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
57 hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
58
58
59 input, select { vertical-align: middle; }
59 input, select { vertical-align: middle; }
60
60
61
61
62 /**
62 /**
63 * Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
63 * Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
64 */
64 */
65
65
66 body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
66 body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
67 select, input, textarea, button { font:99% sans-serif; }
67 select, input, textarea, button { font:99% sans-serif; }
68
68
69 /* Normalize monospace sizing:
69 /* Normalize monospace sizing:
70 en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
70 en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
71 pre, code, kbd, samp { font-family: monospace, sans-serif; }
71 pre, code, kbd, samp { font-family: monospace, sans-serif; }
72
72
73
73
74
74
75 body {
75 body {
76 background-color: white;
76 background-color: white;
77 }
77 }
78
78
79 span#ipython_notebook h1 {
79 span#ipython_notebook h1 {
80 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
80 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
81 font-size: 32pt;
81 font-size: 32pt;
82 padding: 10px;
82 padding: 10px;
83 margin: 10px;
83 margin: 10px;
84 }
84 }
85
85
86
87 div#toolbar {
86 div#toolbar {
88 width: 100%;
87 width: 100%;
89 height: auto;
88 height: auto;
90 border-bottom-width: 2px;
89 border-bottom-width: 2px;
91 border-bottom-style: solid;
90 border-bottom-style: solid;
92 border-bottom-color: black;
91 border-bottom-color: black;
93 padding: 5px;
92 padding: 5px;
94 }
93 }
95
94
96
97 /*#main_toolbar button {
98 font-size: 0.9em;
99 }*/
100
101 div.notebook {
95 div.notebook {
102 width: 790px;
96 width: 790px;
103 height: 100%;
97 height: 650px; /*We might have to detect window height for this*/
98 overflow: auto;
104 margin-left: auto;
99 margin-left: auto;
105 margin-right: auto;
100 margin-right: auto;
106 padding-top: 5px;
101 padding-top: 5px;
107 padding-bottom: 5px;
102 padding-bottom: 5px;
108 background-color: white;
103 background-color: white;
109 }
104 }
110
105
111 div.cell {
106 div.cell {
112 width: 740px;
107 width: 740px;
113 margin: 5px auto 5px 5px;
108 margin: 5px auto 5px 5px;
114 padding: 5px;
109 padding: 5px;
115 position: relative;
110 position: relative;
116 display: table;
111 display: table;
117 }
112 }
118
113
119
120 div.code_cell {
114 div.code_cell {
121 background-color: white;
115 background-color: white;
122 }
116 }
123
117
124 div.prompt {
118 div.prompt {
125 vertical-align: top;
119 vertical-align: top;
126 display: table-cell;
120 display: table-cell;
127 width: 80px;
121 width: 80px;
128 padding: 0px;
122 padding: 0px;
129 margin: 0px;
123 margin: 0px;
130 font-family: Menlo, "Courier New", Courier, mono;
124 font-family: Menlo, "Courier New", Courier, mono;
131 font-weight: normal;
125 font-weight: normal;
132 font-style: normal;
126 font-style: normal;
133 }
127 }
134
128
135 div.input {
129 div.input {
136 display: table-row;
130 display: table-row;
137 padding: 0px;
131 padding: 0px;
138 margin: 0px;
132 margin: 0px;
139 }
133 }
140
134
141 div.input_prompt {
135 div.input_prompt {
142 color: blue;
136 color: blue;
143 }
137 }
144
138
145
146 textarea.input_area {
139 textarea.input_area {
147 text-align: left;
140 text-align: left;
148 font-family: Menlo, "Courier New", Courier, mono;
141 font-family: Menlo, "Courier New", Courier, mono;
149 font-size: inherit;
142 font-size: inherit;
150 border-style: none;
143 border-style: none;
151 display: table-cell;
144 display: table-cell;
152 padding: 0px;
145 padding: 0px;
153 margin: 0px;
146 margin: 0px;
154 overflow: auto;
147 overflow: auto;
155 font-weight: normal;
148 font-weight: normal;
156 font-style: normal;
149 font-style: normal;
157 width: 650px;
150 width: 650px;
158 outline: none;
151 outline: none;
159 resize: none;
152 resize: none;
160 }
153 }
161
154
162
163 div.output {
155 div.output {
164 display: table-row;
156 display: table-row;
165 padding: 0px;
157 padding: 0px;
166 margin: 0px;
158 margin: 0px;
167 }
159 }
168
160
169 div.output_prompt {
161 div.output_prompt {
170 color: red;
162 color: red;
171 }
163 }
172
164
173 div.output_area {
165 div.output_area {
174 text-align: left;
166 text-align: left;
175 font-family: Menlo, "Courier New", Courier, mono;
167 font-family: Menlo, "Courier New", Courier, mono;
176 padding: 0px;
168 padding: 0px;
177 margin: 0px;
169 margin: 0px;
178 display: table-cell;
170 display: table-cell;
179 width: 650px;
171 width: 650px;
180 }
172 }
181
173
182 div.text_cell {
174 div.text_cell {
183 background-color: white;
175 background-color: white;
184 }
176 }
185
177
186 textarea.text_cell_input {
178 textarea.text_cell_input {
187 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
179 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
188 font-size: inherit;
180 font-size: inherit;
189 outline: none;
181 outline: none;
190 resize: none;
182 resize: none;
191 width: inherit;
183 width: inherit;
192 border-style: none;
184 border-style: none;
193 padding: 0;
185 padding: 0;
194 margin: 0;
186 margin: 0;
195 color: black;
187 color: black;
196 }
188 }
197
189
198 div.text_cell_render {
190 div.text_cell_render {
199 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
191 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
200 font-size: inherit;
192 font-size: inherit;
201 outline: none;
193 outline: none;
202 resize: none;
194 resize: none;
203 width: inherit;
195 width: inherit;
204 border-style: none;
196 border-style: none;
205 padding: 0;
197 padding: 0;
206 margin: 0;
198 margin: 0;
207 color: black;
199 color: black;
208 }
200 }
209
201
210 div.text_cell_render em {
202 div.text_cell_render em {
211 font-style: italic;
203 font-style: italic;
212 }
204 }
213
205
214 div.text_cell_render strong {
206 div.text_cell_render strong {
215 font-weight: bold;
207 font-weight: bold;
216 }
208 }
217
209
General Comments 0
You need to be logged in to leave comments. Login now