summaryrefslogtreecommitdiff
path: root/src/styles/globals.css
blob: 1860fc2b1be4e1149078cca592b703e5cd39e933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
@tailwind base;
@tailwind components;
@tailwind utilities;

* {
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    @apply w-screen
        text-body-2
        text-gray_r-12
        bg-gray_r-1
        overflow-x-clip;
}

#__next main {
    @apply min-h-screen;
}

button {
    @apply block;
}

@layer base {
    input[type='number']::-webkit-inner-spin-button,
    input[type='number']::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type='number'] {
        -moz-appearance: textfield;
    }
}

@layer components {
    .badge-red,
    .badge-solid-red,
    .badge-gray,
    .badge-yellow,
    .badge-blue,
    .badge-green,
    .badge-solid-green {
        @apply text-[11px]
            leading-none
            font-medium
            px-2
            py-2
            rounded
            w-fit;
    }

    .badge-red {
        @apply bg-danger-100
            text-danger-600;
    }

    .badge-solid-red {
        @apply bg-danger-500
            text-white;
    }

    .badge-gray {
        @apply bg-gray_r-5
            text-gray_r-10;
    }

    .badge-yellow {
        @apply bg-warning-500
            text-warning-900;
    }

    .badge-blue {
        @apply bg-blue-200
            text-blue-600;
    }

    .badge-green {
        @apply bg-success-100
            text-success-600;
    }

    .badge-solid-green {
        @apply bg-success-500
            text-white;
    }

    .form-label {
        @apply font-medium
            block;
    }

    .form-input {
        @apply p-3
            rounded
            border
            text-gray_r-12
            border-gray_r-7
            bg-white
            bg-transparent
            w-full
            leading-none
            focus:outline-none
            focus:border-warning-500
            disabled:bg-gray_r-5;
    }

    .form-input[aria-invalid='true'] {
        @apply border-danger-500
            focus:border-danger-500;
    }

    .form-input[type='file'] {
        @apply py-2;
    }

    .form-msg-danger {
        @apply text-danger-600 mt-2 block text-sm;
    }

    .btn-yellow,
    .btn-light,
    .btn-red,
    .btn-solid-red {
        @apply block
            w-fit
            py-3
            px-6
            rounded
            border
            text-center
            font-medium
            ease-linear
            duration-150;
    }

    .btn-yellow {
        @apply bg-warning-500
            border-warning-500
            hover:bg-warning-500/80
            disabled:text-gray_r-10
            disabled:bg-warning-200
            disabled:border-warning-200;
    }

    .btn-red {
        @apply bg-danger-100
            border-danger-300
            text-danger-500
            disabled:text-danger-400
            disabled:bg-danger-200;
    }

    .btn-solid-red {
        @apply bg-danger-500
            border-danger-500
            text-gray_r-1
            hover:bg-danger-500/80
            disabled:text-gray_r-1
            disabled:bg-danger-200
            disabled:border-danger-200;
    }

    .btn-light {
        @apply bg-gray_r-3
            border-gray_r-6
            disabled:text-gray_r-10
            disabled:bg-gray_r-6;
    }

    .product-card {
        @apply w-full
            h-full
            border
            border-gray_r-3
            shadow
            bg-white
            rounded
            relative
            flex
            flex-col;
    }

    .product-card__image {
        @apply w-full
            h-[160px]
            object-contain
            object-center
            border-b
            border-gray_r-6;
    }

    .product-card__content {
        @apply p-2
            pb-3
            flex-1;
    }

    .product-card__title {
        @apply text-caption-1
            text-gray_r-12
            leading-5;
    }

    .product-card__brand {
        @apply text-caption-1
            mb-1
            block;
    }

    .product__description {
        @apply text-gray_r-12/90;
    }

    .product__description br {
        @apply block my-1;
    }

    .product__description b {
        @apply font-semibold;
    }
}

