Skip to content

Commit 97ca9f7

Browse files
committed
Base line and size fixes for progress bars
1 parent 905333a commit 97ca9f7

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

ipywidgets/static/widgets/less/widgets.less

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,27 +147,28 @@
147147

148148
.widget-vslider {
149149
/* Vertical jQuery Slider */
150-
width: 50px;
151-
150+
width: 50px;
151+
height: 250px;
152+
152153
.slider-container {
153-
/* Fix the padding of the slide track so the ui-slider is sized
154+
/* Fix the padding of the slide track so the ui-slider is sized
154155
correctly. */
155156
padding-bottom : 5px;
156-
overflow : visible;
157+
overflow : visible;
158+
flex-grow: 1;
157159

158160
/* Default size of the slider */
159161
width : 5px;
160-
max-width : 5px;
161-
height : 250px;
162-
margin-left : auto;
163-
margin-right : auto;
164-
162+
max-width : 5px;
163+
margin-left : auto;
164+
margin-right : auto;
165+
165166
/* Style the slider track */
166167
.slide-track();
167168

168169
/* Make the div a flex box (makes FF behave correctly). */
169170
.vbox();
170-
171+
171172
.ui-slider {
172173
/* Inner, invisible slide div */
173174
.vbox();
@@ -301,10 +302,12 @@
301302
.widget-hprogress {
302303
/* Progress Bar */
303304
width : @widget-width;
304-
margin-top: 8px;
305+
height: 32px;
305306

306307
.progress {
307308
flex-grow: 1;
309+
margin-top: auto;
310+
margin-bottom: auto;
308311
}
309312

310313
.progress-bar {
@@ -319,12 +322,15 @@
319322

320323
.widget-vprogress {
321324
/* Progress Bar */
322-
margin-top: 8px;
323-
min-height: 250px;
324-
width: 12px;
325+
height: 250px;
326+
width: 50px;
325327

326328
.progress {
327329
flex-grow: 1;
330+
width: 12px;
331+
margin-left: auto;
332+
margin-right: auto;
333+
margin-bottom: 0;
328334
}
329335

330336
.progress-bar {

0 commit comments

Comments
 (0)