unpoly-rails 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/unpoly/unpoly.css +18 -17
- data/assets/unpoly/unpoly.es5.js +1 -6
- data/assets/unpoly/unpoly.es5.min.js +1 -1
- data/assets/unpoly/unpoly.js +1 -6
- data/assets/unpoly/unpoly.min.css +1 -1
- data/assets/unpoly/unpoly.min.js +1 -1
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5d079325fb3e7f9c569a9b6f6464acdea142a579faffb2b7d0d852e424b3f95
|
|
4
|
+
data.tar.gz: 0f266e14489ee38e4876e741fbe00e50555c4ed006aa6775d7a303bec6cb0f8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 051fcfd3cb7432499bd878d9fd921b7f033ac7b940af270fedee777d3ff76fe3df1ebcdb53f256a119a2d665327453eb7254f10687dd0b44dc04797ac1495d1f
|
|
7
|
+
data.tar.gz: 62725ca8f8bae9d37b50d577bf15def866e3b3887ce6fcaed2d95b700477f873d69e038a62a017d8395181d852a568df9ec1d1fd986cb0a105def190c869d809
|
data/assets/unpoly/unpoly.css
CHANGED
|
@@ -53,11 +53,10 @@ up-modal-viewport, up-drawer-viewport, up-cover-viewport {
|
|
|
53
53
|
overflow-y: scroll;
|
|
54
54
|
overflow-x: hidden;
|
|
55
55
|
overscroll-behavior: contain;
|
|
56
|
-
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center; }
|
|
57
58
|
|
|
58
59
|
up-modal-box, up-drawer-box, up-cover-box, up-popup {
|
|
59
|
-
display: inline-block;
|
|
60
|
-
text-align: left;
|
|
61
60
|
position: relative;
|
|
62
61
|
box-sizing: border-box;
|
|
63
62
|
max-width: 100%;
|
|
@@ -79,18 +78,20 @@ up-modal-dismiss, up-drawer-dismiss, up-cover-dismiss, up-popup-dismiss {
|
|
|
79
78
|
font-size: 1.7rem;
|
|
80
79
|
line-height: 0.5; }
|
|
81
80
|
|
|
82
|
-
up-modal-viewport {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
up-modal[nesting="0"] up-modal-viewport {
|
|
82
|
+
padding: 25px 15px; }
|
|
83
|
+
|
|
84
|
+
up-modal[nesting="1"] up-modal-viewport {
|
|
85
|
+
padding: 50px 30px; }
|
|
86
|
+
|
|
87
|
+
up-modal[nesting="2"] up-modal-viewport {
|
|
88
|
+
padding: 75px 45px; }
|
|
89
|
+
|
|
90
|
+
up-modal[nesting="3"] up-modal-viewport {
|
|
91
|
+
padding: 100px 60px; }
|
|
92
|
+
|
|
93
|
+
up-modal[nesting="4"] up-modal-viewport {
|
|
94
|
+
padding: 125px 75px; }
|
|
94
95
|
|
|
95
96
|
up-modal[size=small] up-modal-box {
|
|
96
97
|
width: 350px; }
|
|
@@ -108,9 +109,9 @@ up-modal[size=full] up-modal-box {
|
|
|
108
109
|
width: 100%; }
|
|
109
110
|
|
|
110
111
|
up-drawer-viewport {
|
|
111
|
-
|
|
112
|
+
justify-content: flex-start; }
|
|
112
113
|
up-drawer[position=right] up-drawer-viewport {
|
|
113
|
-
|
|
114
|
+
justify-content: flex-end; }
|
|
114
115
|
|
|
115
116
|
up-drawer-box {
|
|
116
117
|
min-height: 100vh; }
|
data/assets/unpoly/unpoly.es5.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@module up
|
|
9
9
|
*/
|
|
10
10
|
window.up = {
|
|
11
|
-
version: '2.5.
|
|
11
|
+
version: '2.5.2'
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
|
|
@@ -11604,11 +11604,6 @@ up.ScrollMotion = /** @class */ (function () {
|
|
|
11604
11604
|
if (this.settled) {
|
|
11605
11605
|
return;
|
|
11606
11606
|
}
|
|
11607
|
-
// When the scroll position is not the one we previously set, we assume
|
|
11608
|
-
// that the user has tried scrolling on her own. We then cancel the scrolling animation.
|
|
11609
|
-
if (this.frameTop && (Math.abs(this.frameTop - this.scrollable.scrollTop) > 1.5)) {
|
|
11610
|
-
this.abort('Animation aborted due to user intervention');
|
|
11611
|
-
}
|
|
11612
11607
|
var currentTime = Date.now();
|
|
11613
11608
|
var timeElapsed = currentTime - this.startTime;
|
|
11614
11609
|
var timeFraction = Math.min(timeElapsed / this.duration, 1);
|