Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3681 | Ir a la última revisión | | 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
  .process-comm {
260
    width: 100%;
261
    text-align: center;
262
    padding-top: 40px;
263
  }
264
 
265
  ::-webkit-input-placeholder {
266
    /* Chrome/Opera/Safari */
267
    color: #b2b2b2;
268
  }
269
 
270
  ::-moz-placeholder {
271
    /* Firefox 19+ */
272
    color: #b2b2b2;
273
  }
274
 
275
  :-ms-input-placeholder {
276
    /* IE 10+ */
277
    color: #b2b2b2;
278
  }
279
 
280
  :-moz-placeholder {
281
    /* Firefox 18- */
282
    color: #b2b2b2;
283
  }
284
 
285
  .skill-tags {
286
    display: flex;
287
    flex-wrap: wrap;
288
    gap: 0.5rem;
289
  }
290
 
291
  .row {
292
    margin: 0;
293
  }
294
 
295
  .marketplace_card {
296
    background: $bg-color;
297
    border-radius: $border-radius;
298
    display: flex;
299
    flex-direction: column;
300
    max-width: 250px;
301
    overflow: hidden;
302
    transition: all 200ms;
303
    margin: auto;
304
 
305
    img {
306
      object-fit: cover;
307
      aspect-ratio: 4/2.5;
308
    }
309
 
310
    &:hover {
311
      transform: translateY(-1rem);
312
      box-shadow: $light-shadow;
313
    }
314
  }
315
 
316
  .settings-container {
317
    font-weight: normal;
318
    h2 {
319
      font-size: 18px;
320
      font-weight: 600;
321
      margin: 0.5rem auto;
322
      color: $subtitle-color;
323
    }
324
  }
325
 
326
  .acc-setting_content {
327
    padding: 2rem 1rem;
328
    width: 100%;
329
    overflow: hidden;
330
    border-radius: 10px;
331
    background-color: $bg-color;
332
    border: 1px solid $border-primary;
333
    box-shadow: 1px 0 4px var(--background-gray);
334
  }
335
 
336
  .notbat {
337
    display: flex;
338
    justify-content: space-between;
339
    border-top: 1px solid $border-primary;
340
    padding: 0.5rem 1rem;
341
    width: 100%;
342
    & > span {
343
      max-width: 70%;
344
    }
345
  }
346
 
347
  .cp-field {
348
    width: 100%;
349
    display: flex;
350
    flex-direction: column;
351
    align-items: flex-start;
352
    flex: 1;
353
    h5 {
354
      color: $title-color;
355
      font-size: 16px;
356
      font-weight: 600;
357
    }
358
    label {
359
      font-weight: 600;
360
      color: $subtitle-color;
361
    }
362
    input,
363
    textarea,
364
    select,
365
    .custom-input {
366
      background-color: $bg-color;
367
      border-radius: 10px;
368
      color: $font-color;
369
      border: 1px solid $border-primary;
370
      padding: 0.5rem 1rem;
371
      width: 100%;
372
    }
373
    textarea {
374
      height: 115px;
375
    }
376
  }
377
 
378
  .cpp-fiel {
379
    width: 100%;
380
    position: relative;
381
    i {
382
      position: absolute;
383
      top: 12px;
384
      left: 15px;
385
      color: #b2b2b2;
386
      font-size: 16px;
387
    }
388
  }
389
 
390
  .text-chat-title {
391
    color: var(--gray) !important;
392
    font-size: 1rem;
393
  }
394
 
395
  .chat-header a {
396
    text-decoration: none;
397
    color: var(--dark);
398
  }
399
 
400
  .chat-header h2 {
401
    font-weight: 700;
402
    text-align: center;
403
  }
404
 
405
  .pac-container {
406
    z-index: 1051 !important;
407
  }
408
 
409
  .process-comm .spinner {
410
    margin: 0 auto 0;
411
    width: 80px;
412
    text-align: center;
413
    height: 80px;
414
    border-radius: 100px;
415
    background-color: #fff;
416
    line-height: 80px;
417
    border: 1px solid #e1e1e1;
418
    cursor: pointer;
419
 
420
    & > div {
421
      width: 15px;
422
      height: 15px;
423
      background-color: #b9b9b9;
424
      border-radius: 100%;
425
      display: inline-block;
426
      -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
427
      animation: sk-bouncedelay 1.4s infinite ease-in-out both;
428
    }
429
 
430
    .bounce1 {
431
      -webkit-animation-delay: -0.32s;
432
      animation-delay: -0.32s;
433
    }
434
 
435
    .bounce2 {
436
      -webkit-animation-delay: -0.16s;
437
      animation-delay: -0.16s;
438
    }
439
 
440
    @keyframes sk-bouncedelay {
441
      0%,
442
      80%,
443
      100% {
444
        -webkit-transform: scale(0);
445
        transform: scale(0);
446
      }
447
 
448
      40% {
449
        -webkit-transform: scale(1);
450
        transform: scale(1);
451
      }
452
    }
453
  }
