2
2
* OverlayScrollbars
3
3
* https://github.com/KingSora/OverlayScrollbars
4
4
*
5
- * Version: 1.10.3
5
+ * Version: 1.11.0
6
6
*
7
7
* Copyright KingSora | Rene Haas.
8
8
* https://github.com/KingSora
9
9
*
10
10
* Released under the MIT license.
11
- * Date: 02 .02.2020
11
+ * Date: 29 .02.2020
12
12
*/
13
13
14
14
/*
@@ -96,6 +96,21 @@ body.os-dragging * {
96
96
height : 200% ;
97
97
margin : 10px 0 ;
98
98
}
99
+ /* fix restricted measuring */
100
+ # os-dummy-scrollbar-size : before ,
101
+ # os-dummy-scrollbar-size : after ,
102
+ .os-content : before ,
103
+ .os-content : after {
104
+ content : '' ;
105
+ display : table;
106
+ width : 0.01px ;
107
+ height : 0.01px ;
108
+ line-height : 0 ;
109
+ font-size : 0 ;
110
+ flex-grow : 0 ;
111
+ flex-shrink : 0 ;
112
+ visibility : hidden;
113
+ }
99
114
# os-dummy-scrollbar-size ,
100
115
.os-viewport {
101
116
-ms-overflow-style : scrollbar !important ;
@@ -172,15 +187,6 @@ body.os-dragging * {
172
187
width : 100% ;
173
188
visibility : visible;
174
189
}
175
- .os-content : before ,
176
- .os-content : after {
177
- content : '' ;
178
- display : table;
179
- width : 0 ;
180
- height : 0 ;
181
- line-height : 0 ;
182
- font-size : 0 ;
183
- }
184
190
.os-content > .os-textarea {
185
191
box-sizing : border-box !important ;
186
192
direction : inherit !important ;
@@ -246,7 +252,7 @@ body.os-dragging * {
246
252
.os-resize-observer-host {
247
253
box-sizing : inherit;
248
254
display : block;
249
- opacity : 0 ;
255
+ visibility : hidden ;
250
256
position : absolute;
251
257
top : 0 ;
252
258
left : 0 ;
@@ -263,11 +269,7 @@ body.os-dragging * {
263
269
border-style : solid;
264
270
box-sizing : border-box;
265
271
}
266
- .os-resize-observer-host : after {
267
- content : '' ;
268
- }
269
- .os-resize-observer-host > .os-resize-observer ,
270
- .os-resize-observer-host : after {
272
+ .os-resize-observer-host > .os-resize-observer {
271
273
height : 200% ;
272
274
width : 200% ;
273
275
padding : inherit;
@@ -276,9 +278,17 @@ body.os-dragging * {
276
278
display : block;
277
279
box-sizing : content-box;
278
280
}
279
- .os-resize-observer .observed ,
280
- object .os-resize-observer {
281
- box-sizing : border-box !important ;
281
+ .os-resize-observer-host .observed {
282
+ display : flex;
283
+ flex-direction : column;
284
+ justify-content : flex-start;
285
+ align-items : flex-start;
286
+ }
287
+ .os-resize-observer-host .observed > .os-resize-observer {
288
+ position : relative;
289
+ flex-grow : 1 ;
290
+ flex-shrink : 0 ;
291
+ flex-basis : auto;
282
292
}
283
293
.os-size-auto-observer {
284
294
box-sizing : inherit !important ;
@@ -334,8 +344,27 @@ object.os-resize-observer {
334
344
.os-resize-observer {
335
345
-webkit-animation-duration : 0.001s ;
336
346
animation-duration : 0.001s ;
337
- -webkit-animation-name : hs-resize-observer-dummy-animation;
338
- animation-name : hs-resize-observer-dummy-animation;
347
+ -webkit-animation-name : os-resize-observer-dummy-animation;
348
+ animation-name : os-resize-observer-dummy-animation;
349
+ }
350
+ object .os-resize-observer {
351
+ box-sizing : border-box !important ;
352
+ }
353
+ @-webkit-keyframes os-resize-observer-dummy-animation {
354
+ from {
355
+ z-index : 0 ;
356
+ }
357
+ to {
358
+ z-index : -1 ;
359
+ }
360
+ }
361
+ @keyframes os-resize-observer-dummy-animation {
362
+ from {
363
+ z-index : 0 ;
364
+ }
365
+ to {
366
+ z-index : -1 ;
367
+ }
339
368
}
340
369
341
370
/*
@@ -468,22 +497,6 @@ html.os-html > .os-host > .os-scrollbar {
468
497
}
469
498
.os-host-overflow-y {
470
499
}
471
- @-webkit-keyframes hs-resize-observer-dummy-animation {
472
- from {
473
- z-index : 0 ;
474
- }
475
- to {
476
- z-index : -1 ;
477
- }
478
- }
479
- @keyframes hs-resize-observer-dummy-animation {
480
- from {
481
- z-index : 0 ;
482
- }
483
- to {
484
- z-index : -1 ;
485
- }
486
- }
487
500
488
501
/*
489
502
THEMES:
0 commit comments