Show More
@@ -1,190 +1,192 | |||
|
1 | 1 | div.output_wrapper { |
|
2 | 2 | /* this position must be relative to enable descendents to be absolute within it */ |
|
3 | 3 | position: relative; |
|
4 | 4 | .vbox() |
|
5 | 5 | } |
|
6 | 6 | |
|
7 | 7 | /* class for the output area when it should be height-limited */ |
|
8 | 8 | div.output_scroll { |
|
9 | 9 | /* ideally, this would be max-height, but FF barfs all over that */ |
|
10 | 10 | height: 24em; |
|
11 | 11 | /* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */ |
|
12 | 12 | width: 100%; |
|
13 | 13 | |
|
14 | 14 | overflow: auto; |
|
15 | 15 | .corner-all; |
|
16 | 16 | .box-shadow(inset 0 2px 8px rgba(0, 0, 0, .8)); |
|
17 | 17 | display: block; |
|
18 | 18 | } |
|
19 | 19 | |
|
20 | 20 | /* output div while it is collapsed */ |
|
21 | 21 | div.output_collapsed { |
|
22 | 22 | margin: 0px; |
|
23 | 23 | padding: 0px; |
|
24 | 24 | .vbox(); |
|
25 | 25 | } |
|
26 | 26 | |
|
27 | 27 | div.out_prompt_overlay { |
|
28 | 28 | height: 100%; |
|
29 | 29 | padding: 0px @code_padding; |
|
30 | 30 | position: absolute; |
|
31 | 31 | .corner-all; |
|
32 | 32 | } |
|
33 | 33 | |
|
34 | 34 | div.out_prompt_overlay:hover { |
|
35 | 35 | /* use inner shadow to get border that is computed the same on WebKit/FF */ |
|
36 | 36 | .box-shadow(inset 0 0 1px #000); |
|
37 | 37 | background: rgba(240, 240, 240, 0.5); |
|
38 | 38 | } |
|
39 | 39 | |
|
40 | 40 | div.output_prompt { |
|
41 | 41 | color: @output_prompt_color; |
|
42 | 42 | } |
|
43 | 43 | |
|
44 | 44 | /* This class is the outer container of all output sections. */ |
|
45 | 45 | div.output_area { |
|
46 | 46 | padding: 0px; |
|
47 | 47 | page-break-inside: avoid; |
|
48 | 48 | .hbox(); |
|
49 | 49 | |
|
50 | 50 | .MathJax_Display { |
|
51 | 51 | // Inside a CodeCell, elements are left justified |
|
52 | 52 | text-align: left !important; |
|
53 | 53 | } |
|
54 | 54 | |
|
55 | 55 | .rendered_html { |
|
56 | 56 | // Inside a CodeCell, elements are left justified |
|
57 | 57 | table { |
|
58 | 58 | margin-left: 0; |
|
59 | 59 | margin-right: 0; |
|
60 | 60 | } |
|
61 | 61 | |
|
62 | 62 | img { |
|
63 | 63 | margin-left: 0; |
|
64 | 64 | margin-right: 0; |
|
65 | 65 | } |
|
66 | 66 | } |
|
67 | 67 | } |
|
68 | 68 | |
|
69 | 69 | /* This is needed to protect the pre formating from global settings such |
|
70 | 70 | as that of bootstrap */ |
|
71 | 71 | .output { |
|
72 | 72 | .vbox(); |
|
73 | 73 | } |
|
74 | 74 | |
|
75 | 75 | @media (max-width: @screen-xs-min) { |
|
76 | 76 | // move prompts above output on small screens |
|
77 | 77 | div.output_area { |
|
78 | 78 | .vbox(); |
|
79 | 79 | } |
|
80 | 80 | } |
|
81 | 81 | |
|
82 | 82 | div.output_area pre { |
|
83 | 83 | margin: 0; |
|
84 | 84 | padding: 0; |
|
85 | 85 | border: 0; |
|
86 | 86 | vertical-align: baseline; |
|
87 | 87 | color: @output_pre_color; |
|
88 | 88 | background-color: transparent; |
|
89 | 89 | .border-radius(0); |
|
90 | 90 | } |
|
91 | 91 | |
|
92 | 92 | /* This class is for the output subarea inside the output_area and after |
|
93 | 93 | the prompt div. */ |
|
94 | 94 | div.output_subarea { |
|
95 | // Don't let contents overflow page area. | |
|
96 | overflow-x: auto; | |
|
95 | 97 | padding: @code_padding; |
|
96 | 98 | .box-flex1(); |
|
97 | 99 | } |
|
98 | 100 | |
|
99 | 101 | /* The rest of the output_* classes are for special styling of the different |
|
100 | 102 | output types */ |
|
101 | 103 | |
|
102 | 104 | /* all text output has this class: */ |
|
103 | 105 | div.output_text { |
|
104 | 106 | text-align: left; |
|
105 | 107 | color: @text-color; |
|
106 | 108 | /* This has to match that of the the CodeMirror class line-height below */ |
|
107 | 109 | line-height: @code_line_height; |
|
108 | 110 | } |
|
109 | 111 | |
|
110 | 112 | /* stdout/stderr are 'text' as well as 'stream', but execute_result/error are *not* streams */ |
|
111 | 113 | div.output_stream { |
|
112 | 114 | } |
|
113 | 115 | |
|
114 | 116 | div.output_stdout { |
|
115 | 117 | } |
|
116 | 118 | |
|
117 | 119 | div.output_stderr { |
|
118 | 120 | background: #fdd; /* very light red background for stderr */ |
|
119 | 121 | } |
|
120 | 122 | |
|
121 | 123 | div.output_latex { |
|
122 | 124 | text-align: left; |
|
123 | 125 | } |
|
124 | 126 | |
|
125 | 127 | div.output_html { |
|
126 | 128 | } |
|
127 | 129 | |
|
128 | 130 | div.output_png { |
|
129 | 131 | } |
|
130 | 132 | |
|
131 | 133 | div.output_jpeg { |
|
132 | 134 | } |
|
133 | 135 | |
|
134 | 136 | /* Empty output_javascript divs should have no height */ |
|
135 | 137 | div.output_javascript:empty { |
|
136 | 138 | padding: 0; |
|
137 | 139 | } |
|
138 | 140 | |
|
139 | 141 | .js-error { |
|
140 | 142 | color: darkred; |
|
141 | 143 | } |
|
142 | 144 | |
|
143 | 145 | /* raw_input styles */ |
|
144 | 146 | |
|
145 | 147 | div.raw_input_container { |
|
146 | 148 | font-family: @font-family-monospace; |
|
147 | 149 | // for some reason, em padding doesn't compute the same for raw_input |
|
148 | 150 | // that is not the first input, but px does |
|
149 | 151 | padding-top: 5px; |
|
150 | 152 | } |
|
151 | 153 | |
|
152 | 154 | span.raw_input_prompt { |
|
153 | 155 | /* nothing needed here */ |
|
154 | 156 | } |
|
155 | 157 | |
|
156 | 158 | input.raw_input { |
|
157 | 159 | font-family: inherit; |
|
158 | 160 | font-size: inherit; |
|
159 | 161 | color: inherit; |
|
160 | 162 | width: auto; |
|
161 | 163 | /* make sure input baseline aligns with prompt */ |
|
162 | 164 | vertical-align: baseline; |
|
163 | 165 | /* padding + margin = 0.5em between prompt and cursor */ |
|
164 | 166 | padding: 0em 0.25em; |
|
165 | 167 | margin: 0em 0.25em; |
|
166 | 168 | } |
|
167 | 169 | |
|
168 | 170 | input.raw_input:focus { |
|
169 | 171 | box-shadow: none; |
|
170 | 172 | } |
|
171 | 173 | |
|
172 | 174 | p.p-space { |
|
173 | 175 | margin-bottom: 10px; |
|
174 | 176 | } |
|
175 | 177 | |
|
176 | 178 | div.output_unrecognized { |
|
177 | 179 | padding: 5px; |
|
178 | 180 | font-weight: bold; |
|
179 | 181 | color: red; |
|
180 | 182 | // remove decoration from link |
|
181 | 183 | a { |
|
182 | 184 | color: inherit; |
|
183 | 185 | text-decoration: none; |
|
184 | 186 | |
|
185 | 187 | &:hover { |
|
186 | 188 | color: inherit; |
|
187 | 189 | text-decoration: none; |
|
188 | 190 | } |
|
189 | 191 | } |
|
190 | 192 | } |
General Comments 0
You need to be logged in to leave comments.
Login now