@appartmint/mint 2.5.0 → 2.6.1

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.
@@ -0,0 +1,131 @@
1
+ /// _chat.scss - Chatbot styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Components
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../../util' as *;
9
+
10
+ /// Chatbot styles
11
+ #{class(chatbot)} {
12
+ display: flex;
13
+ flex-direction: column;
14
+ flex-grow: 1;
15
+ justify-content: flex-end;
16
+ position: relative;
17
+ gap: 1rem;
18
+ padding: 1rem;
19
+ background: rgba(0, 0, 0, 0.8);
20
+ min-height: calc(100vh - $header-height);
21
+ min-height: calc(100dvh - $header-height);
22
+
23
+ @include break(xs) {
24
+ min-height: unset;
25
+ }
26
+
27
+ #{class(output)} {
28
+ display: flex;
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ width: 100%;
33
+ height: calc(100% - 75px);
34
+ padding: 1rem;
35
+ overflow-y: auto;
36
+ }
37
+
38
+ #{class(chat)} {
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: 0;
42
+ width: 100%;
43
+ min-height: 100%;
44
+ padding: 1rem;
45
+ font-size: 1.125rem;
46
+ overflow-x: hidden;
47
+
48
+ &::before {
49
+ content: '';
50
+ flex-grow: 1;
51
+ }
52
+
53
+ $message-user: #e1e5e6;
54
+ $message-assistant: css-var(brand-1);
55
+
56
+ p {
57
+ align-self: flex-start;
58
+ margin: 0;
59
+ color: #000;
60
+
61
+ @include break(xs) {
62
+ max-width: 75%;
63
+ }
64
+
65
+ &:nth-child(even) {
66
+ align-self: flex-end;
67
+
68
+ span {
69
+ background-color: $message-assistant;
70
+
71
+ &::before {
72
+ left: unset;
73
+ right: 0;
74
+ transform: translate(-5%, 90%) skew(50deg, 10deg);
75
+ border-color: $message-assistant transparent transparent transparent;
76
+ }
77
+ }
78
+ }
79
+
80
+ span {
81
+ display: block;
82
+ position: relative;
83
+ padding: 1rem;
84
+ margin-bottom: 2rem;
85
+ background-color: $message-user;
86
+ border-radius: 0.5rem;
87
+
88
+ &::before {
89
+ content: '';
90
+ position: absolute;
91
+ bottom: 0;
92
+ left: 0;
93
+ transform: translate(5%, 90%) skew(-50deg, 10deg);
94
+ width: 0;
95
+ height: 0;
96
+ border: 0.5rem solid;
97
+ border-color: $message-user transparent transparent transparent;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ #{class(input)} {
104
+ position: relative;
105
+ width: 100%;
106
+ max-width: 550px;
107
+ margin: 0 auto;
108
+
109
+ input {
110
+ font-size: 1.25rem;
111
+ padding-right: 47px;
112
+ }
113
+
114
+ button {
115
+ position: absolute;
116
+ top: 0;
117
+ right: 0;
118
+ height: 100%;
119
+ padding: 0 1rem;
120
+ border-top-right-radius: 1rem;
121
+ border-bottom-right-radius: 1rem;
122
+ border: none;
123
+ transition: all 0.3s ease-in-out;
124
+
125
+ @include states(hover, focus) {
126
+ background: $fore !important;
127
+ color: $back;
128
+ }
129
+ }
130
+ }
131
+ }
@@ -21,44 +21,9 @@
21
21
  width: 100%;
22
22
  color: css-var(header-fore);
23
23
  background-color: css-var(header-back);
24
- z-index: 10000;
24
+ z-index: 1000;
25
25
  height: css-var(header-height);
26
26
 
27
- &#{class(right)} {
28
- #{id(wrapper)} {
29
- top: css-var(header-height);
30
- right: -100%;
31
- left: unset;
32
-
33
- &#{class(open)} {
34
- right: 0;
35
- }
36
- }
37
- }
38
-
39
- &#{class(bottom)} {
40
- #{id(wrapper)} {
41
- top: unset;
42
- bottom: -100%;
43
-
44
- &#{class(open)} {
45
- top: unset;
46
- bottom: 0;
47
- }
48
- }
49
- }
50
-
51
- &#{class(left)} {
52
- #{id(wrapper)} {
53
- top: css-var(header-height);
54
- left: -100%;
55
-
56
- &#{class(open)} {
57
- left: 0;
58
- }
59
- }
60
- }
61
-
62
27
  &#{class(expand)} {
63
28
  @include break($header-break) {
64
29
  #{class(buttons)} {
@@ -197,25 +162,19 @@
197
162
  }
