Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3681 | | Comparar con el anterior | Ultima modificación | Ver Log |

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