martynawck commited on
Commit
6aaaa21
1 Parent(s): 9e6204c

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +504 -17
style.css CHANGED
@@ -1,28 +1,515 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
 
18
  .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
 
1
+ @import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
2
+
3
+ :root {
4
+ --c-text-primary: #282a32;
5
+ --c-text-secondary: #686b87;
6
+ --c-text-action: #404089;
7
+ --c-accent-primary: #434ce8;
8
+ --c-border-primary: #eff1f6;
9
+ --c-background-primary: #ffffff;
10
+ --c-background-secondary: #fdfcff;
11
+ --c-background-tertiary: #ecf3fe;
12
+ --c-background-quaternary: #e9ecf4;
13
+ }
14
+
15
  body {
16
+ line-height: 1.5;
17
+ min-height: 100vh;
18
+ font-family: "Be Vietnam Pro", sans-serif;
19
+ background-color: var(--c-background-secondary);
20
+ color: var(--c-text-primary);
21
+ }
22
+
23
+ img {
24
+ display: block;
25
+ max-width: 100%;
26
+ }
27
+
28
+ :focus {
29
+ outline: 0;
30
+ }
31
+
32
+ .responsive-wrapper {
33
+ width: 90%;
34
+ max-width: 1280px;
35
+ margin-left: auto;
36
+ margin-right: auto;
37
+ }
38
+
39
+ .header {
40
+ display: flex;
41
+ align-items: center;
42
+ height: 80px;
43
+ border-bottom: 1px solid var(--c-border-primary);
44
+ background-color: var(--c-background-primary);
45
+ }
46
+
47
+ .header-content {
48
+ display: flex;
49
+ align-items: center;
50
+ & > a {
51
+ display: none;
52
+ }
53
+ @media (max-width: 1200px) {
54
+ justify-content: space-between;
55
+ & > a {
56
+ display: inline-flex;
57
+ }
58
+ }
59
+ }
60
+
61
+ .header-logo {
62
+ margin-right: 2.5rem;
63
+ a {
64
+ display: flex;
65
+ align-items: center;
66
+ div {
67
+ // outline: 2px solid;
68
+ flex-shrink: 0;
69
+ position: relative;
70
+ &:after {
71
+ display: block;
72
+ content: "";
73
+ position: absolute;
74
+ left: 0;
75
+ top: auto;
76
+ right: 0;
77
+ bottom: 0;
78
+ overflow: hidden;
79
+ height: 50%;
80
+ border-bottom-left-radius: 8px;
81
+ border-bottom-right-radius: 8px;
82
+ background-color: rgba(#fff, 0.2);
83
+ backdrop-filter: blur(4px);
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ .header-navigation {
90
+ display: flex;
91
+ flex-grow: 1;
92
+ align-items: center;
93
+ justify-content: space-between;
94
+ @media (max-width: 1200px) {
95
+ display: none;
96
+ }
97
+ }
98
+
99
+ .header-navigation-links {
100
+ display: flex;
101
+ align-items: center;
102
+
103
+ a {
104
+ text-decoration: none;
105
+ color: var(--c-text-action);
106
+ font-weight: 500;
107
+ transition: 0.15s ease;
108
+ & + * {
109
+ margin-left: 1.5rem;
110
+ }
111
+
112
+ &:hover,
113
+ &:focus {
114
+ color: var(--c-accent-primary);
115
+ }
116
+ }
117
+ }
118
+
119
+ .header-navigation-actions {
120
+ display: flex;
121
+ align-items: center;
122
+ & > .avatar {
123
+ margin-left: 0.75rem;
124
+ }
125
+ & > .icon-button + .icon-button {
126
+ margin-left: 0.25rem;
127
+ }
128
+
129
+ & > .button + .icon-button {
130
+ margin-left: 1rem;
131
+ }
132
+ }
133
+
134
+ .button {
135
+ font: inherit;
136
+ color: inherit;
137
+ text-decoration: none;
138
+ display: inline-flex;
139
+ align-items: center;
140
+ justify-content: center;
141
+ padding: 0 1em;
142
+ height: 40px;
143
+ border-radius: 8px;
144
+ line-height: 1;
145
+ border: 2px solid var(--c-border-primary);
146
+ color: var(--c-text-action);
147
+ font-size: 0.875rem;
148
+ transition: 0.15s ease;
149
+ background-color: var(--c-background-primary);
150
+
151
+ i {
152
+ margin-right: 0.5rem;
153
+ font-size: 1.25em;
154
+ }
155
+
156
+ span {
157
+ font-weight: 500;
158
+ }
159
+
160
+ &:hover,
161
+ &:focus {
162
+ border-color: var(--c-accent-primary);
163
+ color: var(--c-accent-primary);
164
+ }
165
+ }
166
+
167
+ .icon-button {
168
+ font: inherit;
169
+ color: inherit;
170
+ text-decoration: none;
171
+ display: inline-flex;
172
+ align-items: center;
173
+ justify-content: center;
174
+ width: 40px;
175
+ height: 40px;
176
+ border-radius: 8px;
177
+ color: var(--c-text-action);
178
+ transition: 0.15s ease;
179
+ i {
180
+ font-size: 1.25em;
181
+ }
182
+
183
+ &:focus,
184
+ &:hover {
185
+ background-color: var(--c-background-tertiary);
186
+ color: var(--c-accent-primary);
187
+ }
188
+ }
189
+
190
+ .avatar {
191
+ display: inline-flex;
192
+ align-items: center;
193
+ justify-content: center;
194
+ width: 44px;
195
+ height: 44px;
196
+ border-radius: 50%;
197
+ overflow: hidden;
198
+ }
199
+
200
+ .main {
201
+ padding-top: 3rem;
202
+ }
203
+
204
+ .main-header {
205
+ display: flex;
206
+ flex-wrap: wrap;
207
+ align-items: center;
208
+ justify-content: space-between;
209
+
210
+ h1 {
211
+ font-size: 1.75rem;
212
+ font-weight: 600;
213
+ line-height: 1.25;
214
+ @media (max-width: 550px) {
215
+ margin-bottom: 1rem;
216
+ }
217
+ }
218
+ }
219
+
220
+ .search {
221
+ position: relative;
222
+ display: flex;
223
+ align-items: center;
224
+ width: 100%;
225
+ max-width: 340px;
226
+ input {
227
+ font: inherit;
228
+ color: inherit;
229
+ text-decoration: none;
230
+ display: inline-flex;
231
+ align-items: center;
232
+ justify-content: center;
233
+ padding: 0 1em 0 36px;
234
+ height: 40px;
235
+ border-radius: 8px;
236
+ border: 2px solid var(--c-border-primary);
237
+ color: var(--c-text-action);
238
+ font-size: 0.875rem;
239
+ transition: 0.15s ease;
240
+ width: 100%;
241
+ line-height: 1;
242
+
243
+ &::placeholder {
244
+ color: var(--c-text-action);
245
+ }
246
+
247
+ &:focus,
248
+ &:hover {
249
+ border-color: var(--c-accent-primary);
250
+ }
251
+ }
252
+
253
+ button {
254
+ display: inline-flex;
255
+ align-items: center;
256
+ justify-content: center;
257
+ border: 0;
258
+ background-color: transparent;
259
+ position: absolute;
260
+ left: 12px;
261
+ top: 50%;
262
+ transform: translateY(-50%);
263
+ font-size: 1.25em;
264
+ color: var(--c-text-action);
265
+ padding: 0;
266
+ height: 40px;
267
+ }
268
  }
269
 
270
+ .horizontal-tabs {
271
+ margin-top: 1.5rem;
272
+ display: flex;
273
+ align-items: center;
274
+ overflow-x: auto;
275
+ @media (max-width: 1000px) {
276
+ scrollbar-width: none;
277
+ position: relative;
278
+ &::-webkit-scrollbar {
279
+ display: none;
280
+ }
281
+ }
282
+
283
+ a {
284
+ display: inline-flex;
285
+ flex-shrink: 0;
286
+ align-items: center;
287
+ height: 48px;
288
+ padding: 0 0.25rem;
289
+ font-weight: 500;
290
+ color: inherit;
291
+ border-bottom: 3px solid transparent;
292
+ text-decoration: none;
293
+ transition: 0.15s ease;
294
+ &:hover,
295
+ &:focus,
296
+ &.active {
297
+ color: var(--c-accent-primary);
298
+ border-bottom-color: var(--c-accent-primary);
299
+ }
300
+
301
+ & + * {
302
+ margin-left: 1rem;
303
+ }
304
+ }
305
  }
306
 
307
+ .content-header {
308
+ display: flex;
309
+ flex-wrap: wrap;
310
+ align-items: center;
311
+ justify-content: space-between;
312
+ padding-top: 3rem;
313
+ margin-top: -1px;
314
+ border-top: 1px solid var(--c-border-primary);
315
+ }
316
+
317
+ .content-header-intro {
318
+ h2 {
319
+ font-size: 1.25rem;
320
+ font-weight: 600;
321
+ }
322
+
323
+ p {
324
+ color: var(--c-text-secondary);
325
+ margin-top: 0.25rem;
326
+ font-size: 0.875rem;
327
+ margin-bottom: 1rem;
328
+ }
329
+ }
330
+
331
+ .content-header-actions {
332
+ a:first-child {
333
+ @media (min-width: 800px) {
334
+ display: none;
335
+ }
336
+ }
337
+ }
338
+
339
+ .content {
340
+ border-top: 1px solid var(--c-border-primary);
341
+ margin-top: 2rem;
342
+ display: flex;
343
+ align-items: flex-start;
344
+ }
345
+ .content-panel {
346
+ display: none;
347
+ max-width: 280px;
348
+ width: 25%;
349
+ padding: 2rem 1rem 2rem 0;
350
+ margin-right: 3rem;
351
+ @media (min-width: 800px) {
352
+ display: block;
353
+ }
354
+ }
355
+
356
+ .vertical-tabs {
357
+ display: flex;
358
+ flex-direction: column;
359
+ a {
360
+ display: flex;
361
+ align-items: center;
362
+ padding: 0.75em 1em;
363
+ background-color: transparent;
364
+ border-radius: 8px;
365
+ text-decoration: none;
366
+ font-weight: 500;
367
+ color: var(--c-text-action);
368
+ transition: 0.15s ease;
369
+ &:hover,
370
+ &:focus,
371
+ &.active {
372
+ background-color: var(--c-background-tertiary);
373
+ color: var(--c-accent-primary);
374
+ }
375
+
376
+ & + * {
377
+ margin-top: 0.25rem;
378
+ }
379
+ }
380
+ }
381
+
382
+ .content-main {
383
+ padding-top: 2rem;
384
+ padding-bottom: 6rem;
385
+ flex-grow: 1;
386
+ }
387
+
388
+ .card-grid {
389
+ display: grid;
390
+ grid-template-columns: repeat(1, 1fr);
391
+ column-gap: 1.5rem;
392
+ row-gap: 1.5rem;
393
+ @media (min-width: 600px) {
394
+ grid-template-columns: repeat(2, 1fr);
395
+ }
396
+ @media (min-width: 1200px) {
397
+ grid-template-columns: repeat(3, 1fr);
398
+ }
399
  }
400
 
401
  .card {
402
+ background-color: var(--c-background-primary);
403
+ box-shadow: 0 3px 3px 0 rgba(#000, 0.05), 0 5px 15px 0 rgba(#000, 0.05);
404
+ border-radius: 8px;
405
+ overflow: hidden;
406
+ display: flex;
407
+ flex-direction: column;
408
+ }
409
+
410
+ .card-header {
411
+ display: flex;
412
+ align-items: flex-start;
413
+ justify-content: space-between;
414
+ padding: 1.5rem 1.25rem 1rem 1.25rem;
415
+ div {
416
+ display: flex;
417
+ align-items: center;
418
+
419
+ span {
420
+ width: 40px;
421
+ height: 40px;
422
+ border-radius: 8px;
423
+ display: inline-flex;
424
+ align-items: center;
425
+ justify-content: center;
426
+ img {
427
+ // max-width: 85%;
428
+ max-height: 100%;
429
+ }
430
+ }
431
+
432
+ h3 {
433
+ margin-left: 0.75rem;
434
+ font-weight: 500;
435
+ }
436
+ }
437
  }
438
 
439
+ .toggle {
440
+ span {
441
+ display: block;
442
+ width: 40px;
443
+ height: 24px;
444
+ border-radius: 99em;
445
+ background-color: var(--c-background-quaternary);
446
+ box-shadow: inset 1px 1px 1px 0 rgba(#000, 0.05);
447
+ position: relative;
448
+ transition: 0.15s ease;
449
+ &:before {
450
+ content: "";
451
+ display: block;
452
+ position: absolute;
453
+ left: 3px;
454
+ top: 3px;
455
+ height: 18px;
456
+ width: 18px;
457
+ background-color: var(--c-background-primary);
458
+ border-radius: 50%;
459
+ box-shadow: 0 1px 3px 0 rgba(#000, 0.15);
460
+ transition: 0.15s ease;
461
+ }
462
+ }
463
+
464
+ input {
465
+ clip: rect(0 0 0 0);
466
+ clip-path: inset(50%);
467
+ height: 1px;
468
+ overflow: hidden;
469
+ position: absolute;
470
+ white-space: nowrap;
471
+ width: 1px;
472
+ &:checked + span {
473
+ background-color: var(--c-accent-primary);
474
+ &:before {
475
+ transform: translateX(calc(100% - 2px));
476
+ }
477
+ }
478
+
479
+ &:focus + span {
480
+ box-shadow: 0 0 0 4px var(--c-background-tertiary);
481
+ }
482
+ }
483
+ }
484
+
485
+ .card-body {
486
+ padding: 1rem 1.25rem;
487
+ font-size: 0.875rem;
488
+ }
489
+
490
+ .card-footer {
491
+ margin-top: auto;
492
+ padding: 1rem 1.25rem;
493
+ display: flex;
494
+ align-items: center;
495
+ justify-content: flex-end;
496
+ border-top: 1px solid var(--c-border-primary);
497
+ a {
498
+ color: var(--c-text-action);
499
+ text-decoration: none;
500
+ font-weight: 500;
501
+ font-size: 0.875rem;
502
+ }
503
+ }
504
+
505
+ html {
506
+ &::-webkit-scrollbar {
507
+ width: 12px;
508
+ }
509
+
510
+ &::-webkit-scrollbar-thumb {
511
+ background-color: var(--c-text-primary);
512
+ border: 4px solid var(--c-background-primary);
513
+ border-radius: 99em;
514
+ }
515
  }