Show More
@@ -1,9 +1,12 b'' | |||
|
1 | 1 | // minimal imports from bootstrap - only variables and mixins |
|
2 | 2 | @import "../components/bootstrap/less/variables.less"; |
|
3 | 3 | @import "../components/bootstrap/less/mixins.less"; |
|
4 | 4 | |
|
5 | // minimal imports from font-awesome | |
|
6 | @import "../components/font-awesome/less/variables.less"; | |
|
7 | ||
|
5 | 8 | // base |
|
6 | 9 | @import "../base/less/style.less"; |
|
7 | 10 | |
|
8 | 11 | // notebook |
|
9 | 12 | @import "../notebook/less/style_noapp.less"; |
@@ -1,286 +1,283 b'' | |||
|
1 | 1 | .widget-area { |
|
2 | 2 | /* |
|
3 | 3 | LESS file that styles IPython notebook widgets and the area they sit in. |
|
4 | 4 | |
|
5 | 5 | The widget area typically looks something like this: |
|
6 | 6 | +------------------------------------------+ |
|
7 | 7 | | widget-area | |
|
8 | 8 | | +--------+---------------------------+ | |
|
9 | 9 | | | prompt | widget-subarea | | |
|
10 | 10 | | | | +--------+ +--------+ | | |
|
11 | 11 | | | | | widget | | widget | | | |
|
12 | 12 | | | | +--------+ +--------+ | | |
|
13 | 13 | | +--------+---------------------------+ | |
|
14 | 14 | +------------------------------------------+ |
|
15 | 15 | */ |
|
16 | 16 | |
|
17 | 17 | page-break-inside : avoid; |
|
18 | 18 | .hbox(); |
|
19 | 19 | |
|
20 | 20 | .widget-subarea { |
|
21 | 21 | padding : 0.44em 0.4em 0.4em 1px; |
|
22 | 22 | margin-left : 6px; |
|
23 | 23 | |
|
24 | 24 | .border-box-sizing(); |
|
25 | 25 | .vbox(); |
|
26 | 26 | .box-flex2(); |
|
27 | 27 | .align-start(); |
|
28 | 28 | } |
|
29 | 29 | |
|
30 | 30 | &.connection-problems .prompt:after { |
|
31 |
content: |
|
|
31 | content: @fa-var-chain-broken; | |
|
32 | 32 | font-family: 'FontAwesome'; |
|
33 | 33 | color: @brand-danger; |
|
34 | padding: 4px; | |
|
35 | position: relative; | |
|
36 | border-radius: 2px; | |
|
37 | font-size: 14px; | |
|
38 | left: 0px; | |
|
34 | font-size: @notebook_font_size; | |
|
39 | 35 | top: 3px; |
|
36 | padding: 3px; | |
|
40 | 37 | } |
|
41 | 38 | } |
|
42 | 39 | |
|
43 | 40 | /* THE CLASSES BELOW CAN APPEAR ANYWHERE IN THE DOM (POSSIBLEY OUTSIDE OF |
|
44 | 41 | THE WIDGET AREA). */ |
|
45 | 42 | |
|
46 | 43 | .slide-track { |
|
47 | 44 | /* Slider Track */ |
|
48 | 45 | border : 1px solid #CCCCCC; |
|
49 | 46 | background : #FFFFFF; |
|
50 | 47 | |
|
51 | 48 | .corner-all(); /* Round the corners of the slide track */ |
|
52 | 49 | } |
|
53 | 50 | |
|
54 | 51 | .widget-hslider { |
|
55 | 52 | /* Horizontal jQuery Slider |
|
56 | 53 | |
|
57 | 54 | Both the horizontal and vertical versions of the slider are characterized |
|
58 | 55 | by a styled div that contains an invisible jQuery slide div which |
|
59 | 56 | contains a visible slider handle div. This is requred so we can control |
|
60 | 57 | how the slider is drawn and 'fix' the issue where the slide handle |
|
61 | 58 | doesn't stop at the end of the slide. |
|
62 | 59 | |
|
63 | 60 | Both horizontal and vertical sliders have this div nesting: |
|
64 | 61 | +------------------------------------------+ |
|
65 | 62 | | widget-(h/v)slider | |
|
66 | 63 | | +--------+---------------------------+ | |
|
67 | 64 | | | ui-slider | | |
|
68 | 65 | | | +------------------+ | | |
|
69 | 66 | | | | ui-slider-handle | | | |
|
70 | 67 | | | +------------------+ | | |
|
71 | 68 | | +--------+---------------------------+ | |
|
72 | 69 | +------------------------------------------+ |
|
73 | 70 | */ |
|
74 | 71 | |
|
75 | 72 | /* Fix the padding of the slide track so the ui-slider is sized |
|
76 | 73 | correctly. */ |
|
77 | 74 | padding-left : 8px; |
|
78 | 75 | padding-right : 5px; |
|
79 | 76 | overflow : visible; |
|
80 | 77 | |
|
81 | 78 | /* Default size of the slider */ |
|
82 | 79 | width : 350px; |
|
83 | 80 | height : 5px; |
|
84 | 81 | max-height : 5px; |
|
85 | 82 | margin-top : 13px; |
|
86 | 83 | margin-bottom: 10px; |
|
87 | 84 | |
|
88 | 85 | /* Style the slider track */ |
|
89 | 86 | .slide-track(); |
|
90 | 87 | |
|
91 | 88 | /* Make the div a flex box (makes FF behave correctly). */ |
|
92 | 89 | .hbox(); |
|
93 | 90 | |
|
94 | 91 | .ui-slider { |
|
95 | 92 | /* Inner, invisible slide div */ |
|
96 | 93 | border : 0px !important; |
|
97 | 94 | background : none !important; |
|
98 | 95 | |
|
99 | 96 | .hbox(); |
|
100 | 97 | .box-flex1(); |
|
101 | 98 | |
|
102 | 99 | .ui-slider-handle { |
|
103 | 100 | width : 14px !important; |
|
104 | 101 | height : 28px !important; |
|
105 | 102 | margin-top : -8px !important; |
|
106 | 103 | } |
|
107 | 104 | |
|
108 | 105 | .ui-slider-range { |
|
109 | 106 | height : 12px !important; |
|
110 | 107 | margin-top : -4px !important; |
|
111 | 108 | } |
|
112 | 109 | } |
|
113 | 110 | } |
|
114 | 111 | |
|
115 | 112 | .widget-vslider { |
|
116 | 113 | /* Vertical jQuery Slider */ |
|
117 | 114 | |
|
118 | 115 | /* Fix the padding of the slide track so the ui-slider is sized |
|
119 | 116 | correctly. */ |
|
120 | 117 | padding-bottom : 8px; |
|
121 | 118 | overflow : visible; |
|
122 | 119 | |
|
123 | 120 | /* Default size of the slider */ |
|
124 | 121 | width : 5px; |
|
125 | 122 | max-width : 5px; |
|
126 | 123 | height : 250px; |
|
127 | 124 | margin-left : 12px; |
|
128 | 125 | |
|
129 | 126 | /* Style the slider track */ |
|
130 | 127 | .slide-track(); |
|
131 | 128 | |
|
132 | 129 | /* Make the div a flex box (makes FF behave correctly). */ |
|
133 | 130 | .vbox(); |
|
134 | 131 | |
|
135 | 132 | .ui-slider { |
|
136 | 133 | /* Inner, invisible slide div */ |
|
137 | 134 | border : 0px !important; |
|
138 | 135 | background : none !important; |
|
139 | 136 | margin-left : -4px; |
|
140 | 137 | margin-top : 5px; |
|
141 | 138 | |
|
142 | 139 | .vbox(); |
|
143 | 140 | .box-flex1(); |
|
144 | 141 | |
|
145 | 142 | .ui-slider-handle { |
|
146 | 143 | width : 28px !important; |
|
147 | 144 | height : 14px !important; |
|
148 | 145 | margin-left : -9px; |
|
149 | 146 | } |
|
150 | 147 | |
|
151 | 148 | .ui-slider-range { |
|
152 | 149 | width : 12px !important; |
|
153 | 150 | margin-left : -1px !important; |
|
154 | 151 | } |
|
155 | 152 | } |
|
156 | 153 | } |
|
157 | 154 | |
|
158 | 155 | .widget-text { |
|
159 | 156 | /* String Textbox - used for TextBoxView and TextAreaView */ |
|
160 | 157 | width : 350px; |
|
161 | 158 | margin : 0px; |
|
162 | 159 | } |
|
163 | 160 | |
|
164 | 161 | .widget-listbox { |
|
165 | 162 | /* Listbox */ |
|
166 | 163 | width : 350px; |
|
167 | 164 | margin-bottom : 0px; |
|
168 | 165 | } |
|
169 | 166 | |
|
170 | 167 | .widget-numeric-text { |
|
171 | 168 | /* Single Line Textbox - used for IntTextView and FloatTextView */ |
|
172 | 169 | width : 150px; |
|
173 | 170 | margin : 0px; |
|
174 | 171 | } |
|
175 | 172 | |
|
176 | 173 | .widget-progress { |
|
177 | 174 | /* Progress Bar */ |
|
178 | 175 | margin-top: 6px; |
|
179 | 176 | width : 350px; |
|
180 | 177 | |
|
181 | 178 | .progress-bar { |
|
182 | 179 | /* Disable progress bar animation */ |
|
183 | 180 | -webkit-transition : none; |
|
184 | 181 | -moz-transition : none; |
|
185 | 182 | -ms-transition : none; |
|
186 | 183 | -o-transition : none; |
|
187 | 184 | transition : none; |
|
188 | 185 | } |
|
189 | 186 | } |
|
190 | 187 | |
|
191 | 188 | .widget-combo-btn { |
|
192 | 189 | /* ComboBox Main Button */ |
|
193 | 190 | min-width : 125px; |
|
194 | 191 | } |
|
195 | 192 | |
|
196 | 193 | .widget_item .dropdown-menu li a { |
|
197 | 194 | color: inherit; |
|
198 | 195 | } |
|
199 | 196 | |
|
200 | 197 | .widget-hbox { |
|
201 | 198 | /* Horizontal widgets */ |
|
202 | 199 | .hbox(); |
|
203 | 200 | |
|
204 | 201 | input[type="checkbox"] { |
|
205 | 202 | margin-top: 9px; |
|
206 | 203 | margin-bottom: 10px; |
|
207 | 204 | } |
|
208 | 205 | |
|
209 | 206 | .widget-label { |
|
210 | 207 | /* Horizontal Label */ |
|
211 | 208 | min-width : 10ex; |
|
212 | 209 | padding-right : 8px; |
|
213 | 210 | padding-top : 5px; |
|
214 | 211 | text-align : right; |
|
215 | 212 | vertical-align : text-top; |
|
216 | 213 | } |
|
217 | 214 | |
|
218 | 215 | .widget-readout { |
|
219 | 216 | padding-left : 8px; |
|
220 | 217 | padding-top : 5px; |
|
221 | 218 | text-align : left; |
|
222 | 219 | vertical-align : text-top; |
|
223 | 220 | } |
|
224 | 221 | } |
|
225 | 222 | |
|
226 | 223 | .widget-vbox { |
|
227 | 224 | /* Vertical widgets */ |
|
228 | 225 | .vbox(); |
|
229 | 226 | |
|
230 | 227 | |
|
231 | 228 | .widget-label { |
|
232 | 229 | /* Vertical Label */ |
|
233 | 230 | padding-bottom : 5px; |
|
234 | 231 | text-align : center; |
|
235 | 232 | vertical-align : text-bottom; |
|
236 | 233 | } |
|
237 | 234 | |
|
238 | 235 | .widget-readout { |
|
239 | 236 | /* Vertical Label */ |
|
240 | 237 | padding-top : 5px; |
|
241 | 238 | text-align : center; |
|
242 | 239 | vertical-align : text-top; |
|
243 | 240 | } |
|
244 | 241 | |
|
245 | 242 | } |
|
246 | 243 | |
|
247 | 244 | .widget-modal { |
|
248 | 245 | /* Box - ModalView */ |
|
249 | 246 | overflow : hidden; |
|
250 | 247 | position : absolute !important; |
|
251 | 248 | top : 0px; |
|
252 | 249 | left : 0px; |
|
253 | 250 | margin-left : 0px !important; |
|
254 | 251 | } |
|
255 | 252 | |
|
256 | 253 | .widget-modal-body { |
|
257 | 254 | /* Box - ModalView Body */ |
|
258 | 255 | max-height: none !important; |
|
259 | 256 | } |
|
260 | 257 | |
|
261 | 258 | .widget-box { |
|
262 | 259 | /* Box */ |
|
263 | 260 | .border-box-sizing(); |
|
264 | 261 | .align-start(); |
|
265 | 262 | } |
|
266 | 263 | |
|
267 | 264 | .widget-radio-box { |
|
268 | 265 | /* Contains RadioButtonsWidget */ |
|
269 | 266 | .vbox(); |
|
270 | 267 | .border-box-sizing(); |
|
271 | 268 | |
|
272 | 269 | padding-top: 4px; |
|
273 | 270 | |
|
274 | 271 | label { |
|
275 | 272 | margin-top: 0px; |
|
276 | 273 | } |
|
277 | 274 | } |
|
278 | 275 | |
|
279 | 276 | .docked-widget-modal { |
|
280 | 277 | /* Horizontal Label */ |
|
281 | 278 | overflow: hidden; |
|
282 | 279 | position: relative !important; |
|
283 | 280 | top: 0px !important; |
|
284 | 281 | left: 0px !important; |
|
285 | 282 | margin-left: 0px !important; |
|
286 | 283 | } |
General Comments 0
You need to be logged in to leave comments.
Login now