Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3596 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3596 stevensc 1
import { css } from '@emotion/react';
2
 
3
import colors from '@styles/config/colors';
4
 
5
export const globalStyles = css`
6
  html {
7
    font-size: 14px;
8
  }
9
  *::-webkit-scrollbar {
10
    width: 6px !important;
11
    height: 6px !important;
12
  }
13
  *::-webkit-scrollbar-thumb {
14
    background-color: rgba(0, 0, 0, 0.2);
15
  }
16
  *::-webkit-scrollbar-track {
17
    background: rgba(255, 255, 255, 0.08);
18
  }
19
  *::-webkit-input-placeholder,
20
  *::-moz-placeholder {
21
    color: #ccc;
22
    font-size: 15px;
23
  }
24
  h1,
25
  h2,
26
  h3,
27
  h4,
28
  h5,
29
  h6,
30
  p,
31
  b,
32
  a,
33
  span,
34
  label {
35
    color: ${colors.font.primary};
36
  }
37
  h1,
38
  h2,
39
  h3 {
40
    color: ${colors.font.title};
41
    font-weight: 700;
42
  }
43
  h4,
44
  h5,
45
  h6,
46
  span {
47
    color: ${colors.font.subtitle};
48
    font-weight: 600;
49
    font-size: 1rem;
50
    align-items: center;
51
  }
52
  span {
53
    display: inline-flex;
54
  }
55
  body {
56
    background-color: var(--body-bg-color);
57
    position: relative;
58
    overflow: hidden auto;
59
    font-family:
60
      -apple-system,
61
      system-ui,
62
      blink-mac-system-font,
63
      segoe ui,
64
      roboto,
65
      helvetica neue,
66
      fira sans,
67
      ubuntu,
68
      oxygen,
69
      oxygen sans,
70
      cantarell,
71
      droid sans,
72
      apple color emoji,
73
      segoe ui emoji,
74
      segoe ui emoji,
75
      segoe ui symbol,
76
      lucida grande,
77
      helvetica,
78
      arial,
79
      sans-serif;
80
    font-weight: 400;
81
    width: 100vw;
82
  }
83
  ul,
84
  ol {
85
    list-style: none;
86
    padding: 0;
87
    margin: 0;
88
  }
89
  form {
90
    margin: 0;
91
  }
92
  a {
93
    text-decoration: none;
94
    color: ${colors.font.subtitle};
95
    &:focus,
96
    &:hover,
97
    &:visited,
98
    &:link,
99
    &:active {
100
      text-decoration: none;
101
      outline: none;
102
      color: ${colors.font.subtitle};
103
    }
104
  }
105
  table {
106
    border-collapse: collapse;
107
    border-spacing: 0;
108
  }
109
  button {
110
    outline: none;
111
    border: none;
112
    padding: 0;
113
    background-color: transparent;
114
    &:active,
115
    &:focus {
116
      outline: none;
117
    }
118
  }
119
  input,
120
  textarea {
121
    outline: none;
122
  }
123
  section {
124
    width: 100%;
125
    position: relative;
126
  }
127
  p {
128
    color: ${colors.font.primary};
129
    font-size: 1rem;
130
    line-height: 1.2;
131
  }
132
  hr {
133
    margin-top: 1rem;
134
    margin-bottom: 1rem;
135
    border: 0;
136
    border-top: 1px solid #e5e5e5;
137
  }
138
  #app {
139
    display: grid;
140
    grid-template-rows: auto 1fr auto;
141
    gap: 1rem;
142
    min-height: 100vh;
143
  }
144
  .smiley-panel {
145
    transform-origin: bottom;
146
    overflow: hidden;
147
  }
148
  .smiley-panel-body {
149
    height: 160px;
150
    padding: 10px 0;
151
    border-top: 1px solid ${colors.border.primary};
152
    overflow: auto;
153
 
154
    .e1 {
155
      cursor: pointer;
156
    }
157
  }
158
  .fadedown {
159
    transition:
160
      opacity 300ms ease-in,
161
      transform 300ms ease-in;
162
    animation: 300ms ease-in 0s both fadedown;
163
  }
164
  .rbc-month-view,
165
  .rbc-time-view {
166
    background-color: ${colors.main};
167
  }
168
  .rbc-toolbar .rbc-btn-group button {
169
    background-color: ${colors.main};
170
  }
171
  .rbc-toolbar .rbc-toolbar-label {
172
    text-transform: capitalize;
173
    font-size: 1rem;
174
    color: ${colors.font.title};
175
  }
176
  .rbc-toolbar .rbc-btn-group svg {
177
    font-size: 1.1rem;
178
  }
179
  .rbc-calendar {
180
    min-height: 500px;
181
  }
182
  .companies-list {
183
    display: grid;
184
    gap: 0.5rem;
185
    position: relative;
186
    width: 100%;
187
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
188
  }
189
  .btn {
190
    display: inline-flex;
191
    align-items: center;
192
    border: none;
193
    border-radius: 30px;
194
    cursor: pointer;
195
    font-size: 0.95rem;
196
    line-height: 1;
197
    overflow: hidden;
198
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
199
    border-radius: ${colors.border.radius};
200
  }
201
  .btn-primary {
202
    background-color: ${colors.button.background.primary};
203
    color: ${colors.button.text.primary} !important;
204
    &:hover {
205
      background-color: ${colors.main};
206
    }
207
  }
208
  .btn-secondary {
209
    background: ${colors.button.background.secondary};
210
    color: ${colors.button.text.secondary} !important;
211
    &:hover {
212
      background-color: ${colors.button.background.secondary};
213
    }
214
  }
215
  .btn-tertiary {
216
    background-color: ${colors.button.background.tertiary};
217
    color: ${colors.button.text.tertiary} !important;
218
    &:hover {
219
      background: ${colors.button.background.tertiary};
220
      color: ${colors.button.text.tertiary} !important;
221
    }
222
  }
223
  .btn-secondary:disabled,
224
  .btn-primary:disabled,
225
  .btn-tertiary:disabled {
226
    cursor: no-drop;
227
  }
228
  .ck.ck-content {
229
    height: 100px;
230
  }
231
  .pac-container {
232
    z-index: 1051 !important;
233
  }
234
  .img-icon {
235
    height: 1rem;
236
    width: 1rem;
237
 
238
    &.lg {
239
      height: 1.5rem;
240
      width: 1.5rem;
241
    }
242
 
243
    &.options {
244
      height: 1.5rem;
245
      width: auto;
246
    }
247
 
248
    &.options-sm {
249
      height: 1rem;
250
      width: auto;
251
    }
252
 
253
    &.options-lg {
254
      height: 1.5rem;
255
      width: auto;
256
    }
257
  }
258
 
259
  ::-webkit-input-placeholder {
260
    /* Chrome/Opera/Safari */
261
    color: #b2b2b2;
262
  }
263
 
264
  ::-moz-placeholder {
265
    /* Firefox 19+ */
266
    color: #b2b2b2;
267
  }
268
 
269
  :-ms-input-placeholder {
270
    /* IE 10+ */
271
    color: #b2b2b2;
272
  }
273
 
274
  :-moz-placeholder {
275
    /* Firefox 18- */
276
    color: #b2b2b2;
277
  }
278
 
279
  .skill-tags {
280
    display: flex;
281
    flex-wrap: wrap;
282
    gap: 0.5rem;
283
  }
284
 
285
  .row {
286
    margin: 0;
287
  }
288
 
289
  .marketplace_card {
290
    background: $bg-color;
291
    border-radius: $border-radius;
292
    display: flex;
293
    flex-direction: column;
294
    max-width: 250px;
295
    overflow: hidden;
296
    transition: all 200ms;
297
    margin: auto;
298
 
299
    img {
300
      object-fit: cover;
301
      aspect-ratio: 4/2.5;
302
    }
303
 
304
    &:hover {
305
      transform: translateY(-1rem);
306
      box-shadow: $light-shadow;
307
    }
308
  }
309
 
310
  .settings-container {
311
    font-weight: normal;
312
    h2 {
313
      font-size: 18px;
314
      font-weight: 600;
315
      margin: 0.5rem auto;
316
      color: $subtitle-color;
317
    }
318
  }
319
 
320
  .acc-setting_content {
321
    padding: 2rem 1rem;
322
    width: 100%;
323
    overflow: hidden;
324
    border-radius: 10px;
325
    background-color: $bg-color;
326
    border: 1px solid $border-primary;
327
    box-shadow: 1px 0 4px var(--background-gray);
328
  }
329
 
330
  .notbat {
331
    display: flex;
332
    justify-content: space-between;
333
    border-top: 1px solid $border-primary;
334
    padding: 0.5rem 1rem;
335
    width: 100%;
336
    & > span {
337
      max-width: 70%;
338
    }
339
  }
340
 
341
  .cp-field {
342
    width: 100%;
343
    display: flex;
344
    flex-direction: column;
345
    align-items: flex-start;
346
    flex: 1;
347
    h5 {
348
      color: $title-color;
349
      font-size: 16px;
350
      font-weight: 600;
351
    }
352
    label {
353
      font-weight: 600;
354
      color: $subtitle-color;
355
    }
356
    input,
357
    textarea,
358
    select,
359
    .custom-input {
360
      background-color: $bg-color;
361
      border-radius: 10px;
362
      color: $font-color;
363
      border: 1px solid $border-primary;
364
      padding: 0.5rem 1rem;
365
      width: 100%;
366
    }
367
    textarea {
368
      height: 115px;
369
    }
370
  }
371
 
372
  .cpp-fiel {
373
    width: 100%;
374
    position: relative;
375
    i {
376
      position: absolute;
377
      top: 12px;
378
      left: 15px;
379
      color: #b2b2b2;
380
      font-size: 16px;
381
    }
382
  }
383
 
384
  .text-chat-title {
385
    color: var(--gray) !important;
386
    font-size: 1rem;
387
  }
388
 
389
  .chat-header a {
390
    text-decoration: none;
391
    color: var(--dark);
392
  }
393
 
394
  .chat-header h2 {
395
    font-weight: 700;
396
    text-align: center;
397
  }
398
 
399
  .pac-container {
400
    z-index: 1051 !important;
401
  }
402
 
403
  .form-group {
404
    margin-bottom: 1rem;
405
    padding-top: 0px;
406
  }
407
 
408
  .description__label {
409
    display: flex;
410
    flex-direction: column;
411
    label {
412
      font-size: 1rem;
413
      font-weight: 600;
414
    }
415
    p {
416
      font-size: 0.9rem;
417
    }
418
    margin-bottom: 1rem;
419
  }
420
  .user__options-dropdown,
421
  .nav__options-dropdown {
422
    position: absolute;
423
    right: 0;
424
    min-width: 220px;
425
    top: calc(100% + 10px);
426
    background-color: var(--bg-color);
427
    border-radius: 5px;
428
    box-shadow:
429
 
430
 
431
    transition: all 0.2s ease-in-out;
432
    transform-origin: top;
433
 
434
    &.fadeOut {
435
      transform: scaleY(0);
436
      opacity: 0;
437
    }
438
 
439
    &.fadeIn {
440
      transform: scaleY(1);
441
      opacity: 1;
442
    }
443
 
444
    ul {
445
      display: flex;
446
      flex-direction: column;
447
      gap: 0.5rem;
448
 
449
      a {
450
        white-space: nowrap;
451
      }
452
    }
453
  }
454
 
455
  .user__options-dropdown {
456
    border-top-right-radius: 0;
457
  }
458
 
459
  .user__options-item {
460
    padding: 1rem 10px;
461
    border-top: 1px solid rgba(0, 0, 0, 0.08);
462
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
463
    display: flex;
464
    flex-direction: column;
465
    gap: 0.5rem;
466
 
467
    h3 {
468
      font-weight: 600;
469
    }
470
 
471
    ul {
472
      display: flex;
473
      flex-direction: column;
474
      gap: 0.5rem;
475
 
476
      a {
477
        color: gray !important;
478
 
479
        &:hover {
480
          text-decoration: underline !important;
481
        }
482
      }
483
    }
484
  }
485
 
486
  .nav__options-dropdown {
487
    transform: scaleY(0);
488
    right: -10%;
489
    opacity: 0;
490
    padding: 1rem;
491
    min-width: fit-content;
492
    ul {
493
      display: flex;
494
      flex-direction: column;
495
      a {
496
        color: gray;
497
 
498
        &:hover {
499
          text-decoration: underline;
500
        }
501
      }
502
    }
503
 
504
    &.level_three {
505
      transform: scaleY(1);
506
      transform: scaleX(0);
507
      top: -10%;
508
      left: 100%;
509
      max-height: 20rem;
510
      overflow: auto;
511
      transform-origin: left;
512
 
513
      a {
514
        max-width: 30ch;
515
      }
516
    }
517
 
518
    &.mobile {
519
      top: initial;
520
      bottom: 99%;
521
      left: 50%;
522
      transform-origin: bottom;
523
    }
524
 
525
    &.show {
526
      transform: scaleY(1);
527
      opacity: 1;
528
    }
529
 
530
    ul li:hover .level_three {
531
      transform: scaleX(1);
532
      opacity: 1;
533
    }
534
  }
535
 
536
  .user__options-description {
537
    display: flex;
538
    flex-direction: column;
539
    align-items: center;
540
    gap: 0.5rem;
541
    padding: 10px;
542
    left: 0;
543
    right: initial;
544
 
545
    .btn__profile {
546
      padding: 2px;
547
      border: 1px solid #7405f9;
548
      width: 100%;
549
      border-radius: 30px;
550
      color: #7405f9;
551
      font-size: 0.9rem;
552
      text-align: center;
553
      transition: all 0.1s ease-in;
554
 
555
      &:hover {
556
        border: 2px solid #7405f9;
557
      }
558
    }
559
  }
560
 
561
  .user__options-info {
562
    display: flex;
563
    align-items: center;
564
    gap: 0.5rem;
565
    width: 100%;
566
 
567
    h3 {
568
      font-weight: 600;
569
      font-size: 1.1rem;
570
    }
571
  }
572
 
573
  @media (min-width: 768px) {
574
    .nav__options-dropdown {
575
      right: 0;
576
      border-top-right-radius: 0;
577
    }
578
  }
579
  @keyframes fadedown {
580
    0% {
581
      opacity: 0.01;
582
      transform: translateY(-20px);
583
    }
584
 
585
    100% {
586
      opacity: 1;
587
      transform: translateY(0px);
588
    }
589
  }
590
`;