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