198
163
  }
199
164
 
200
- &#{class(tray)} {
165
+ #{class(tray)} {
201
166
  #{id(wrapper)} {
202
- gap: 1.5rem;
203
- font-size: 0.5em;
204
-
205
- @include break(sm) {
206
- max-width: 512px;
207
- }
208
167
 
209
168
  a, button {
210
169
  padding: 0.75rem;
211
170
  margin: 0.25rem 0;
212
171
  line-height: 1;
213
- font-size: 4em;
172
+ font-size: 2em;
214
173
  width: 100%;
215
174
  }
216
175
 
217
176
  button {
218
- font-size: 6em;
177
+ font-size: 3em;
219
178
  }
220
179
 
221
180
  nav {
@@ -248,38 +207,10 @@
248
207
  z-index: -1;
249
208
  }
250
209
 
251
- nav {
252
- &>ul {
253
- display: flex;
254
- flex-direction: column;
255
- }
256
- }
257
-
258
- ul {
259
- list-style: none;
260
- margin-top: 0;
261
- margin-bottom: 1rem;
262
- padding-left: 0;
263
- }
264
-
265
- a,
266
- button {
267
- margin: 0;
268
- border: 0;
269
- color: css-var($header-link-fore);
270
- background: css-var(trans);
271
- transition-property: color, background;
272
- transition-duration: css-var(delay-default);
273
-
274
- @include states(hover) {
275
- color: css-var($header-link-fore-hover);
276
- }
277
- }
278
-
279
210
  #{id(navbar)} {
280
211
  display: flex;
281
212
  align-items: center;
282
- justify-content: space-between;
213
+ justify-content: flex-end;
283
214
  height: 100%;
284
215
  }
285
216
 
@@ -292,7 +223,12 @@
292
223
  white-space: nowrap;
293
224
 
294
225
  span {
226
+ display: none;
295
227
  margin: 0;
228
+
229
+ @include break(xs) {
230
+ display: inline;
231
+ }
296
232
  }
297
233
 
298
234
  img {
@@ -368,24 +304,6 @@
368
304
  }
369
305
 
370
306
  #{id(wrapper)} {
371
- display: flex;
372
- flex-direction: column;
373
- position: fixed;
374
- top: -100%;
375
- left: 0;
376
- width: 100%;
377
- height: calc(100vh - css-var(header-height));
378
- height: calc(100dvh - css-var(header-height));
379
- z-index: -2;
380
- background: css-var(header-back);
381
- transition-duration: css-var(delay-default);
382
- transition-property: top, right, bottom, left;
383
- overflow: auto;
384
-
385
- &#{class(open)} {
386
- top: css-var(header-height);
387
- }
388
-
389
307
  nav {
390
308
  flex-grow: 1;
391
309
  height: auto;
@@ -403,6 +321,8 @@
403
321
  }
404
322
 
405
323
  &>ul {
324
+ display: flex;
325
+ flex-direction: column;
406
326
  height: 100%;
407
327
  overflow: visible;
408
328
 
@@ -423,7 +343,6 @@
423
343
 
424
344
  a,
425
345
  button {
426
- //display: flex;
427
346
  align-items: center;
428
347
  justify-content: center;
429
348
  font-family: $font-secondary, $font-backups !important;
@@ -432,6 +351,10 @@
432
351
  margin: 0.5rem 0;
433
352
  text-align: center;
434
353
  border-radius: $header-link-border-radius;
354
+ color: css-var($header-link-fore);
355
+ background: css-var(trans);
356
+ transition-property: color, background;
357
+ transition-duration: css-var(delay-default);
435
358
 
436
359
  @include break(xs) {
437
360
  padding: 1rem 1.5rem;
@@ -452,6 +375,11 @@
452
375
  }
453
376
 
454
377
  ul {
378
+ list-style: none;
379
+ margin-top: 0;
380
+ margin-bottom: 1rem;
381
+ padding-left: 0;
382
+
455
383
  li {
456
384
  &:last-child {
457
385
  margin-bottom: 0;
@@ -469,15 +397,6 @@
469
397
  flex-shrink: 0;
470
398
  justify-content: flex-end;
471
399
  margin-left: auto;
472
-
473
- a,
474
- button {
475
- &#{neg(controls(wrapper))} {
476
- display: flex;
477
- width: auto;
478
- padding: 0.5rem;
479
- }
480
- }
481
400
  }
482
401
 
483
402
  #{class(dropdown)} {
@@ -514,4 +433,4 @@
514
433
  }
515
434
  }
516
435
  }
517
- }
436
+ }
@@ -7,3 +7,4 @@
7
7
  @use './backgrounds';