@layer utilities {
    .wrap-line-ellipsis-1,
    .wrap-line-ellipsis-2,
    .wrap-line-ellipsis-3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wrap-line-ellipsis-1 {
        -webkit-line-clamp: 1;
    }

    .wrap-line-ellipsis-2 {
        -webkit-line-clamp: 2;
    }

    .wrap-line-ellipsis-3 {
        -webkit-line-clamp: 3;
    }
}

.menu-wrapper {
    @apply fixed
        top-0
        left-0
        bg-white
        w-[80%]
        h-full
        z-[60]
        overflow-y-auto
        translate-x-[-100%]
        ease-linear
        duration-150;
}

.menu-wrapper.active {
    @apply translate-x-0;
}

.overlay {
    @apply fixed
        top-0
        left-0
        w-full
        h-full
        z-[55]
        bg-gray_r-12/40;
}

.sticky-header {
    @apply px-4
        py-3
        bg-gray_r-1/90
        backdrop-blur-lg
        sticky
        top-0
        border-b
        border-gray_r-7
        z-50;
}

.content-container {
    @apply max-w-full
        overflow-x-hidden;
}

#indoteknik_toast {
    @apply fixed
        bottom-4
        translate-y-[200%]
        left-[50%]
        translate-x-[-50%]
        z-[100]
        flex
        items-center
        p-4
        mb-4
        w-[90%]
        text-gray-500
        bg-white
        border
        border-gray-300
        rounded-lg
        shadow
        ease-linear
        duration-300;
}

#indoteknik_toast.active {
    @apply translate-y-0;
}

.category-menu {
    @apply hidden;
}

.swiper-slide {
    @apply !h-auto;
}

.lazy-load-image-background {
    @apply !block
        w-full;
}

.swiper-pagination-bullet-active {
    @apply !bg-danger-500;
}

.pagination {
    @apply flex
        justify-center
        gap-x-1;
}

.pagination-item {
    @apply p-1
        flex
        justify-center
        items-center
        w-10
        rounded 
        ease-linear 
        duration-150 
        border
        border-gray_r-6
        bg-gray_r-3
        hover:bg-gray_r-5 
        text-gray_r-12;
}

.pagination-item--active {
    @apply border-warning-500
        bg-warning-500
        hover:bg-warning-500;
}

.pagination-dots {
    @apply p-1
        flex
        justify-center
        items-end
        w-10
        rounded 
        ease-linear 
        bg-gray_r-3
        text-caption-2;
}

.idt-transition {
    @apply transition-all
        ease-out
        duration-200;
}

.form-select__placeholder {
    @apply !text-gray_r-9;
}

.form-select__control {
    @apply !shadow-none
        !border-gray_r-7;
}

.form-select__control--menu-is-open {
    @apply !border-warning-500;
}

.table-specification {
    @apply max-h-[500px] overflow-y-auto border border-gray_r-6;
}

.table-specification > table {
    @apply table-auto
        border-collapse
        w-full;
}

.table-specification > table > thead > tr > th:last-child {
    @apply w-3/12;
}

.table-specification > table > thead {
    @apply sticky top-0 border-b;
}

.table-specification > table > thead > tr {
    @apply bg-gray_r-1/80 backdrop-blur-lg;
}

.table-specification th {
    @apply font-semibold;
}

.table-specification th,
.table-specification td {
    @apply p-4 text-center;
}

.table-specification > table > tbody > tr {
    @apply odd:bg-gray_r-3 even:bg-gray_r-1;
}

.table-cart,
.table-checkout {
    @apply w-full
        table-auto
        border-collapse;
}

.table-cart tr,
.table-checkout tr {
    @apply border-y 
        border-gray_r-6
        first:border-t-0;
}

.table-cart th,
.table-cart td,
.table-checkout th,
.table-checkout td {
    @apply py-4
        px-3
        text-center
        text-gray_r-12/90;
}

.table-cart th,
.table-cart td {
    @apply first:w-12;
}

.table-cart th,
.table-checkout th {
    @apply font-medium;
}

