Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16825 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16825 Rev 16960
Línea 7... Línea 7...
7
 *
7
 *
8
 * Licensed under the MIT license:
8
 * Licensed under the MIT license:
9
 * http://www.opensource.org/licenses/MIT
9
 * http://www.opensource.org/licenses/MIT
10
 */
10
 */
Línea 11... Línea 11...
11
 
11
 
12
 /* chart styles */
12
/* chart styles */
13
.orgchart {
13
.orgchart {
14
  box-sizing: border-box;
14
  box-sizing: border-box;
15
  display: inline-block;
15
  display: inline-block;
16
  -webkit-touch-callout: none;
16
  -webkit-touch-callout: none;
17
  -webkit-user-select: none;
17
  -webkit-user-select: none;
18
  -khtml-user-select: none;
18
  -khtml-user-select: none;
19
  -moz-user-select: none;
19
  -moz-user-select: none;
20
  -ms-user-select: none;
20
  -ms-user-select: none;
21
  user-select: none;
21
  user-select: none;
22
  background-image: linear-gradient(to top, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%),
22
  background-image: linear-gradient(to top, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%),
23
  linear-gradient(to right, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%),
23
    linear-gradient(to right, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%),
24
  linear-gradient(to bottom, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%),
24
    linear-gradient(to bottom, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%),
-
 
25
    linear-gradient(to left, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%);
25
  linear-gradient(to left, rgba(200, 0, 0, 0.15) 5%, rgba(0, 0, 0, 0) 5%);
26
  background-size: 10px 10px;
26
  background-size: 10px 10px; /* background square size */
27
  /* background square size */
27
  padding: 20px 20px 0 20px;
28
  padding: 20px 20px 0 20px;
28
  /* border: 0.5px solid rgba(200, 0, 0, 0.15); */
29
  /* border: 0.5px solid rgba(200, 0, 0, 0.15); */
Línea -... Línea 30...
-
 
30
}
29
}
31
 
30
 
32
.orgchart .hidden,
31
.orgchart .hidden, .orgchart~.hidden {
33
.orgchart~.hidden {
Línea 32... Línea 34...
32
  display: none!important;
34
  display: none !important;
33
}
35
}
34
 
36
 
Línea 48... Línea 50...
48
  transform: rotate(90deg);
50
  transform: rotate(90deg);
49
  transform-origin: left top;
51
  transform-origin: left top;
50
  text-align: center;
52
  text-align: center;
51
}
53
}
Línea 52... Línea 54...
52
 
54
 
53
.orgchart ~ .mask {
55
.orgchart~.mask {
54
  position: absolute;
56
  position: absolute;
55
  top: 0;
57
  top: 0;
56
  right: 0;
58
  right: 0;
57
  bottom: 0;
59
  bottom: 0;
58
  left: 0;
60
  left: 0;
59
  z-index: 999;
61
  z-index: 999;
60
  text-align: center;
62
  text-align: center;
61
  background-color: rgba(0,0,0,0.3);
63
  background-color: rgba(0, 0, 0, 0.3);
Línea 62... Línea 64...
62
}
64
}
63
 
65
 
64
.orgchart ~ .mask .spinner {
66
.orgchart~.mask .spinner {
65
  position: absolute;
67
  position: absolute;
66
  top: calc(50% - 50px);
68
  top: calc(50% - 50px);
Línea 67... Línea 69...
67
  left: calc(50% - 50px);
69
  left: calc(50% - 50px);
68
}
70
}
69
 
71
 
