@lemonadejs/modal 2.3.3 → 2.3.6

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.
package/dist/style.css CHANGED
@@ -1,121 +1,125 @@
1
- .lm-modal {
2
- position: absolute;
3
- min-width: 300px;
4
- min-height: 240px;
5
- border-radius: 5px;
6
- z-index: 9;
7
- background-color: #fff;
8
- box-sizing: border-box;
9
- box-shadow: 1px 1px 5px 1px rgba(0,0,0,.1);
10
- opacity: 1;
11
- transition: opacity 0.5s ease;
12
- will-change: transform;
13
- border: 1px solid #e9e9e9;
14
- }
15
-
16
- .lm-modal-layers:focus {
17
- z-index: 10;
18
- }
19
-
20
- .lm-modal[data-responsive] {
21
- width: 100% !important;
22
- bottom: 0;
23
- left: 0;
24
- border: 0;
25
- border-radius: 0;
26
- transform: none;
27
- animation: slide-bottom-in 0.4s forwards;
28
- }
29
-
30
- .lm-modal[data-responsive].fullscreen {
31
- top: 0;
32
- height: 100% !important;
33
- }
34
-
35
- .lm-modal.moving {
36
- cursor: move !important;
37
- }
38
-
39
- .lm-modal-picker {
40
- width: 100% !important;
41
- height: 260px !important;
42
- left: 0;
43
- bottom: 0;
44
- border: 0;
45
- border-radius: 0;
46
- transform: none;
47
- }
48
-
49
- .lm-modal-center {
50
- display: flex;
51
- justify-content: center;
52
- align-items: center;
53
- }
54
-
55
- .lm-modal[title]::before {
56
- content: attr(title);
57
- display: block;
58
- position: relative;
59
- width: 100%;
60
- border-bottom: 1px solid #e9e9e9;
61
- padding: 10px;
62
- box-sizing: border-box;
63
- font-size: 1.2em;
64
- line-height: 24px;
65
- }
66
-
67
- .lm-modal::after {
68
- font-family: 'Material Icons';
69
- cursor: pointer;
70
- }
71
-
72
- .lm-modal[closable="true"]::after {
73
- content: 'close';
74
- display: block;
75
- position: absolute;
76
- top: 10px;
77
- right: 10px;
78
- font-size: 24px;
79
- }
80
-
81
- .lm-modal[minimizable="true"]::after {
82
- content: '\2500';
83
- display: block;
84
- position: absolute;
85
- top: 10px;
86
- right: 10px;
87
- font-size: 24px;
88
- }
89
-
90
- .lm-modal[title=""]::before {
91
- display: none;
92
- }
93
-
94
- .lm-modal[closed="true"] {
95
- display: none !important;
96
- }
97
-
98
- .lm-modal[minimized="true"] {
99
- bottom: 0;
100
- top: initial !important;
101
- left: initial !important;
102
- width: 200px !important;
103
- height: 45px !important;
104
- min-width: initial;
105
- min-height: initial;
106
- overflow: hidden;
107
- transition: margin 0.2s ease-in-out;
108
- }
109
-
110
- .lm-modal[minimized="true"]::after {
111
- content: 'open_in_full';
112
- }
113
-
114
- @keyframes slide-bottom-in {
115
- 0% { transform: translateY(100%); }
116
- 100% { transform: translateY(0%); }
117
- }
118
-
119
- .lm-modal.hide {
120
- opacity: 0;
1
+ .lm-modal {
2
+ position: absolute;
3
+ min-width: 300px;
4
+ min-height: 240px;
5
+ border-radius: 5px;
6
+ z-index: 15;
7
+ background-color: #fff;
8
+ box-sizing: border-box;
9
+ box-shadow: 0 0 12px rgb(0 0 0 / 22%);
10
+ opacity: 1;
11
+ transition: opacity 0.5s ease;
12
+ will-change: transform;
13
+ border: 1px solid #bbb;
14
+ outline: none;
15
+ }
16
+
17
+ .lm-modal[center] {
18
+ position: fixed;
19
+ }
20
+
21
+ .lm-modal-backdrop {
22
+ position: fixed;
23
+ top: 0;
24
+ left: 0;
25
+ width: 100vw;
26
+ height: 100vh;
27
+ background-color: #00000020;
28
+ z-index: 999;
29
+ }
30
+
31
+ .lm-modal-layers:focus {
32
+ z-index: 999;
33
+ }
34
+
35
+ .lm-modal-animation {
36
+ transform: none;
37
+ animation: slide-bottom-in 0.4s forwards;
38
+ }
39
+
40
+ .lm-modal[data-responsive].fullscreen {
41
+ top: 0;
42
+ height: 100% !important;
43
+ }
44
+
45
+ .lm-modal.moving {
46
+ cursor: move !important;
47
+ }
48
+
49
+ .lm-modal-picker {
50
+ width: 100% !important;
51
+ height: 260px !important;
52
+ left: 0;
53
+ bottom: 0;
54
+ border: 0;
55
+ border-radius: 0;
56
+ transform: none;
57
+ }
58
+
59
+ .lm-modal[title]::before {
60
+ content: attr(title);
61
+ display: block;
62
+ position: relative;
63
+ width: 100%;
64
+ border-bottom: 1px solid #e9e9e9;
65
+ padding: 10px;
66
+ box-sizing: border-box;
67
+ font-size: 1.2em;
68
+ line-height: 24px;
69
+ }
70
+
71
+ .lm-modal::after {
72
+ font-family: 'Material Icons';
73
+ cursor: pointer;
74
+ }
75
+
76
+ .lm-modal[closable="true"]::after {
77
+ content: 'close';
78
+ display: block;
79
+ position: absolute;
80
+ top: 10px;
81
+ right: 10px;
82
+ font-size: 24px;
83
+ }
84
+
85
+ .lm-modal[minimizable="true"]::after {
86
+ content: '\2500';
87
+ display: block;
88
+ position: absolute;
89
+ top: 10px;
90
+ right: 10px;
91
+ font-size: 24px;
92
+ }
93
+
94
+ .lm-modal[title=""]::before {
95
+ display: none;
96
+ }
97
+
98
+ .lm-modal[closed="true"] {
99
+ display: none !important;
100
+ }
101
+
102
+ .lm-modal[minimized="true"] {
103
+ bottom: 0;
104
+ top: initial !important;
105
+ left: initial !important;
106
+ width: 200px !important;
107
+ height: 45px !important;
108
+ min-width: initial;
109
+ min-height: initial;
110
+ overflow: hidden;
111
+ transition: margin 0.2s ease-in-out;
112
+ }
113
+
114
+ .lm-modal[minimized="true"]::after {
115
+ content: 'open_in_full';
116
+ }
117
+
118
+ @keyframes slide-bottom-in {
119
+ 0% { transform: translateY(100%); }
120
+ 100% { transform: translateY(0%); }
121
+ }
122
+
123
+ .lm-modal.hide {
124
+ opacity: 0;
121
125
  }
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
- {
2
- "name": "@lemonadejs/modal",
3
- "title": "JavaScript Modal",
4
- "description": "LemonadeJS modal is a JavaScript component to create floating modals.",
5
- "author": {
6
- "name": "Contact <contact@lemonadejs.net>",
7
- "url": "https://lemonadejs.net"
8
- },
9
- "keywords": [
10
- "javascript modal",
11
- "lemonadejs modal",
12
- "js modal",
13
- "modal js"
14
- ],
15
- "dependencies": {
16
- "lemonadejs": "^3.4.0"
17
- },
18
- "main": "dist/index.js",
19
- "types": "dist/index.d.ts",
20
- "version": "2.3.3"
21
- }
1
+ {
2
+ "name": "@lemonadejs/modal",
3
+ "title": "JavaScript Modal",
4
+ "description": "LemonadeJS modal is a JavaScript component to create floating modals.",
5
+ "author": {
6
+ "name": "Contact <contact@lemonadejs.net>",
7
+ "url": "https://lemonadejs.net"
8
+ },
9
+ "keywords": [
10
+ "javascript modal",
11
+ "lemonadejs modal",
12
+ "js modal",
13
+ "modal js"
14
+ ],
15
+ "dependencies": {
16
+ "lemonadejs": "^3.4.0"
17
+ },
18
+ "main": "dist/index.js",
19
+ "types": "dist/index.d.ts",
20
+ "version": "2.3.6"
21
+ }