454
 
455
  .form-group {
456
    margin-bottom: 1rem;
457
    padding-top: 0px;
458
  }
459
 
460
  .description__label {
461
    display: flex;
462
    flex-direction: column;
463
    label {
464
      font-size: 1rem;
465
      font-weight: 600;
466
    }
467
    p {
468
      font-size: 0.9rem;
469
    }
470
    margin-bottom: 1rem;
471
  }
472
  .user__options-dropdown,
473
  .nav__options-dropdown {
474
    position: absolute;
475
    right: 0;
476
    min-width: 220px;
477
    top: calc(100% + 10px);
478
    background-color: var(--bg-color);
479
    border-radius: 5px;
480
    box-shadow:
481
 
482
 
483
    transition: all 0.2s ease-in-out;
484
    transform-origin: top;
485
 
486
    &.fadeOut {
487
      transform: scaleY(0);
488
      opacity: 0;
489
    }
490
 
491
    &.fadeIn {
492
      transform: scaleY(1);
493
      opacity: 1;
494
    }
495
 
496
    ul {
497
      display: flex;
498
      flex-direction: column;
499
      gap: 0.5rem;
500
 
501
      a {
502
        white-space: nowrap;
503
      }
504
    }
505
  }
506
 
507
  .user__options-dropdown {
508
    border-top-right-radius: 0;
509
  }
510
 
511
  .user__options-item {
512
    padding: 1rem 10px;
513
    border-top: 1px solid rgba(0, 0, 0, 0.08);
514
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
515
    display: flex;
516
    flex-direction: column;
517
    gap: 0.5rem;
518
 
519
    h3 {
520
      font-weight: 600;
521
    }
522
 
523
    ul {
524
      display: flex;
525
      flex-direction: column;
526
      gap: 0.5rem;
527
 
528
      a {
529
        color: gray !important;
530
 
531
        &:hover {
532
          text-decoration: underline !important;
533
        }
534
      }
535
    }
536
  }
537
 
538
  .nav__options-dropdown {
539
    transform: scaleY(0);
540
    right: -10%;
541
    opacity: 0;
542
    padding: 1rem;
543
    min-width: fit-content;
544
    ul {
545
      display: flex;
546
      flex-direction: column;
547
      a {
548
        color: gray;
549
 
550
        &:hover {
551
          text-decoration: underline;
552
        }
553
      }
554
    }
555
 
556
    &.level_three {
557
      transform: scaleY(1);
558
      transform: scaleX(0);
559
      top: -10%;
560
      left: 100%;
561
      max-height: 20rem;
562
      overflow: auto;
563
      transform-origin: left;
564
 
565
      a {
566
        max-width: 30ch;
567
      }
568
    }
569
 
570
    &.mobile {
571
      top: initial;
572
      bottom: 99%;
573
      left: 50%;
574
      transform-origin: bottom;
575
    }
576
 
577
    &.show {
578
      transform: scaleY(1);
579
      opacity: 1;
580
    }
581
 
582
    ul li:hover .level_three {
583
      transform: scaleX(1);
584
      opacity: 1;
585
    }
586
  }
587
 
588
  .user__options-description {
589
    display: flex;
590
    flex-direction: column;
591
    align-items: center;
592
    gap: 0.5rem;
593
    padding: 10px;
594
    left: 0;
595
    right: initial;
596
 
597
    .btn__profile {
598
      padding: 2px;
599
      border: 1px solid #7405f9;
600
      width: 100%;
601
      border-radius: 30px;
602
      color: #7405f9;
603
      font-size: 0.9rem;
604
      text-align: center;
605
      transition: all 0.1s ease-in;
606
 
607
      &:hover {
608
        border: 2px solid #7405f9;
609
      }
610
    }
611
  }
612
 
613
  .user__options-info {
614
    display: flex;
615
    align-items: center;
616
    gap: 0.5rem;
617
    width: 100%;
618
 
619
    h3 {
620
      font-weight: 600;
621
      font-size: 1.1rem;
622
    }
623
  }
624
 
625
  @media (min-width: 768px) {
626
    .nav__options-dropdown {
627
      right: 0;
628
      border-top-right-radius: 0;
629
    }
630
  }
631
  @keyframes fadedown {
632
    0% {
633
      opacity: 0.01;
634
      transform: translateY(-20px);
635
    }
636
 
637
    100% {
638
      opacity: 1;
639
      transform: translateY(0px);
640
    }
641
  }
642
`;