@daracl/dialog 0.0.7 → 0.0.9

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,307 +0,0 @@
1
- @import "_icon.scss";
2
-
3
- daracl-dialog-hidden {
4
- visibility: visible;
5
- width: 0px;
6
- height: 0px;
7
- z-index: 1000;
8
- }
9
-
10
- daracl-dialog-overlay {
11
- background: #aaaaaa;
12
- opacity: 0.3;
13
- position: fixed;
14
- top: 0;
15
- left: 0;
16
- width: 100%;
17
- height: 100%;
18
- }
19
-
20
- daracl-dialog-wrapper {
21
- --dark: #155724;
22
- --light: #ffffff;
23
- --font-color: #000000;
24
- --bg-color: #ffffff;
25
- --bg-header: #ffffff;
26
- --border: #e6e6e6;
27
- --bg-header-color: #f5f5f5;
28
-
29
-
30
-
31
- z-index: 10000;
32
- position: fixed;
33
- width: 400px;
34
- color: var(--font-color);
35
- top: 45%;
36
- left: 50%;
37
- transform: translate(-50%, -50%);
38
-
39
- * {
40
- box-sizing: border-box;
41
- }
42
-
43
- &.hide {
44
- display: none;
45
- }
46
-
47
- &.transform-disable {
48
- transform: none !important;
49
- }
50
-
51
- &.move-on {
52
- .dialog-move-overay {
53
- display: block !important;
54
- }
55
-
56
- .resizer {
57
- display: none;
58
- position: relative;
59
- z-index: 0;
60
- }
61
- }
62
-
63
- &.maximise {
64
- width: calc(100% - 6px) !important;
65
- height: calc(100% - 6px) !important;
66
- top: 3px !important;
67
- left: 3px !important;
68
- transform: initial;
69
-
70
- .resizer {
71
- display: none;
72
- }
73
-
74
- .dialog-header {
75
- cursor: default !important;
76
- }
77
- }
78
-
79
- daracl-dialog {
80
- border: 1px solid var(--border);
81
- border-radius: 4px;
82
- height: 100%;
83
- position: relative;
84
- background: var(--bg-color);
85
-
86
- > .dialog-header {
87
- width: 100%;
88
- height: 40px;
89
- padding: 10px 30px 10px 20px;
90
- background: var(--bg-header-color);
91
- border: var(--border);
92
- border-radius: 4px 4px 0px 0px;
93
- cursor: move;
94
- > .dialog-title {
95
- }
96
-
97
- > .btn-area {
98
- position: absolute;
99
- top: 10px;
100
- right: 10px;
101
-
102
- > .dialog-maximise,
103
- > .dialog-close {
104
- cursor: pointer;
105
- }
106
- }
107
- }
108
-
109
- .dialog-move-overay {
110
- width: 100%;
111
- height: 100%;
112
- position: absolute;
113
- z-index: 1;
114
- display: none;
115
- top: 0px;
116
- left: 0px;
117
- opacity: 0;
118
- }
119
-
120
- > .dialog-body {
121
- padding: 10px 10px 10px 10px;
122
- height: calc(100% - 40px - 35px);
123
- border-top: 1px solid var(--border);
124
- border-bottom: 1px solid var(--border);
125
- min-height: 50px;
126
- position: relative;
127
-
128
- > .dialog-content {
129
- height: 100%;
130
- > .dialog-frame {
131
- width: 100%;
132
- height: 100%;
133
- border: 0px;
134
- }
135
- }
136
- }
137
-
138
- > .dialog-footer {
139
- height: 45px;
140
- > .btn-area {
141
- text-align: right;
142
- padding: 12px 5px 0px;
143
- }
144
- }
145
-
146
- > .resizer {
147
- position: absolute;
148
- z-index: 2;
149
- //background: #ece1e1;
150
-
151
- &.top {
152
- top: -2px;
153
- left: 0px;
154
- width: 100%;
155
- height: 5px;
156
- cursor: n-resize;
157
- }
158
-
159
- &.left {
160
- top: 0px;
161
- left: -2px;
162
- width: 5px;
163
- height: 100%;
164
- cursor: e-resize;
165
- }
166
-
167
- &.right {
168
- top: 0px;
169
- right: -2px;
170
- width: 5px;
171
- height: 100%;
172
- cursor: w-resize;
173
- }
174
-
175
- &.bottom {
176
- bottom: -2px;
177
- left: 0px;
178
- width: 100%;
179
- height: 5px;
180
- cursor: s-resize;
181
- }
182
-
183
- &.top-left {
184
- top: 0px;
185
- left: 0px;
186
- width: 7px;
187
- height: 7px;
188
- cursor: nwse-resize;
189
- }
190
-
191
- &.top-right {
192
- top: 0px;
193
- right: 0px;
194
- width: 7px;
195
- height: 7px;
196
- cursor: nesw-resize;
197
- }
198
-
199
- &.bottom-left {
200
- bottom: 0px;
201
- left: 0px;
202
- width: 7px;
203
- height: 7px;
204
- cursor: nesw-resize;
205
- }
206
-
207
- &.bottom-right {
208
- bottom: 0px;
209
- right: 0px;
210
- width: 7px;
211
- height: 7px;
212
- cursor: nwse-resize;
213
- }
214
- }
215
-
216
- .dialog-btn {
217
- border-radius: 4px;
218
- background-color: #f2f7f5; /* Green */
219
- border: none;
220
- text-align: center;
221
- font-size: 16px;
222
- padding: 3px 5px;
223
- margin-right: 10px;
224
- cursor: pointer;
225
-
226
- &.primary {
227
- background-color: #cce5ff;
228
- border-color: #b8daff;
229
- color: var(--light);
230
- }
231
-
232
- &.secondary {
233
- background-color: #e2e3e5;
234
- border-color: #d6d8db;
235
- color: var(--light);
236
- }
237
-
238
- &.info {
239
- background-color: #d1ecf1;
240
- border-color: #bee5eb;
241
- color: var(--dark);
242
- }
243
-
244
- &.success {
245
- background-color: #d4edda;
246
- border-color: #c3e6cb;
247
- color: var(--dark);
248
- }
249
-
250
- &.warning {
251
- background-color: #fff3cd;
252
- border-color: #ffeeba;
253
- color: var(--dark);
254
- }
255
-
256
- &.danger {
257
- background-color: #f8d7da;
258
- border-color: #f5c6cb;
259
- color: var(--light);
260
- }
261
- }
262
-
263
- &.hide {
264
- animation: fadeOut 0.3s;
265
- animation-fill-mode: forwards;
266
- //animation: daradialogHide 0.3s ease forwards;
267
- }
268
- }
269
- }
270
-
271
- @keyframes fadeIn {
272
- from {
273
- opacity: 0;
274
- }
275
-
276
- to {
277
- opacity: 1;
278
- }
279
- }
280
-
281
- @keyframes fadeOut {
282
- from {
283
- opacity: 1;
284
- }
285
-
286
- to {
287
- opacity: 0;
288
- }
289
- }
290
-
291
- @keyframes daradialogHide {
292
- 0% {
293
- transform: translateX(-10px);
294
- }
295
-
296
- 40% {
297
- transform: translateX(0%);
298
- }
299
-
300
- 80% {
301
- transform: translateX(-5%);
302
- }
303
-
304
- 100% {
305
- transform: translateX(calc(100% + 20px));
306
- }
307
- }