@sc-360-v2/storefront-cms-library 0.2.60 → 0.2.62

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/login.scss CHANGED
@@ -1,189 +1,563 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
+ @import "./functions.scss";
3
4
 
4
- [data-div-type="element"] {
5
- &[data-element-type="login"] {
6
- width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
7
- height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
8
- margin: var(--_ctm-lt-mn, --_tst-lt-mn);
9
- aspect-ratio: 1 / var(--_sf-aspect-ratio);
10
- position: relative;
5
+ .element__center {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ }
10
+
11
+ .logn__main__div {
12
+ height: var(--_height-100-dvh);
13
+ max-height: var(--_height-100-dvh);
14
+ overflow: clip;
15
+ width: 100%;
16
+ position: var(--_p-relative);
11
17
 
12
- & > .wrapper {
13
- display: flex;
18
+ & > div {
19
+ &.loader {
20
+ position: var(--_p-absolute);
21
+ z-index: var(--_higher-zIndex);
22
+ background: var(--_base-white);
23
+ border-radius: 50%;
24
+ display: var(--_d-flex);
14
25
  align-items: center;
15
26
  justify-content: center;
16
- width: 100%;
17
- height: 100%;
18
- }
27
+ --_sf-in-sz: 1.2;
28
+ width: calc(var(--_sf-img-sz) * var(--_sf-in-sz));
29
+ height: calc(var(--_sf-img-sz) * var(--_sf-in-sz));
30
+ --_sf-img-sz: 80px;
31
+
32
+ left: 50%;
33
+ top: 50%;
34
+ transform: translate(-50%, -50%);
35
+ overflow: clip;
19
36
 
20
- & form {
21
- width: 100%;
22
- height: 100%;
37
+ &::before {
38
+ animation: shine 1.5s infinite;
39
+ background: linear-gradient(
40
+ to right,
41
+ rgba(255, 255, 255, 0) 0%,
42
+ rgba(255, 255, 255, 0.8) 100%
43
+ );
44
+ content: "";
45
+ display: block;
46
+ height: 90px;
47
+ left: -80%;
48
+ position: absolute;
49
+ top: 0px;
50
+ transform: skewX(-45deg);
51
+ width: 70%;
52
+ z-index: 2;
53
+ }
54
+
55
+ & > img {
56
+ // z-index: 3;
57
+ width: var(--_sf-img-sz);
58
+ height: var(--_sf-img-sz);
59
+ }
23
60
  }
61
+ &.wrapper {
62
+ display: var(--_d-grid);
63
+ --_col-count: 2;
64
+ --_col-gap: 0px;
65
+ grid-template-columns: getRepeatColWidth(--_col-count, --_col-gap);
66
+
67
+ & > div {
68
+ width: 100%;
69
+ &.left__div {
70
+ display: var(--_d-flex);
71
+ background: var(--_sf-bg-img) no-repeat 0 0 / cover var(--_gray-900);
72
+ background-size: 75%;
73
+ height: 100%;
74
+ align-items: center;
75
+ img {
76
+ width: 100%;
77
+ object-fit: cover;
78
+ }
79
+
80
+ & > div {
81
+ &.left__box__parent {
82
+ max-width: 65%;
83
+ margin-inline: auto;
84
+ display: var(--_d-flex);
85
+ flex-direction: column;
86
+ --_sf-gp: var(--_gap-24);
87
+ gap: calc(var(--_sf-gp) * 1.25);
88
+
89
+ & > div {
90
+ &.box {
91
+ display: var(--_d-flex);
92
+ color: var(--_base-white);
93
+ --_sf-img-size: 50px;
94
+ // --_sf-gp: var(--_gap-24);
95
+ gap: var(--_sf-gp);
96
+
97
+ &::before {
98
+ content: "";
99
+ background: var(--_sf-img) no-repeat center center / cover;
100
+ width: var(--_sf-img-size);
101
+ height: var(--_sf-img-size);
102
+ }
103
+
104
+ & > div {
105
+ display: var(--_d-flex);
106
+ flex-direction: column;
107
+ row-gap: calc(var(--_sf-gp) * 0.5);
108
+ align-items: flex-start;
109
+ flex: 0 0 calc(100% - var(--_sf-img-size) - var(--_sf-gp));
24
110
 
25
- &[data-widget-border="true"] {
26
- .search-wrapper {
27
- border-color: var(--_ctm-dn-sh-br-br-cr, var(--_tst-dn-sh-br-br-cr));
28
- border-style: var(--_ctm-dn-sh-br-br-se, var(--_tst-dn-sh-br-br-se));
29
- border-width: var(--_ctm-dn-sh-br-br-wh, var(--_tst-dn-sh-br-br-wh));
111
+ & > p {
112
+ color: var(--_base-white);
113
+ margin: 0;
114
+
115
+ &.title {
116
+ font-weight: var(--_fw-400);
117
+ font-size: var(--_fs-24);
118
+ }
119
+ &.desc {
120
+ font-size: var(--_fs-16);
121
+ line-height: 1.6;
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
30
130
  }
31
131
  }
132
+ }
133
+ }
134
+
135
+ // General Container Styles
136
+ .loginContainer {
137
+ display: flex;
138
+ justify-content: center;
139
+ align-items: center;
140
+ height: 100vh;
141
+ background-color: var(--_base-white);
142
+ }
143
+
144
+ // Login Box
145
+ .loginBox {
146
+ padding: 20px;
147
+ // border: 1px solid #ddd;
148
+ border-radius: 8px;
149
+ background-color: #fff;
150
+ width: 500px;
151
+ @media only screen and (max-width: 768px) {
152
+ width: 350px;
153
+ }
154
+ }
155
+
156
+ // Title Styles
157
+ .title {
158
+ // text-align: center;
159
+ color: var(--_gray-900);
160
+ font-size: 24px;
161
+ margin-bottom: 8px;
162
+ }
163
+ .desc {
164
+ font-size: 14px;
165
+ color: var(--_gray-500);
166
+ }
167
+ .sso_verify {
168
+ border: 1px solid red;
169
+ }
170
+
171
+ .form_fields {
172
+ margin-top: 36px;
173
+ }
174
+
175
+ // Form Group (For Email and Password)
176
+ .field__group {
177
+ position: relative;
178
+ .input__label {
179
+ display: flex;
180
+ align-items: center;
181
+ gap: 4px;
182
+ margin-bottom: 4px;
183
+ }
184
+ .input__field {
185
+ position: relative;
186
+ svg {
187
+ width: 20px;
188
+ height: 20px;
189
+ }
190
+ .placeholder_icon_start {
191
+ position: absolute;
192
+ z-index: 10;
193
+ top: 9px;
194
+ left: 10px;
195
+ }
196
+ .placeholder_icon_end {
197
+ position: absolute;
198
+ right: 10px;
199
+ z-index: 10;
200
+ top: 50%;
201
+ transform: translateY(-50%);
202
+ }
32
203
 
33
- &[data-widget-shadow="false"] {
34
- --_show-shadow: none;
204
+ input {
205
+ padding-left: 38px;
206
+ }
207
+ }
208
+ .view__icon {
209
+ position: absolute;
210
+ right: 10px;
211
+ top: 35px;
212
+ svg {
213
+ width: 18px;
214
+ height: 18px;
35
215
  }
216
+ }
217
+ }
218
+
219
+ // Input Field Styles
220
+ .inputField {
221
+ width: 100%;
222
+ padding: 10px;
223
+ border-radius: 6px;
224
+ border: 1px solid var(--_gray-300) !important;
225
+ font-size: 14px;
226
+ transition:
227
+ background-color 0.2s,
228
+ color 0.2s,
229
+ border-color 0.2s,
230
+ box-shadow 0.2s;
231
+ &:focus {
232
+ box-shadow:
233
+ 0px 1px 2px rgba(16, 24, 40, 0.02),
234
+ 0px 0px 0px 2px var(--_primary-100) !important;
235
+ border: 1px solid var(--_primary-300) !important;
236
+ }
237
+ }
238
+
239
+ // Invalid Input Field
240
+ .invalid {
241
+ border-color: var(--_error-300) !important;
242
+ outline: 2px solid #fee4e2;
243
+ }
36
244
 
37
- &[data-show-shadow="false"] {
38
- --_show-shadow: none;
245
+ // Error Text Styles
246
+ .errorText {
247
+ display: flex;
248
+ align-items: center;
249
+ gap: 4px;
250
+ font-size: 12px;
251
+ color: red;
252
+ svg {
253
+ display: flex;
254
+ width: 13px;
255
+ height: 13px;
256
+ path {
257
+ stroke: var(--_error-500);
39
258
  }
259
+ }
260
+ }
40
261
 
41
- .contact-us-container {
42
- display: flex;
43
- padding: 48px 96px 96px 96px;
44
- flex-direction: column;
45
- align-items: flex-start;
46
- gap: 24px;
47
- align-self: stretch;
48
- width: 100%;
49
- height: 100%;
50
- .header-section {
51
- display: flex;
52
- flex-direction: column;
53
- align-items: flex-start;
54
- align-self: stretch;
55
- .head-title {
56
- color: #333;
57
- font-family: "Hanken Grotesk";
58
- font-size: 24px;
59
- font-style: normal;
60
- font-weight: 600;
61
- line-height: 125%; /* 30px */
62
- letter-spacing: -0.48px;
262
+ // Submit Button
263
+ .submitButton {
264
+ width: 100%;
265
+ padding: 12px;
266
+ background-color: var(--_primary-500);
267
+ color: #fff;
268
+ border-radius: 6px;
269
+ border: none;
270
+ cursor: pointer;
271
+ margin-top: 16px;
272
+ display: flex;
273
+ align-items: center;
274
+ justify-content: center;
275
+ &:has(svg) {
276
+ gap: 8px;
277
+ }
278
+ svg {
279
+ display: flex;
280
+ path {
281
+ stroke: var(--_base-white);
282
+ }
283
+ }
284
+
285
+ &:disabled {
286
+ background-color: var(--_primary-100);
287
+ cursor: not-allowed;
288
+ }
289
+ }
290
+ .mt__32 {
291
+ margin-top: 32px !important;
292
+ }
293
+ .mt__48 {
294
+ margin-top: 48px !important;
295
+ }
296
+
297
+ // Loading Icon
298
+ .loadingIcon {
299
+ margin-left: 8px;
300
+ }
301
+
302
+ // Forgot Password Section
303
+ .forgotPassword {
304
+ display: flex;
305
+ align-items: center;
306
+ justify-content: space-between;
307
+ margin-top: 20px;
308
+ .remember_block {
309
+ display: flex;
310
+ align-items: center;
311
+ gap: 6px;
312
+ }
313
+ }
314
+ .flex_center {
315
+ display: flex;
316
+ justify-content: center;
317
+ align-items: center;
318
+ gap: 8px;
319
+ font-weight: 600;
320
+ margin-top: 20px;
321
+ width: 100%;
322
+ color: var(--_primary-400);
323
+ svg {
324
+ display: flex;
325
+ path {
326
+ stroke: var(--_primary-400);
327
+ }
328
+ }
329
+ }
330
+
331
+ .psw__contain {
332
+ margin-bottom: 24px;
333
+ .psw_status {
334
+ display: flex;
335
+ align-items: center;
336
+ justify-content: space-between;
337
+ .step {
338
+ width: 20%;
339
+ height: 3px;
340
+ border-radius: 4px;
341
+ background-color: var(--_gray-300);
342
+ &.active {
343
+ background-color: var(--_success-600);
344
+ }
345
+ }
346
+ }
347
+ .psw_content {
348
+ background-color: var(--_gray-50);
349
+ padding: 16px;
350
+ border-radius: 6px !important;
351
+ height: 100px;
352
+ overflow-y: auto;
353
+ margin-top: 20px;
354
+ .title {
355
+ font-size: 14px;
356
+ font-weight: 600;
357
+ color: var(--_gray-700);
358
+ margin-bottom: 16px;
359
+ }
360
+ ul {
361
+ li {
362
+ color: var(--_gray-700);
363
+ font-size: 14px;
364
+ & > span {
365
+ display: inline-flex;
63
366
  }
64
- .sub-title {
65
- color: #626262;
66
- font-family: "Hanken Grotesk";
67
- font-size: 14px;
68
- font-style: normal;
69
- font-weight: 400;
70
- line-height: 150%; /* 21px */
71
- letter-spacing: -0.28px;
367
+ &:not(:last-child) {
368
+ margin-bottom: 8px;
72
369
  }
73
370
  }
74
- .form-section {
371
+ }
372
+ }
373
+ }
374
+
375
+ // password reset successfully
376
+ .reset_password_success {
377
+ display: flex;
378
+ justify-content: center;
379
+ flex-direction: column;
380
+ align-items: center;
381
+
382
+ .rounded_icon {
383
+ @extend .element__center;
384
+ width: 40px;
385
+ height: 40px;
386
+ background-color: var(--_gray-200);
387
+ border-radius: 50%;
388
+ margin-bottom: 24px;
389
+ }
390
+ }
391
+
392
+ // Forgot Password Button
393
+ .forgotPasswordButton {
394
+ background: none;
395
+ border: none;
396
+ color: var(--_primary-400);
397
+
398
+ font-weight: 600;
399
+ cursor: pointer;
400
+ font-size: 14px;
401
+ padding: 8px 16px;
402
+ border-radius: 6px;
403
+ &:hover {
404
+ background-color: var(--_primary-25);
405
+ color: var(--_primary-700);
406
+ }
407
+ }
408
+
409
+ @keyframes shine {
410
+ 100% {
411
+ left: 125%;
412
+ }
413
+ }
414
+
415
+ .reset_password {
416
+ form {
417
+ label {
418
+ display: block;
419
+ margin-bottom: 4px;
420
+ }
421
+ .formGroup {
422
+ &:not(:last-child) {
423
+ margin-bottom: 16px;
424
+ }
425
+ }
426
+ .to_be_filled {
427
+ display: grid;
428
+ grid-template-columns: 50% 50%;
429
+ gap: 4px;
430
+ margin-top: 10px;
431
+ margin-bottom: 16px;
432
+ li {
433
+ padding: 4px 10px;
434
+ background-color: var(--_gray-100);
435
+ color: var(--_gray-700);
436
+ border-radius: 40px;
75
437
  display: flex;
76
- flex-direction: column;
77
- align-items: flex-start;
78
- align-self: stretch;
79
- gap: 16px;
80
- .form-row {
81
- display: flex;
82
- align-items: flex-start;
83
- gap: 24px;
84
- align-self: stretch;
85
- }
86
- .form-group {
87
- display: flex;
88
- flex-direction: column;
89
- align-items: flex-start;
90
- gap: 6px;
91
- flex: 1 0 0;
92
- position: relative;
93
- .view__icon {
94
- position: absolute;
95
- right: 10px;
96
- top: 40px;
97
- svg {
98
- width: 15px;
99
- height: 15px;
438
+ align-items: center;
439
+ gap: 5px;
440
+ font-size: 12px;
441
+ &.active {
442
+ background-color: var(--_success-50);
443
+ color: var(--_success-700);
444
+ svg {
445
+ path {
446
+ stroke: var(--_success-700);
100
447
  }
101
448
  }
102
449
  }
103
- .form-group-uploadfile {
104
- display: flex;
105
- padding: 12px;
106
- justify-content: center;
107
- align-items: center;
108
- gap: 8px;
109
- flex: 1 0 0;
110
- align-self: stretch;
111
- border-radius: 4px;
112
- border: 1px dashed var(--d-0-d-7-e-2, #d0d7e2);
113
- background: #fafafa;
114
- .input-control {
115
- display: none;
116
- }
117
- label {
118
- color: #4f5970;
119
- font-family: "Hanken Grotesk";
120
- font-size: 20px;
121
- font-style: normal;
122
- font-weight: 400;
123
- line-height: 150%; /* 30px */
124
- letter-spacing: -0.4px;
125
- }
126
- }
127
- label {
128
- color: var(--4-f-5970, #4f5970);
129
- text-align: center;
130
- font-family: Inter;
131
- font-size: 14px;
132
- font-style: normal;
133
- font-weight: 600;
134
- line-height: normal;
135
- }
136
- .input-control {
137
- width: 100%;
138
- display: flex;
139
- height: 48px;
140
- padding: 12px;
141
- align-items: center;
142
- gap: 10px;
143
- align-self: stretch;
144
- border-radius: 4px;
145
- border: 1px solid var(--d-0-d-7-e-2, #d0d7e2);
146
- background: var(--ffffff, #fff);
147
- line-height: 18px;
148
- outline: none;
149
- transition: border-color 0.2s ease-in-out;
150
- }
151
- .form-column {
152
- display: flex;
153
- flex-direction: column;
154
- align-items: flex-start;
155
- gap: 10px;
156
- align-self: stretch;
157
- width: 100%;
158
- .form-group {
159
- width: 100%;
160
- }
161
- .textarea-control {
162
- display: flex;
163
- height: 120px;
164
- padding: 12px;
165
- align-items: flex-start;
166
- gap: 10px;
167
- align-self: stretch;
168
- border-radius: 4px;
169
- border: 1px solid var(--d-0-d-7-e-2, #d0d7e2);
170
- background: var(--ffffff, #fff);
171
- width: 100%;
450
+
451
+ button {
452
+ svg {
453
+ path {
454
+ stroke: var(--_gray-500);
455
+ }
172
456
  }
173
457
  }
174
458
  }
175
- .submit-btn {
176
- display: flex;
177
- padding: 16px 24px;
178
- justify-content: center;
179
- align-items: center;
180
- gap: 12px;
181
- flex: 1 0 0;
182
- border-radius: 4px;
183
- background: #243dc6;
184
- color: #fff;
185
- width: 100%;
459
+ }
460
+ }
461
+
462
+ .to_be_filled {
463
+ display: flex;
464
+ }
465
+ .error {
466
+ color: var(--_error-500);
467
+ &::first-letter {
468
+ text-transform: uppercase;
469
+ }
470
+ }
471
+ }
472
+
473
+ .single_sign_on {
474
+ display: flex;
475
+ flex-direction: column;
476
+ justify-content: center;
477
+ align-items: center;
478
+ .redirect_section,
479
+ .auth_failed_section {
480
+ position: absolute;
481
+ top: 50%;
482
+ left: 50%;
483
+ transform: translate(-50%, -50%);
484
+ max-width: 500px;
485
+ height: auto;
486
+ justify-content: center;
487
+ display: flex;
488
+ align-items: center;
489
+ flex-direction: column;
490
+ .section_title {
491
+ font-size: 18px;
492
+ margin-bottom: 4px;
493
+ }
494
+ .section_txt {
495
+ font-size: 14px;
496
+ text-align: center;
497
+ }
498
+ .logo_brand {
499
+ margin-top: 20px;
500
+ }
501
+ }
502
+ .copyright_text {
503
+ position: fixed;
504
+ bottom: 10px;
505
+ text-align: center;
506
+ }
507
+ }
508
+
509
+ // common styles
510
+ .btn__primary {
511
+ border-radius: 6px;
512
+ width: 100%;
513
+ height: 48px;
514
+ font-weight: 600;
515
+ color: var(--_base-white);
516
+ background-color: var(--_primary-500);
517
+ margin-top: 48px;
518
+ font-size: 16px;
519
+ display: flex;
520
+ justify-content: center;
521
+ align-items: center;
522
+ gap: 8px;
523
+ & > span {
524
+ display: flex;
525
+ svg {
526
+ path {
527
+ stroke: var(--_base-white);
186
528
  }
187
529
  }
188
530
  }
189
531
  }
532
+ .section__title {
533
+ font-size: 24px;
534
+ font-weight: 600;
535
+ margin-bottom: 8px;
536
+ color: var(--_gray-900);
537
+ }
538
+ .section__desc {
539
+ font-size: 14px;
540
+ color: var(--_gray-500);
541
+ }
542
+ .text__center {
543
+ text-align: center;
544
+ }
545
+
546
+ .rounded__fill {
547
+ @extend .element__center;
548
+ width: 60px;
549
+ height: 60px;
550
+ background-color: var(--_success-50);
551
+ border-radius: 50%;
552
+ margin-bottom: 24px;
553
+ svg {
554
+ width: 26px;
555
+ height: 26px;
556
+ path {
557
+ stroke: var(--_success-600);
558
+ }
559
+ }
560
+ &.remove__bg {
561
+ background-color: transparent;
562
+ }
563
+ }