summaryrefslogtreecommitdiff
path: root/src/styles/globals.css
blob: d0080ddabdf46699cc7b3f8c1fb7ff5c92636609 (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
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

html, body {
    @apply 
        w-screen
        text-base
        text-gray-900
    ;
}

@layer base {
    h1, .h1 {
        @apply
            text-lg
            font-semibold
            text-gray-900
        ;
    }

    a {
        @apply 
            font-medium
            text-yellow-900
        ;
    }
}

@layer components {
    .badge-red {
        @apply
            text-xs
            font-medium
            px-1
            py-0.5
            rounded
            bg-red-300
            text-red-900
        ;
    }

    .badge-yellow {
        @apply
            text-xs
            font-medium
            px-1
            py-0.5
            rounded
            bg-yellow-300
            text-yellow-900
        ;
    }

    .form-label {
        @apply
            text-sm
            mb-1
            block
        ;
    }

    .form-input {
        @apply 
            p-3
            rounded
            border
            border-gray-300
            bg-transparent
            w-full
            leading-none
        ;
    }

    .btn-primary {
        @apply 
            block
            w-fit
            p-3
            bg-yellow-900
            border-yellow-900
            rounded
            border
            text-white
            text-center
            disabled:bg-yellow-700
            disabled:border-yellow-700
        ;
    }

    .btn-light {
        @apply 
            block
            w-fit
            p-3
            bg-gray-100
            border-gray-300
            rounded
            border
            text-gray-900
            text-center
        ;
    }

    .product-card {
        @apply
            w-full
            h-full
            border
            border-gray-300
            rounded
            relative
            flex
            flex-col
        ;
    }

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

    .product-card__description {
        @apply
            p-2
            pb-3
            flex
            flex-col
            flex-1
            justify-between
        ;
    }

    .product-card__title {
        @apply
            text-sm
            text-gray-900
            h-16
        ;
    }

    .product-card__brand {
        @apply text-sm;
    }
}

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

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

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

.menu-overlay {
    @apply
        fixed
        top-0
        left-0
        w-full
        h-full
        z-[55]
        bg-gray-900/60
    ;
}

.sticky-header {
    @apply
        px-4
        py-3
        bg-white
        border-b
        sticky
        top-0
        shadow
        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;
}

.swiper-pagination-bullet-active {
    @apply !bg-yellow-900;
}