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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99e4ebb7f0f2d77d0f5c8c323999233a3b5b8cb5161dfcd3c0deeacc8d138c01
4
- data.tar.gz: 55628c84f306d3d3627893b8da7c89c763bc2e0312254f729a97d3f05be9f644
3
+ metadata.gz: a5d079325fb3e7f9c569a9b6f6464acdea142a579faffb2b7d0d852e424b3f95
4
+ data.tar.gz: 0f266e14489ee38e4876e741fbe00e50555c4ed006aa6775d7a303bec6cb0f8f
5
5
  SHA512:
6
- metadata.gz: 4fb8a496f2664d3de351670682570e55ffe3aa448b866c4f4fe1ab5b09e08b7a8ec92d2c75c5afa1510c1d0db1058c434be50f0e2e5afdd0cc5ccba0ba7de5ac
7
- data.tar.gz: 5f1f5f3590aa7046421212fc371e2d1f26520b70307e998a14ed4150850c59a845d0c34b25aa1d1b0bf19b238fb78c48f04ced2f69307e47a2c06f4dd5b0a2ab
6
+ metadata.gz: 051fcfd3cb7432499bd878d9fd921b7f033ac7b940af270fedee777d3ff76fe3df1ebcdb53f256a119a2d665327453eb7254f10687dd0b44dc04797ac1495d1f
7
+ data.tar.gz: 62725ca8f8bae9d37b50d577bf15def866e3b3887ce6fcaed2d95b700477f873d69e038a62a017d8395181d852a568df9ec1d1fd986cb0a105def190c869d809
@@ -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
- text-align: center; }
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
- justify-content: center; }
84
- up-modal[nesting="0"] up-modal-viewport {
85
- padding: 25px 15px; }
86
- up-modal[nesting="1"] up-modal-viewport {
87
- padding: 50px 30px; }
88
- up-modal[nesting="2"] up-modal-viewport {
89
- padding: 75px 45px; }
90
- up-modal[nesting="3"] up-modal-viewport {
91
- padding: 100px 60px; }
92
- up-modal[nesting="4"] up-modal-viewport {
93
- padding: 125px 75px; }
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
- text-align: left; }
112
+ justify-content: flex-start; }
112
113
  up-drawer[position=right] up-drawer-viewport {
113
- text-align: right; }
114
+ justify-content: flex-end; }
114
115
 
115
116
  up-drawer-box {
116
117
  min-height: 100vh; }
@@ -8,7 +8,7 @@
8
8
  @module up
9
9
  */
10
10
  window.up = {
11
- version: '2.5.1'
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);