-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathglobals.css
383 lines (306 loc) · 10.1 KB
/
globals.css
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
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@200;300;400;500;600;700&family=Rubik:wght@300;400;500;600;700;800;900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
/* Global Styles */
html {
@apply overflow-x-hidden;
scroll-behavior: smooth;
}
body {
@apply transition-element m-0 min-w-[500px] overflow-x-hidden p-0 font-rubik text-indigo-600;
}
img {
@apply max-w-full select-none;
-webkit-user-drag: none;
user-drag: none;
-webkit-touch-callout: none;
}
button,
input {
@apply focus:outline-none;
}
ol,
ul {
list-style: initial;
}
select {
@apply outline-none focus:outline-none;
}
/* Headings & Subtitles */
h1 {
@apply text-7xl font-extrabold tracking-[3px] lg:text-[120px];
}
h2 {
@apply text-5xl font-extrabold md:text-5xl;
}
h3 {
@apply text-3xl font-extrabold md:text-[40px] md:leading-10;
}
h4 {
@apply text-xl font-extrabold md:text-2xl;
}
h5 {
@apply text-lg font-semibold md:text-xl;
}
h6 {
@apply text-lg font-extrabold;
}
p {
@apply !block whitespace-pre-line font-ibm text-base font-medium md:text-lg lg:text-xl;
}
.subtitle1 {
@apply text-2xl font-medium leading-9;
}
/* Selection Color */
::selection {
@apply bg-indigo-200;
}
::-moz-selection {
@apply bg-indigo-200;
}
}
@layer components {
/* Buttons */
.button {
@apply button-styles h-[34px] gap-2 border-b-[6px]
bg-white bg-[url("/assets/icons/arrow-right.svg")] bg-[length:15px_10px] bg-[right_20px_center]
py-1.5 pl-5 pr-[43px] outline outline-[3px] outline-indigo-600
hover:text-magenta-500 focus:outline focus:outline-[3px] focus:outline-offset-0 focus:outline-indigo-600;
}
.button-next {
@apply button bg-indigo-700 text-white;
}
.button-prev {
@apply button bg-[url("/assets/icons/arrow-left.svg")] bg-[left_20px_center]
py-1.5 pl-[43px] pr-5 hover:-translate-x-1;
}
.button-transparent {
@apply button-styles border-b-[3px] bg-[url("/assets/icons/arrow-right.svg")]
bg-[length:15px_10px] bg-[right_30%] pb-2 pr-[26px] text-white;
}
.button-voted {
@apply flex h-[34px] w-[160px] items-center justify-center gap-2 border-b-[6px] border-white bg-aquamarine-400
bg-[url("/assets/icons/voted-check-white.svg")] bg-[left_40px_center] bg-no-repeat
py-1.5 pl-12 pr-5 font-extrabold uppercase outline outline-[3px] outline-indigo-600
focus:outline focus:outline-[3px] focus:outline-offset-0 focus:outline-indigo-600;
}
/* Cards */
.card {
@apply relative flex h-full w-full max-w-[1280px] flex-col border-[6px] border-indigo-600 bg-gradient-teal p-6;
}
.card-blue-dots {
@apply before:absolute before:-right-[53px] before:-top-[33px] before:h-[63px] before:w-[226px]
before:bg-[url('/assets/svgs/blue-dots-top.svg')] before:bg-no-repeat before:content-['']
after:absolute after:-bottom-[33px] after:-left-[49px] after:h-[63px] after:w-[226px]
after:bg-[url('/assets/svgs/blue-dots-bottom.svg')] after:bg-no-repeat after:content-[''];
}
.card-white-dots {
@apply card-blue-dots before:bg-[url('/assets/svgs/white-dots-top.svg')] after:bg-[url('/assets/svgs/white-dots-bottom.svg')];
}
.card-metric {
@apply flex h-20 min-w-[30%] grow flex-col justify-center border-4 border-aquamarine-300 bg-white p-5;
}
.card-link {
@apply flex h-12 cursor-pointer justify-center border-4 border-aquamarine-300 bg-white px-5 py-3 text-sm font-medium leading-4;
}
.card-table-row {
@apply card h-[78px] cursor-pointer flex-row gap-2 border-[3px] bg-gradient-teal-2 lg:gap-4;
}
/* Icons & Dots */
.arrow-right-icon {
@apply icon h-[10px] w-[15px] bg-[url('/assets/icons/arrow-right.svg')];
}
.explore-icon {
@apply icon h-6 w-5 bg-[url('/assets/icons/explore.svg')];
}
.my-votes-icon {
@apply icon h-6 w-6 bg-[url('/assets/icons/my-votes.svg')];
}
.disconnect-icon {
@apply icon h-6 w-6 bg-[url('/assets/icons/disconnect.svg')];
}
.voted-check-icon {
@apply icon h-4 w-4 bg-[url('/assets/icons/voted-check-green.svg')];
}
.arrow-left-blue-icon {
@apply icon h-2.5 w-[15px] bg-[url('/assets/icons/arrow-left-blue.svg')];
}
.twitter-icon {
@apply icon h-10 w-10 bg-[url('/assets/icons/twitter.svg')];
}
.discord-icon {
@apply icon h-10 w-10 bg-[url('/assets/icons/discord.svg')];
}
.github-icon {
@apply icon h-10 w-10 bg-[url('/assets/icons/github.svg')];
}
.link-icon {
@apply icon h-4 w-4 bg-[url('/assets/icons/link.svg')];
}
.close-icon {
@apply icon h-8 w-8 bg-[url('/assets/icons/close.svg')];
}
.close-blue-icon {
@apply icon h-8 w-8 bg-[url('/assets/icons/close-blue.svg')];
}
.close-2-icon {
@apply icon h-6 w-6 bg-[url('/assets/icons/close.svg')];
}
.dashes-blue {
@apply icon h-1 w-[33px] !cursor-default bg-[url('/assets/svgs/dashes-blue.svg')];
}
.dashes-white {
@apply icon h-1 w-[33px] !cursor-default bg-[url('/assets/svgs/dashes-white.svg')];
}
/* Modals */
.modal-overlay {
@apply fixed left-0 top-0 z-50 flex h-full w-full flex-col items-center justify-center bg-indigo-600/50 backdrop-blur-lg sm:z-40 sm:pt-[82px];
}
.modal-footer {
@apply h-[72px] border-t-[6px] border-indigo-600 bg-[url("/assets/backgrounds/bg-card-bottom.svg")] bg-cover bg-center;
}
.project-modal-dots {
@apply h-5 w-[828px] !cursor-default bg-[url('/assets/svgs/project-modal-dots.svg')] bg-contain bg-center bg-no-repeat;
}
/* Project Card */
.project-icon {
@apply flex items-center justify-center rounded-full border-[6px] border-indigo-600 bg-white p-2;
}
.category-tag {
@apply flex items-center justify-start bg-aquamarine-400 px-2 py-1.5 text-[10px] font-extrabold uppercase leading-[10px];
}
.project-card-dots {
@apply h-[34px] w-[292px] !cursor-default bg-[url('/assets/svgs/project-card-dots.svg')] bg-contain bg-center bg-no-repeat;
}
.select-project {
@apply transition-element flex h-16 min-h-[64px] w-16 min-w-[64px] items-center
justify-center rounded-full border-[6px] border-indigo-200 bg-white/50 bg-[url('/assets/icons/select-project.svg')]
bg-[length:35px_36px] bg-center bg-no-repeat p-2 hover:border-aquamarine-400
hover:bg-white hover:bg-[url('/assets/icons/select-project-hover.svg')] hover:shadow-aqua;
}
.select-project-active {
@apply transition-element flex h-16 min-h-[64px] w-16 min-w-[64px] items-center justify-center rounded-full border-[6px]
border-indigo-600 bg-white bg-[url('/assets/icons/select-project-active.svg')] bg-[length:35px_36px]
bg-center bg-no-repeat p-2;
}
/* Backgrounds */
.heading-bg {
@apply -mt-[82px] h-screen bg-heading-image bg-cover bg-center bg-no-repeat;
}
.bg {
@apply min-h-screen bg-empty-image bg-cover bg-fixed bg-center bg-no-repeat;
}
/* Header */
.header-link {
@apply border-b-[5px] border-transparent pb-[22px] pt-7 uppercase hover:border-magenta-500 hover:text-magenta-500;
}
.header-link-active {
@apply border-magenta-500 text-magenta-500;
}
.banner {
@apply flex h-12 w-full min-w-[100vw] items-center gap-2 bg-indigo-600 px-8 py-1 font-light text-white shadow md:px-12 lg:h-10;
}
/* Search Input */
.search-input {
@apply mb-16 h-[70px] w-full border-[6px] border-indigo-200 bg-white bg-[url("/assets/icons/search.svg")]
bg-[18px_center] bg-no-repeat py-4
pl-[50px] pr-5 font-normal text-indigo-500 placeholder:text-indigo-300;
}
/* Misc */
.wallet-address-dropdown {
@apply transition-element flex cursor-pointer items-center justify-center border-b-[6px] border-aquamarine-400
bg-[url("/assets/icons/dropdown.svg")] bg-[right_25%] bg-no-repeat pb-1 pr-7 font-bold before:mr-2
before:h-2.5 before:w-2.5 before:rounded-full before:bg-aquamarine-400 before:content-[''];
}
.step-active {
@apply h-4 w-4 rounded-full border-2 border-indigo-600 bg-aquamarine-400;
}
.step-inactive {
@apply h-4 w-4 rounded-full border-2 border-indigo-200 bg-white;
}
.truncate-2-lines {
@apply truncate-lines;
-webkit-line-clamp: 2;
}
.truncate-4-lines {
@apply truncate-lines;
-webkit-line-clamp: 4;
}
/* Toggle */
.toggle {
@apply relative h-5 w-9 rounded-full bg-gray-200
after:absolute after:start-[2px] after:top-[2px] after:h-4 after:w-4
after:rounded-full after:border after:border-gray-300 after:bg-white
after:transition-all after:duration-200 after:ease-in-out after:content-[''];
}
.toggle-active {
@apply bg-indigo-600 after:translate-x-full after:border-white;
}
}
@layer utilities {
.button-styles {
@apply transition-element flex w-fit cursor-pointer items-center justify-center border-aquamarine-400
bg-no-repeat font-extrabold uppercase transition-transform hover:translate-x-1 disabled:pointer-events-none disabled:opacity-50;
}
.icon {
@apply cursor-pointer bg-contain bg-center bg-no-repeat;
}
.transition-element {
@apply transition-all duration-75 ease-linear;
}
.side-padding {
@apply px-[5%] md:px-[10%];
}
.show-scrollbar {
overflow-y: scroll !important;
}
.hide-scrollbar {
overflow: hidden !important;
}
.truncate-lines {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
}
/* Custom Scrollbar */
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #2bfae1 transparent;
}
/* Chrome, Edge, and Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
width: 9px !important;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: transparent;
margin-right: 4px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
border: none !important;
transition: all 0.4s;
-moz-transition: all 0.4s;
-webkit-transition: all 0.4s;
}
::-webkit-scrollbar-thumb {
border-right: 4px transparent solid;
background-clip: padding-box;
border-radius: 8px;
background-color: #2bfae1;
padding-top: 8px;
transition: all 0.4s;
-moz-transition: all 0.4s;
-webkit-transition: all 0.4s;
}
::-webkit-scrollbar-thumb:hover {
background-color: #20e5ce;
}