Skip to content

Commit 8a9f312

Browse files
committed
version 1.11.0
1 parent 7b57bc7 commit 8a9f312

8 files changed

+268
-246
lines changed

css/OverlayScrollbars.css

+51-38
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
* OverlayScrollbars
33
* https://github.com/KingSora/OverlayScrollbars
44
*
5-
* Version: 1.10.3
5+
* Version: 1.11.0
66
*
77
* Copyright KingSora | Rene Haas.
88
* https://github.com/KingSora
99
*
1010
* Released under the MIT license.
11-
* Date: 02.02.2020
11+
* Date: 29.02.2020
1212
*/
1313

1414
/*
@@ -96,6 +96,21 @@ body.os-dragging * {
9696
height: 200%;
9797
margin: 10px 0;
9898
}
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+
}
99114
#os-dummy-scrollbar-size,
100115
.os-viewport {
101116
-ms-overflow-style: scrollbar !important;
@@ -172,15 +187,6 @@ body.os-dragging * {
172187
width: 100%;
173188
visibility: visible;
174189
}
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-
}
184190
.os-content > .os-textarea {
185191
box-sizing: border-box !important;
186192
direction: inherit !important;
@@ -246,7 +252,7 @@ body.os-dragging * {
246252
.os-resize-observer-host {
247253
box-sizing: inherit;
248254
display: block;
249-
opacity: 0;
255+
visibility: hidden;
250256
position: absolute;
251257
top: 0;
252258
left: 0;
@@ -263,11 +269,7 @@ body.os-dragging * {
263269
border-style: solid;
264270
box-sizing: border-box;
265271
}
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 {
271273
height: 200%;
272274
width: 200%;
273275
padding: inherit;
@@ -276,9 +278,17 @@ body.os-dragging * {
276278
display: block;
277279
box-sizing: content-box;
278280
}
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;
282292
}
283293
.os-size-auto-observer {
284294
box-sizing: inherit !important;
@@ -334,8 +344,27 @@ object.os-resize-observer {
334344
.os-resize-observer {
335345
-webkit-animation-duration: 0.001s;
336346
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+
}
339368
}
340369

341370
/*
@@ -468,22 +497,6 @@ html.os-html > .os-host > .os-scrollbar {
468497
}
469498
.os-host-overflow-y {
470499
}
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-
}
487500

488501
/*
489502
THEMES:

css/OverlayScrollbars.min.css

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)