.table-data {
    @apply w-full
    table-auto
    border-collapse;
}

.table-data thead tr {
    @apply bg-gray_r-3;
}

.table-data thead th {
    @apply font-medium whitespace-nowrap;
}

.table-data thead th,
.table-data tbody td {
    @apply px-3 
        py-4
        text-center;
}

.table-data tbody td {
    @apply text-gray_r-12/90;
}

.table-data tbody tr {
    @apply border-b
        border-gray_r-6;
}

.navbar-user-dropdown-button {
    @apply flex-1
        flex
        gap-x-2
        p-4
        items-center
        bg-danger-500
        font-medium
        !text-gray_r-1
        rounded-none
        rounded-t-xl;
}

.navbar-user-dropdown-button span {
    @apply line-clamp-1;
}

.navbar-user-dropdown-wrapper a,
.navbar-user-dropdown-wrapper button {
    @apply text-gray_r-12/80 hover:bg-gray_r-5 font-medium py-2 px-4 w-full text-left;
}

.navbar-user-dropdown {
    @apply bg-white
        border
        border-gray_r-6
        py-2
        w-full
        shadow;
}

.category-mega-box-wrapper,
.navbar-user-dropdown-wrapper {
    @apply absolute
        opacity-0
        left-0
        top-[125%]
        flex
        w-full
        z-10
        transition-all
        ease-in
        duration-200
        pointer-events-none
        text-left;
}

.category-mega-box-wrapper.show,
.navbar-user-dropdown-button:hover ~ .navbar-user-dropdown-wrapper,
.navbar-user-dropdown-wrapper:hover {
    @apply top-[100%]
        opacity-100
        pointer-events-auto;
}

.category-mega-box {
    @apply relative
        py-2
        border
        border-t-0
        bg-white
        border-gray_r-6
        h-full
        w-full;
}

.category-mega-box > div {
    @apply text-gray_r-12/80;
}

.category-mega-box > div:hover .category-mega-box__parent {
    @apply bg-gray_r-5
    w-full;
}

.category-mega-box > div:hover .category-mega-box__child-wrapper {
    @apply opacity-100
        top-0
        pointer-events-auto;
}

.category-mega-box .category-mega-box__parent {
    @apply py-2.5
        px-4
        text-gray_r-12/80
        font-normal;
}

.category-mega-box__child-wrapper {
    @apply absolute 
        left-[100%] 
        top-12
        bg-gray_r-1/90
        backdrop-blur-md
        border 
        border-gray_r-6 
        p-6
        opacity-0
        h-full 
        transition-all
        ease-in
        duration-200
        pointer-events-none
        z-50;
}

.category-mega-box__child-one {
    @apply text-gray_r-12/80 
        hover:text-danger-500 
        transition-colors 
        ease-linear 
        duration-100 
        w-fit
        font-semibold;
}

.category-mega-box__child-two {
    @apply text-gray_r-12/80 
        hover:text-danger-500 
        transition-colors 
        ease-linear 
        duration-100 
        w-full
        font-normal;
}

@keyframes page-loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.page-loader {
    animation-name: page-loader;
    animation-duration: 1000ms;
    animation-delay: 50ms;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    10%,
    90% {
        transform: translateX(-10px);
    }
    20%,
    80% {
        transform: translateX(10px);
    }
    30%,
    50%,
    70% {
        transform: translateX(-10px);
    }
    40%,
    60% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.blink-color-flash-sale {
    @apply text-body-1 md:text-title-sm;
    transform: rotateY(180deg) rotateZ(120deg);
    animation-name: blink-color-flash-sale;
    animation-duration: 300ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes blink-color-flash-sale {
    from {
        @apply text-danger-500;
    }
    to {
        @apply text-warning-500;
    }
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
    border: 3px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}
.status-swiper {
  width: 100%;
  height: 100%;
}

.status-swiper .swiper-slide {
  width: auto !important;
}