8
8
  @use './footer';
9
9
  @use './header';
10
+ @use './chat';
@@ -128,6 +128,8 @@
128
128
  }
129
129
 
130
130
  i {
131
+ display: inline-flex;
132
+ align-items: center;
131
133
  margin: 0 !important;
132
134
  color: css-var($btn-border);
133
135
  font-size: 1.5rem;
@@ -7,4 +7,6 @@
7
7
  @use './button';
8
8
  @use './card';
9
9
  @use './image';
10
+ @use './menu';
11
+ @use './panel';
10
12
  @use './table';
File without changes
@@ -0,0 +1,100 @@
1
+ /// _panel.scss - Panel styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Components
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use 'sass:math';
9
+ @use '../../util' as *;
10
+
11
+ /// Panel Styles
12
+ #{class(panel)} {
13
+ &#{class(right)} {
14
+ #{class(panel-wrapper)} {
15
+ top: css-var(header-height);
16
+ right: -100%;
17
+ left: unset;
18
+
19
+ &#{class(open)} {
20
+ right: 0;
21
+ }
22
+ }
23
+ }
24
+
25
+ &#{class(bottom)} {
26
+ #{class(panel-wrapper)} {
27
+ top: unset;
28
+ bottom: -100%;
29
+
30
+ &#{class(open)} {
31
+ top: unset;
32
+ bottom: 0;
33
+ }
34
+ }
35
+ }
36
+
37
+ &#{class(left)} {
38
+ #{class(panel-wrapper)} {
39
+ top: css-var(header-height);
40
+ left: -100%;
41
+
42
+ &#{class(open)} {
43
+ left: 0;
44
+ }
45
+ }
46
+ }
47
+
48
+ &#{class(tray)} {
49
+ #{class(panel-wrapper)} {
50
+ gap: 1.5rem;
51
+
52
+ @include break(sm) {
53
+ max-width: 512px;
54
+ }
55
+ }
56
+ }
57
+
58
+ #{class(panel-wrapper)} {
59
+ display: flex;
60
+ flex-direction: column;
61
+ position: fixed;
62
+ top: -100%;
63
+ left: 0;
64
+ width: 100%;
65
+ height: calc(100vh - css-var(header-height));
66
+ height: calc(100dvh - css-var(header-height));
67
+ z-index: -2;
68
+ background: css-var(header-back);
69
+ transition-duration: css-var(delay-default);
70
+ transition-property: top, right, bottom, left;
71
+ overflow: auto;
72
+
73
+ &#{class(open)} {
74
+ top: css-var(header-height);
75
+ }
76
+
77
+ nav {
78
+ flex-grow: 1;
79
+ height: auto;
80
+ overflow: visible;
81
+ background: css-var(back);
82
+
83
+ @include break(xl) {
84
+ display: flex;
85
+ align-items: center;
86
+ justify-content: center;
87
+ }
88
+
89
+ &> :last-child {
90
+ margin-bottom: 0;
91
+ }
92
+ }
93
+ }
94
+
95
+ #{class(title)} {
96
+ display: flex;
97
+ align-items: flex-start;
98
+ justify-content: space-between;
99
+ }
100
+ }
@@ -86,7 +86,7 @@ main {
86
86
  width: 100%;
87
87
  min-height: calc(100vh - css-var(header-height));
88
88
  overflow: hidden;
89
- z-index: 1000;
89
+ z-index: 999;
90
90
 
91
91
  &>router-outlet {
92
92
  flex-grow: 0;
@@ -1 +0,0 @@
1
- {"version":3,"file":"tray.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/tray.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AASjD;;;GAGG;AACH,qBAAa,QAAS,SAAQ,kBAAkB;IAE/C;;OAEM;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI5B;IAEF;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAM;IAG5C;;OAEG;gBACU,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAiB3C;;OAEG;IACH,cAAc,IAAM,IAAI;IAQxB;;OAEG;IACH,YAAY,IAAM,IAAI;IAatB;;OAEG;IACH,UAAU,IAAM,IAAI;IAkBpB;;;OAGG;IACH,OAAO,CAAE,IAAI,GAAE,OAAe,GAAI,IAAI;IAsDtC;;OAEG;IACH,UAAU,IAAM,IAAI;IAIpB;;OAEG;IACH,aAAa,IAAM,IAAI;IAgCvB;;;OAGG;IACH,QAAQ,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAelC;;OAEG;IACH,OAAO,IAAM,IAAI;IAIpB;;OAEG;IACH,MAAM,IAAM,IAAI;IAIb;;OAEG;IACH,cAAc,IAAM,IAAI;CAK3B"}