pacem-less 0.60.3-neumann → 0.60.3-turing

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.
@@ -5,12 +5,18 @@
5
5
  .Inert();
6
6
  }
7
7
 
8
- .@{PCSS}-swipe-lock {
9
- //transition: transform 1s linear;
8
+ .@{PCSS}-swipe {
9
+ /* Prevents the browser from handling scrolling, letting JS capture the swipe. */
10
+ touch-action: none;
11
+ }
12
+
13
+ /*.@{PCSS}-swipe-lock {
14
+ user-select: none;
10
15
  }
11
16
  .@{PCSS}-swipe-go {
12
-
17
+ transition: transform .1s @easing_out_sine;
13
18
  }
19
+
14
20
  .@{PCSS}-swipe-back {
15
21
  transition: transform .3s @easing_out_back;
16
- }
22
+ }*/
package/pacem/pacem.less CHANGED
@@ -396,6 +396,15 @@ each(range(12), {
396
396
  --@{PCSS}-color-balloon-emphasis: @color_contextmenu_hover_back;
397
397
  --@{PCSS}-balloon-tail-size: @balloon_pointer_size;
398
398
  --@{PCSS}-balloon-tail-inset: @balloon_pointer_inset;
399
+ // animation
400
+ --@{PCSS}-easing-in-sine: @easing_in_sine;
401
+ --@{PCSS}-easing-out-sine: @easing_out_sine;
402
+ --@{PCSS}-easing-in-out-sine: @easing_in_out_sine;
403
+ --@{PCSS}-easing-in-out-extreme: @easing_in_out_extreme;
404
+ --@{PCSS}-easing-in-back: @easing_in_back;
405
+ --@{PCSS}-easing-out-back: @easing_out_back;
406
+ --@{PCSS}-easing-out-back2: @easing_out_back_custom;
407
+ --@{PCSS}-easing-out-bump: @easing_out_bump;
399
408
  /* #region deprecated */
400
409
  --color-background: @color_background;
401
410
  --color-root: @color_root_background;
@@ -0,0 +1,69 @@
1
+ @import "../shared";
2
+
3
+ @{P}-bottom-sheet-handle {
4
+ display: block;
5
+ cursor: pointer;
6
+ height: ~"var(--@{PCSS}-layout-footer-height)";
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ touch-action: none;
11
+
12
+ > * {
13
+ pointer-events: none;
14
+ }
15
+ }
16
+
17
+ @{P}-bottom-sheet {
18
+ position: fixed;
19
+ top: 0;
20
+ left: 0;
21
+ bottom: 0;
22
+ right: 0;
23
+ overflow: hidden;
24
+ display: flex;
25
+ z-index: @lightbox-z-index + 1;
26
+ align-items: start;
27
+ justify-content: stretch;
28
+ pointer-events: none;
29
+
30
+ > .bottom-sheet {
31
+ pointer-events: auto;
32
+ overflow: auto;
33
+ max-height: 100vh;
34
+ width: 100%;
35
+ outline: none;
36
+ -webkit-tap-highlight-color: transparent;
37
+ //transform: var(~"--@{PCSS}-bottom-sheet-transform", translate3d(0, calc(100% - ~"var(--@{PCSS}-bottom-sheet-handle-height)"), 0));
38
+ transform: translate3d(0, calc(100vh - ~"var(--@{PCSS}-layout-footer-height)"), 0);
39
+ }
40
+
41
+ &.bottom-sheet-open {
42
+ pointer-events: auto;
43
+ .Blur(6px);
44
+
45
+ > .bottom-sheet {
46
+ // transform: var(~"--@{PCSS}-bottom-sheet-transform", translate3d(0, max(calc(-100vh + ~"var(--@{PCSS}-layout-header-height)"), 0), 0));
47
+ transform: translate3d(0, max(~"var(--@{PCSS}-layout-header-height)", calc(100vh - 100%)), 0);
48
+ }
49
+ }
50
+ }
51
+
52
+
53
+ // animations
54
+ .@{PCSS}-animations {
55
+
56
+ @{P}-bottom-sheet {
57
+ transition-property: backdrop-filter;
58
+ transition-duration: .175s;
59
+ transition-timing-function: linear;
60
+ transition-delay: 0s;
61
+
62
+ > .bottom-sheet {
63
+ transition-property: transform;
64
+ transition-timing-function: @easing_in_out_sine;
65
+ transition-duration: .3s;
66
+ transition-delay: 0s;
67
+ }
68
+ }
69
+ }
@@ -78,4 +78,5 @@
78
78
  @import "sticky-header";
79
79
  @import "blade";
80
80
  @import "divider";
81
- @import "ticker";
81
+ @import "ticker";
82
+ @import "bottom-sheet";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.60.3-neumann",
2
+ "version": "0.60.3-turing",
3
3
  "name": "pacem-less",
4
4
  "homepage": "https://js.pacem.it",
5
5
  "repository": {