70
.orgchart > .spinner::before,
72
.orgchart>.spinner::before,
71
.orgchart ~ .mask .spinner::before {
73
.orgchart~.mask .spinner::before {
72
  width: 100px;
74
  width: 100px;
73
  height: 100px;
75
  height: 100px;
Línea 91... Línea 93...
91
 
93
 
92
/* styles of link lines */
94
/* styles of link lines */
93
.orgchart .hierarchy::before {
95
.orgchart .hierarchy::before {
94
  content: "";
96
  content: "";
-
 
97
  position: absolute;
95
  position: absolute;
98
  top: -11px;
96
  top: -11px; /* -(background square size + half width of line) */
99
  /* -(background square size + half width of line) */
97
  left: 0;
100
  left: 0;
98
  width: 100%;
101
  width: 100%;
99
  border-top: 2px solid rgba(217, 83, 79, 0.8);
102
  border-top: 2px solid rgba(217, 83, 79, 0.8);
100
  box-sizing: border-box;
103
  box-sizing: border-box;
Línea 113... Línea 116...
113
 
116
 
114
.orgchart .hierarchy:not(.hidden):only-child::before {
117
.orgchart .hierarchy:not(.hidden):only-child::before {
115
  width: 2px;
118
  width: 2px;
Línea 116... Línea 119...
116
}
119
}
117
 
120
 
118
.orgchart > .nodes > .hierarchy::before,
121
.orgchart>.nodes>.hierarchy::before,
119
.orgchart .isSiblingsCollapsed:not(.left-sibs):not(.right-sibs)::before,
122
.orgchart .isSiblingsCollapsed:not(.left-sibs):not(.right-sibs)::before,
120
.orgchart .isSiblingsCollapsed.left-sibs.right-sibs::before,
123
.orgchart .isSiblingsCollapsed.left-sibs.right-sibs::before,
121
.orgchart .isSiblingsCollapsed.right-sibs:first-child:before,
124
.orgchart .isSiblingsCollapsed.right-sibs:first-child:before,
122
.orgchart .isSiblingsCollapsed.left-sibs:last-child:before,
125
.orgchart .isSiblingsCollapsed.left-sibs:last-child:before,
123
.orgchart .isCollapsedSibling::before,
126
.orgchart .isCollapsedSibling::before,
124
.orgchart .isCollapsedSibling .hierarchy::before,
127
.orgchart .isCollapsedSibling .hierarchy::before,
125
.orgchart .isChildrenCollapsed > .node:not(:only-child)::after,
128
.orgchart .isChildrenCollapsed>.node:not(:only-child)::after,
126
.orgchart .isCollapsedDescendant::before,
129
.orgchart .isCollapsedDescendant::before,
127
.orgchart .isCollapsedDescendant > .node::before,
130
.orgchart .isCollapsedDescendant>.node::before,
128
.orgchart .isCollapsedDescendant > .node::after,
131
.orgchart .isCollapsedDescendant>.node::after,
129
.orgchart .isAncestorsCollapsed:only-child::before,
132
.orgchart .isAncestorsCollapsed:only-child::before,
130
.orgchart .isAncestorsCollapsed > .node::before {
133
.orgchart .isAncestorsCollapsed>.node::before {
Línea 131... Línea 134...
131
  content: none;
134
  content: none;
132
}
135
}
133
 
136
 
134
/* excluding leaf node */
137
/* excluding leaf node */
-
 
138
.orgchart .node:not(:only-child)::after {
135
.orgchart .node:not(:only-child)::after {
139
  content: "";
136
  content: "";
140
  position: absolute;
137
  position: absolute;
141
  bottom: -12px;
-
 
142
  /* -(background square size + node's border width) */
138
  bottom: -12px; /* -(background square size + node's border width) */
143
  left: calc(50% - 1px);
139
  left: calc(50% - 1px);
144
  width: 2px;
140
  width: 2px;
145
  height: 10px;
Línea 141... Línea 146...
141
  height: 10px; /* background square size */
146
  /* background square size */
142
  background-color: rgba(217, 83, 79, 0.8);
147
  background-color: rgba(217, 83, 79, 0.8);
143
}
148
}
-
 
149
 
144
 
150
.orgchart ul li .node.allowedDrop {
145
.orgchart ul li .node.allowedDrop {
151
  border-color: rgba(68, 157, 68, 0.9);
146
  border-color: rgba(68, 157, 68, 0.9);
152
}
-
 
153
 
147
}
154
.orgchart ul li .node.currentDropTarget {
148
.orgchart ul li .node.currentDropTarget {
155
  background-color: rgba(68, 157, 68, 0.9);
149
  background-color: rgba(68, 157, 68, 0.9);
156
}
-
 
157
 
150
}
158
.orgchart ul li .node.selected {
151
.orgchart ul li .node.selected {
159
  background-color: rgba(238, 217, 54, 0.5);
152
  background-color: rgba(238, 217, 54, 0.5);
160
}
-
 
161
 
153
}
162
.orgchart ul li .node:hover {
154
.orgchart ul li .node:hover {
163
  background-color: rgba(238, 217, 54, 0.5);
155
  background-color: rgba(238, 217, 54, 0.5);
164
}
156
}
165
 
-
 
166
/* excluding root node */
157
/* excluding root node */
167
.orgchart>ul>li>ul li>.node::before {
158
.orgchart > ul > li > ul li > .node::before {
168
  content: "";
159
  content: "";
169
  position: absolute;
-
 
170
  top: var(--top, -12px);
160
  position: absolute;
171
  /* -(fallback value = background square size + border width of node) */
161
  top: var(--top, -12px); /* -(fallback value = background square size + border width of node) */ 
172
  left: calc(50% - 1px);
162
  left: calc(50% - 1px);
173
  width: 2px;
Línea 163... Línea 174...
163
  width: 2px;
174
  height: var(--height, 10px);
164
  height: var(--height, 10px); /* fallback value = background square size */
175
  /* fallback value = background square size */
165
  background-color: rgba(217, 83, 79, 0.8);
176
  background-color: rgba(217, 83, 79, 0.8);
166
}
177
}
Línea 167... Línea 178...
167
 
178
 
Línea 179... Línea 190...
179
  padding: 3px;
190
  padding: 3px;
180
  border: 2px dashed transparent;
191
  border: 2px dashed transparent;
181
  text-align: center;
192
  text-align: center;
182
}
193
}
Línea -... Línea 194...
-
 
194
 
183
 
195
.orgchart.l2r .node,
184
.orgchart.l2r .node, .orgchart.r2l .node {
196
.orgchart.r2l .node {
185
  width: 50px;
197
  width: 50px;
186
  height: 140px;
198
  height: 140px;
Línea 187... Línea 199...
187
}
199
}
Línea 210... Línea 222...
210
 
222
 
211
.orgchart .node.allowedDrop {
223
.orgchart .node.allowedDrop {
212
  border-color: rgba(68, 157, 68, 0.9);
224
  border-color: rgba(68, 157, 68, 0.9);
Línea 213... Línea 225...
213
}
225
}
214
 
226
 
215
.orgchart .node > .spinner {
227
.orgchart .node>.spinner {
216
  position: absolute;
228
  position: absolute;
217
  top: calc(50% - 1rem);
229
  top: calc(50% - 1rem);
Línea 218... Línea 230...
218
  left: calc(50% - 1rem);
230
  left: calc(50% - 1rem);
219
}
231
}
220
 
232
 
221
.orgchart .node > .spinner::before {
233
.orgchart .node>.spinner::before {
222
  width: 2rem;
234
  width: 2rem;
223
  height: 2rem;
235
  height: 2rem;
Línea 239... Línea 251...
239
  overflow: hidden;
251
  overflow: hidden;
240
  text-overflow: ellipsis;
252
  text-overflow: ellipsis;
241
  white-space: nowrap;
253
  white-space: nowrap;
242
  background-color: rgba(217, 83, 79, 0.8);
254
  background-color: rgba(217, 83, 79, 0.8);
243
  color: #fff;
255
  color: #fff;
244
  border-radius: 4px 4px 0 0; 
256
  border-radius: 4px 4px 0 0;
245
}
257
}
Línea 246... Línea 258...
246
 
258
 
247
.orgchart.b2t .node .title {
259
.orgchart.b2t .node .title {
248
  transform: rotate(-180deg);
260
  transform: rotate(-180deg);
Línea 282... Línea 294...
282
  text-align: center;
294
  text-align: center;
283
  background-color: #fff;
295
  background-color: #fff;
284
  color: #333;
296
  color: #333;
285
  text-overflow: ellipsis;
297
  text-overflow: ellipsis;
286
  white-space: nowrap;
298
  white-space: nowrap;
-
 
299
  width: 130px;
-
 
300
  overflow: hidden;
-
 
301
  padding: 0 5px;
287
}
302
}
Línea 288... Línea 303...
288
 
303
 
289
.orgchart.b2t .node .content {
304
.orgchart.b2t .node .content {
290
  transform: rotate(180deg);
305
  transform: rotate(180deg);
Línea 324... Línea 339...
324
.orgchart .edge:hover::before {
339
.orgchart .edge:hover::before {
325
  border-color: #449d44;
340
  border-color: #449d44;
326
}
341
}
Línea 327... Línea 342...
327
 
342
 
-
 
343
.orgchart .node .verticalEdge {
328
.orgchart .node .verticalEdge {
344
  width: calc(100% - 6px);
-
 
345
  /* node top half's width */
329
  width: calc(100% - 6px); /* node top half's width */
346
  height: 10px;
-
 
347
  /* background square's size */
330
  height: 10px; /* background square's size */
348
  left: 3px;
331
  left: 3px; /* node's padding value */
349
  /* node's padding value */
Línea 332... Línea 350...
332
}
350
}
333
 
351
 
-
 
352
.orgchart .node .verticalEdge::before {
334
.orgchart .node .verticalEdge::before {
353
  position: absolute;
335
  position: absolute;
354
  left: calc(50% - 5px);
Línea 336... Línea 355...
336
  left: calc(50% - 5px); /* 50% width of node - half width of up arrow icon) */
355
  /* 50% width of node - half width of up arrow icon) */
337
}
356
}
338
 
357
 
Línea 347... Línea 366...
347
.orgchart .node .topEdge.oci-chevron-down::before {
366
.orgchart .node .topEdge.oci-chevron-down::before {
348
  bottom: 3px;
367
  bottom: 3px;
349
}
368
}
Línea 350... Línea 369...
350
 
369
 
-
 
370
.orgchart .node .bottomEdge {
351
.orgchart .node .bottomEdge {
371
  bottom: -2px;
352
  bottom: -2px; /* -(node's border-width) */
372
  /* -(node's border-width) */
Línea 353... Línea 373...
353
}
373
}
354
 
374
 
355
.orgchart .node .bottomEdge.oci-chevron-up::before {
375
.orgchart .node .bottomEdge.oci-chevron-up::before {
Línea 361... Línea 381...
361
}
381
}
Línea 362... Línea 382...
362
 
382
 
363
.orgchart .node .horizontalEdge {
383
.orgchart .node .horizontalEdge {
364
  width: 10px;
384
  width: 10px;
-
 
385
  height: calc(100% - 6px);
365
  height: calc(100% - 6px);
386
  top: 3px;
366
  top: 3px; /* node's padding */
387
  /* node's padding */
Línea 367... Línea 388...
367
}
388
}
368
 
389
 
369
.orgchart .node .rightEdge {
390
.orgchart .node .rightEdge {
Línea 395... Línea 416...
395
  right: 1px;
416
  right: 1px;
396
}
417
}
Línea 397... Línea 418...
397
 
418
 
398
.orgchart .node .toggleBtn {
419
.orgchart .node .toggleBtn {
-
 
420
  position: absolute;
399
  position: absolute;
421
  left: -2px;
400
  left: -2px; /* -(border width of node) */
422
  /* -(border width of node) */
401
  bottom: -2px;
423
  bottom: -2px;
402
  width: 16px;
424
  width: 16px;
403
  height: 16px;
425
  height: 16px;
Línea 426... Línea 448...
426
.orgchart .slide-down {
448
.orgchart .slide-down {
427
  opacity: 0;
449
  opacity: 0;
428
  transform: translateY(40px);
450
  transform: translateY(40px);
429
}
451
}
Línea -... Línea 452...
-
 
452
 
430
 
453
.orgchart.l2r .node.slide-down,
431
.orgchart.l2r .node.slide-down, .orgchart.r2l .node.slide-down {
454
.orgchart.r2l .node.slide-down {
432
  transform: translateY(130px);
455
  transform: translateY(130px);
Línea 433... Línea 456...
433
}
456
}
434
 
457
 
435
.orgchart .slide-up {
458
.orgchart .slide-up {
436
  opacity: 0;
459
  opacity: 0;
Línea -... Línea 460...
-
 
460
  transform: translateY(-40px);
437
  transform: translateY(-40px);
461
}
438
}
462
 
439
 
463
.orgchart.l2r .node.slide-up,
Línea 440... Línea 464...
440
.orgchart.l2r .node.slide-up, .orgchart.r2l .node.slide-up {
464
.orgchart.r2l .node.slide-up {
441
  transform: translateY(-130px);
465
  transform: translateY(-130px);
442
}
466
}
443
 
467
 
Línea -... Línea 468...
-
 
468
.orgchart .slide-right {
444
.orgchart .slide-right {
469
  opacity: 0;
445
  opacity: 0;
470
  transform: translateX(130px);
446
  transform: translateX(130px);
471
}
Línea 447... Línea 472...
447
}
472
 
448
 
473
.orgchart.l2r .node.slide-right,
449
.orgchart.l2r .node.slide-right, .orgchart.r2l .node.slide-right {
474
.orgchart.r2l .node.slide-right {
450
  transform: translateX(40px);
475
  transform: translateX(40px);
Línea -... Línea 476...
-
 
476
}
451
}
477
 
452
 
478
.orgchart .slide-left {
453
.orgchart .slide-left {
479
  opacity: 0;
Línea 454... Línea 480...
454
  opacity: 0;
480
  transform: translateX(-130px);
Línea 455... Línea 481...
455
  transform: translateX(-130px);
481
}
456
}
482
 
-
 
483
.orgchart.l2r .node.slide-left,
457
 
484
.orgchart.r2l .node.slide-left {
458
.orgchart.l2r .node.slide-left, .orgchart.r2l .node.slide-left {
485
  transform: translateX(-40px);
Línea 459... Línea 486...
459
  transform: translateX(-40px);
486
}
460
}
487
 
461
 
488
/* styles for vertical nodes */
462
/* styles for vertical nodes */
489
 
-
 
490
.orgchart .nodes.vertical {
463
 
491
  display: block;
464
.orgchart .nodes.vertical {
492
  padding-left: 10px;
465
  display: block;
493
  /* width of background square*/
Línea 466... Línea 494...
466
  padding-left: 10px; /* width of background square*/
494
}
467
}
495
 
Línea 491... Línea 519...
491
.orgchart .nodes.vertical .hierarchy::before,
519
.orgchart .nodes.vertical .hierarchy::before,
492
.orgchart .nodes.vertical .hierarchy::after {
520
.orgchart .nodes.vertical .hierarchy::after {
493
  box-sizing: border-box;
521
  box-sizing: border-box;
494
  content: '';
522
  content: '';
495
  position: absolute;
523
  position: absolute;
-
 
524
  left: -6px;
496
  left: -6px; /* -(background square size + half width of line */
525
  /* -(background square size + half width of line */
497
  border-color: rgba(217, 83, 79, 0.8);
526
  border-color: rgba(217, 83, 79, 0.8);
498
  border-style: solid;
527
  border-style: solid;
499
  border-width: 0 0 2px 2px;
528
  border-width: 0 0 2px 2px;
500
}
529
}
Línea 501... Línea 530...
501
 
530
 
502
.orgchart .nodes.vertical .hierarchy::before {
531
.orgchart .nodes.vertical .hierarchy::before {
-
 
532
  top: 0px;
503
  top: 0px;
533
  height: 26px;
-
 
534
  /* node top half's height(25px) + half width of line */
504
  height: 26px; /* node top half's height(25px) + half width of line */
535
  width: 11px;
505
  width: 11px; /* background square size + half width of line */
536
  /* background square size + half width of line */
Línea 506... Línea 537...
506
}
537
}
507
 
538
 
-
 
539
.orgchart .nodes.vertical .hierarchy::after {
508
.orgchart .nodes.vertical .hierarchy::after {
540
  bottom: 0;
509
  bottom: 0;
541
  height: calc(100% - 24px);
Línea 510... Línea 542...
510
  height: calc(100% - 24px); /* height of hierarchy - (node top half's height(25px) - half width of line) */
542
  /* height of hierarchy - (node top half's height(25px) - half width of line) */
511
}
543
}
512
 
544
 
Línea 513... Línea 545...
513
.orgchart .nodes.vertical .hierarchy:last-child::after {
545
.orgchart .nodes.vertical .hierarchy:last-child::after {
514
  border-width: 2px 0 0 0;
546
  border-width: 2px 0 0 0;
-
 
547
}
515
}
548
 
-
 
549
.orgchart .nodes.vertical>.hierarchy:first-child::before {
516
 
550
  box-sizing: border-box;
517
.orgchart .nodes.vertical > .hierarchy:first-child::before {
551
  top: -11px;
518
  box-sizing: border-box;
552
  /* -(background square size + half width of line) */
519
  top: -11px; /* -(background square size + half width of line) */
553
  height: 35px;
Línea 520... Línea 554...
520
  height: 35px; /* node top half's height + node padding + node border width + background square size */
554
  /* node top half's height + node padding + node border width + background square size */
521
  width: calc(50% + 2px);
555
  width: calc(50% + 2px);
-
 
556
  border-width: 2px 0 0 2px;
522
  border-width: 2px 0 0 2px;
557
}
-
 
558
 
523
}
559
.orgchart .nodes.vertical>.hierarchy:first-child::after {
524
 
560
  box-sizing: border-box;
525
.orgchart .nodes.vertical > .hierarchy:first-child::after {
561
  top: 24px;
Línea 526... Línea 562...
526
  box-sizing: border-box;
562
  /* node bottom half's height(25px) - half border width of line */
527
  top: 24px; /* node bottom half's height(25px) - half border width of line */
563
  width: 11px;
528
  width: 11px; /* backgroud square size + half border width of line */
564
  /* backgroud square size + half border width of line */
Línea 529... Línea 565...
529
  border-width: 2px 0 0 2px;
565
  border-width: 2px 0 0 2px;
530
}
566
}
Línea 675... Línea 711...
675
 
711
 
676
@keyframes oci-infinite-spinning {
712
@keyframes oci-infinite-spinning {
677
  from {
713
  from {
678
    transform: rotate(0deg);
714
    transform: rotate(0deg);
-
 
715
  }
679
  }
716
 
680
  to {
717
  to {
681
    transform: rotate(360deg);
718
    transform: rotate(360deg);
682
  }
719
  }
683
}
720
}