pacem-less 0.21.0-gerasa → 0.21.0-jericho

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.
@@ -1,27 +1,55 @@
1
1
  @import "../dialog-vars";
2
2
 
3
3
  /*#region LIGHTBOX*/
4
+ @_lbPadding: @grid_spacing;
4
5
 
5
6
  @{P}-lightbox {
6
7
  pointer-events: none;
7
- }
8
8
 
9
- .@{PCSS}-lightbox-wrapper {
10
- z-index: @lightbox_z_index;
11
- box-sizing: border-box;
12
- background-color: transparent;
13
9
 
14
- &.@{PCSS}-shown {
15
- background-color: @color_lightbox_back;
16
- pointer-events: auto;
10
+ .@{PCSS}-lightbox-wrapper {
11
+ z-index: @lightbox_z_index;
12
+ box-sizing: border-box;
13
+ background-color: transparent;
14
+ position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ right: 0;
18
+ bottom: 0;
19
+ padding: @_lbPadding;
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: center;
23
+ justify-content: center;
24
+ // overscroll-behavior: contain;
25
+
26
+ &.@{PCSS}-shown {
27
+ background-color: @color_lightbox_back;
28
+ pointer-events: auto;
29
+ }
30
+
31
+ &.@{PCSS}-hidden {
32
+ }
33
+
34
+ > .@{PCSS}-lightbox {
35
+ width: 100%;
36
+ }
17
37
  }
18
38
 
19
- &.@{PCSS}-hidden {
39
+ &.lightbox-top {
40
+ .@{PCSS}-lightbox-wrapper {
41
+ justify-content: start;
42
+ }
20
43
  }
21
44
 
45
+ &.lightbox-bottom {
46
+ .@{PCSS}-lightbox-wrapper {
47
+ justify-content: end;
48
+ }
49
+ }
22
50
  }
23
51
 
24
- @{P}-lightbox.lightbox-corners .@{PCSS}-lightbox when (@border_radius = 0){
52
+ @{P}-lightbox.lightbox-corners .@{PCSS}-lightbox when (@border_radius = 0) {
25
53
  .Corners(fade(@color_border, 100));
26
54
  }
27
55
 
@@ -30,7 +58,8 @@
30
58
  @_fore_clr: @color_default;
31
59
  color: @_fore_clr;
32
60
  max-width: 80vw;
33
- max-height: 80vh;
61
+ @_totalPad: 2 * @_lbPadding;
62
+ max-height: ~"calc(100vh - @{_totalPad})";
34
63
  //box-sizing: border-box;
35
64
  border-radius: @border_radius;
36
65
 
@@ -45,7 +74,7 @@
45
74
  > .@{PCSS}-scrollable {
46
75
  position: relative;
47
76
  max-width: 80vw;
48
- max-height: 80vh;
77
+ max-height: ~"calc(100vh - @{_totalPad})";
49
78
  border: @lightbox_padding solid transparent; // @_clr;
50
79
  border-top-left-radius: @border_radius;
51
80
  border-top-right-radius: @border_radius;
@@ -66,21 +95,30 @@
66
95
  /*#endregion*/
67
96
 
68
97
  .@{PCSS}-animations {
69
- .@{PCSS}-lightbox-wrapper {
70
- transition: background-color .2s, transform .2s @easing_out_sine .2s;
71
- transform: translateY(@grid_spacing);
72
-
73
- .@{PCSS}-lightbox {
74
- opacity: 0;
75
- transition: opacity .15s, transform .35s @easing_out_sine;
76
- }
77
98
 
78
- &.@{PCSS}-shown {
79
- transition: background-color .4s .1s, transform .2s @easing_out_sine;
80
- transform: none;
99
+ @{P}-lightbox {
100
+ .@{PCSS}-lightbox-wrapper {
101
+ transition: background-color .2s;
81
102
 
82
103
  .@{PCSS}-lightbox {
83
- opacity: 1;
104
+ opacity: 0;
105
+ transition: opacity .15s;
106
+ }
107
+
108
+ &.@{PCSS}-shown {
109
+ transition: background-color .4s .15s;
110
+
111
+ .@{PCSS}-lightbox {
112
+ animation: list-item-bottom .35s both;
113
+ }
114
+ }
115
+ }
116
+
117
+ &.lightbox-top {
118
+ .@{PCSS}-lightbox-wrapper.@{PCSS}-shown {
119
+ .@{PCSS}-lightbox {
120
+ animation-name: list-item;
121
+ }
84
122
  }
85
123
  }
86
124
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.21.0-gerasa",
2
+ "version": "0.21.0-jericho",
3
3
  "name": "pacem-less",
4
4
  "homepage": "https://js.pacem.it",
5
5
  "repository": {