|
31 | 31 | @thumb-size: 12px;
|
32 | 32 | @track-height: 4px;
|
33 | 33 |
|
| 34 | +/* The range element has a larger interactive area than its visible size. |
| 35 | + * This value should always be greater than @thumb-size. */ |
| 36 | +@touchable-size: 40px; |
| 37 | + |
34 | 38 | /* The range container is the div that contains a range element.
|
35 | 39 | * This div will act as a virtual track to allow us to style the track space.
|
36 | 40 | * An actual track still exists inside the range element, but is transparent. */
|
|
106 | 110 | /* Overlay and fill the container div. */
|
107 | 111 | .overlay-child();
|
108 | 112 |
|
109 |
| - /* The range element should be big enough to contain the thumb without |
110 |
| - * clipping it. It is very tricky to make the thumb show outside the track |
111 |
| - * on IE 11. */ |
112 |
| - height: @thumb-size; |
| 113 | + /* The range element should have a minimum touchable height for |
| 114 | + * accessibility. */ |
| 115 | + height: @touchable-size; |
113 | 116 |
|
114 | 117 | /* Position the top of the range element so that it is centered on the
|
115 |
| - * container. Note that the container is actually smaller than the thumb. */ |
116 |
| - top: calc((@track-height - @thumb-size) / 2); |
| 118 | + * container. Note that the container is actually smaller than the |
| 119 | + * touchable-size. */ |
| 120 | + top: calc((@track-height - @touchable-size) / 2); |
117 | 121 |
|
118 | 122 | /* Make sure clicking at the very top of the bar still takes effect and is not
|
119 | 123 | * confused with clicking the video to play/pause it. */
|
|
191 | 195 | .show-when-controls-shown();
|
192 | 196 | top: 5px;
|
193 | 197 | height: 5px;
|
194 |
| - margin-bottom: 0; |
| 198 | + |
| 199 | + /* add spacing between seek-bar-container and controls-button-panel */ |
| 200 | + margin-bottom: @track-height; |
| 201 | + |
195 | 202 | background-clip: padding-box !important;
|
196 | 203 | border-top: 4px solid transparent;
|
197 | 204 | border-bottom: 4px solid transparent;
|
198 | 205 |
|
| 206 | + /* Decrease the z-index of shaka-seek-bar-container to prevent convering the |
| 207 | + * controls button panel */ |
| 208 | + z-index: -1; |
| 209 | + |
199 | 210 | .shaka-seek-bar {
|
200 | 211 | transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 250ms;
|
201 | 212 | opacity: 0;
|
|
0 commit comments