BigW Consortium Gitlab

pipelines.scss 17.4 KB
Newer Older
Regis committed
1 2 3 4 5 6 7 8 9 10
.pipelines {
  .stage {
    max-width: 90px;
    width: 90px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

11 12 13 14
  .table-holder {
    width: 100%;
  }

15 16
  .commit-title {
    margin: 0;
Regis committed
17 18
  }

19
  .ci-table {
Regis committed
20

21 22 23 24
    .label {
      margin-bottom: 3px;
    }

Regis committed
25 26
    .pipeline-id {
      color: $black;
27
    }
28

29 30 31 32 33 34 35 36 37 38 39 40 41 42
    .pipelines-time-ago {
      text-align: right;
    }

    .pipeline-actions {
      padding-right: 0;
      min-width: 170px; //Guarantees buttons don't break in several lines.

      .btn-default {
        color: $gl-text-color-secondary;
      }

      .btn.btn-retry:hover,
      .btn.btn-retry:focus {
43
        border-color: $dropdown-toggle-active-border-color;
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
        background-color: $white-normal;
      }

      svg path {
        fill: $gl-text-color-secondary;
      }

      .dropdown-menu {
        max-height: 250px;
        overflow-y: auto;
      }

      .dropdown-toggle,
      .dropdown-menu {
        color: $gl-text-color-secondary;

        .fa {
          color: $gl-text-color-secondary;
          font-size: 14px;
        }
      }

      .btn-group {
        &.open {
          .btn-default {
            background-color: $white-normal;
            border-color: $border-white-normal;
          }
        }

        .btn {
          .icon-play {
            height: 13px;
            width: 12px;
          }
        }
      }

82 83 84 85
      .btn .text-center {
        display: inline;
      }

86 87 88 89
      .tooltip {
        white-space: nowrap;
      }
    }
Regis committed
90 91
  }
}
92

Regis committed
93 94 95 96 97
@media (max-width: $screen-md-max) {
  .content-list {
    &.builds-content-list {
      width: 100%;
      overflow: auto;
98
    }
Regis committed
99 100
  }
}
101

102
.ci-table {
Regis committed
103 104 105
  .build.retried {
    background-color: $gray-lightest;
  }
106

Regis committed
107 108 109 110 111
  .commit-link {
    a {
      &:focus {
        text-decoration: none;
      }
112 113
    }

Regis committed
114 115
    a:hover {
      text-decoration: none;
116
    }
Regis committed
117
  }
118

Regis committed
119 120 121 122
  .avatar {
    margin-left: 0;
    float: none;
  }
123

124 125 126 127
  .api {
    @extend .monospace;
  }

Regis committed
128
  .branch-commit {
129

130
    .ref-name {
131
      font-weight: $gl-font-weight-bold;
Regis committed
132 133 134 135
      max-width: 120px;
      overflow: hidden;
      display: inline-block;
      white-space: nowrap;
136
      vertical-align: middle;
Regis committed
137
      text-overflow: ellipsis;
138 139
    }

Regis committed
140 141 142 143
    svg {
      height: 14px;
      width: 14px;
      vertical-align: middle;
144
      fill: $gl-text-color-secondary;
145 146
    }

Regis committed
147 148 149
    .fa {
      font-size: 12px;
      color: $gl-text-color;
150 151
    }

152
    .commit-sha {
Regis committed
153 154
      color: $gl-link-color;
    }
155

Regis committed
156 157
    .label {
      margin-right: 4px;
158
    }
159

Regis committed
160 161
    .label-container {
      font-size: 0;
162

Regis committed
163 164
      .label {
        margin-top: 5px;
Regis committed
165
      }
Regis committed
166 167
    }
  }
168

Regis committed
169 170 171
  .icon-container {
    display: inline-block;
    width: 10px;
Regis committed
172

Regis committed
173 174 175 176 177
    &.commit-icon {
      width: 15px;
      text-align: center;
    }
  }
Regis committed
178

Regis committed
179 180
  .duration,
  .finished-at {
181
    color: $gl-text-color-secondary;
182
    margin: 0;
183
    white-space: nowrap;
184

Regis committed
185 186 187
    .fa {
      font-size: 12px;
      margin-right: 4px;
188 189
    }

Regis committed
190 191 192 193 194 195 196
    svg {
      width: 12px;
      height: 12px;
      vertical-align: middle;
      margin-right: 4px;
    }
  }
197

198 199
  .build-link a {
    color: $gl-text-color;
Regis committed
200
  }
201

Regis committed
202 203 204
  .btn-group.open .dropdown-toggle {
    box-shadow: none;
  }
205 206 207 208

  .pipeline-tags .label-container {
    white-space: normal;
  }
Regis committed
209
}
210

211
.stage-cell {
212 213 214 215 216
  &.table-section {
    @media (min-width: $screen-md-min) {
      min-width: 148px;
      margin-right: -4px;
    }
217 218
  }

219
  .mini-pipeline-graph-dropdown-toggle svg {
220 221
    height: $ci-action-icon-size;
    width: $ci-action-icon-size;
222 223 224 225 226 227 228 229 230 231
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 2;
    overflow: visible;
  }

  .stage-container {
    display: inline-block;
    position: relative;
232
    vertical-align: middle;
233
    height: $ci-action-icon-size;
234 235 236 237 238
    margin: 3px 0;

    + .stage-container {
      margin-left: 6px;
    }
239

240 241 242
    // Hack to show a button tooltip inline
    button.has-tooltip + .tooltip {
      min-width: 105px;
243 244
    }

245 246 247
    // Bootstrap way of showing the content inline for anchors.
    a.has-tooltip {
      white-space: nowrap;
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
    }

    &:not(:last-child) {
      &::after {
        content: '';
        width: 7px;
        position: absolute;
        right: -7px;
        top: 10px;
        border-bottom: 2px solid $border-color;
      }
    }
  }
}

Regis committed
263 264 265 266 267
.admin-builds-table {
  .ci-table td:last-child {
    min-width: 120px;
  }
}
268

Regis committed
269 270
// Pipeline visualization
.pipeline-actions {
271 272
  @include new-style-dropdown;

Regis committed
273 274
  border-bottom: none;
}
275

Regis committed
276
.tab-pane {
277 278
  &.builds .ci-table tr {
    height: 71px;
279
  }
Regis committed
280
}
281

282 283 284 285 286 287
.build-failures {
  .build-state {
    padding: 20px 2px;

    .build-name {
      float: right;
288
      font-weight: $gl-font-weight-normal;
289 290 291 292 293 294 295 296
    }

    .ci-status-icon-failed svg {
      vertical-align: middle;
    }

    .stage {
      color: $gl-text-color-secondary;
297
      font-weight: $gl-font-weight-normal;
298 299 300 301 302 303 304 305 306 307
      vertical-align: middle;
    }
  }

  .build-log {
    border: none;
    line-height: initial;
  }
}

Regis committed
308 309 310 311 312 313 314
// Pipeline graph
.pipeline-graph {
  width: 100%;
  background-color: $gray-light;
  padding: $gl-padding;
  white-space: nowrap;
  transition: max-height 0.3s, padding 0.3s;
315
  overflow: auto;
Regis committed
316

317 318
  .stage-column-list,
  .builds-container > ul {
Regis committed
319
    padding: 0;
320
  }
321

Regis committed
322 323
  a {
    text-decoration: none;
324
    color: $gl-text-color;
Regis committed
325
  }
326

Regis committed
327 328 329 330
  svg {
    vertical-align: middle;
    margin-right: 3px;
  }
331

Regis committed
332 333 334
  .stage-column {
    display: inline-block;
    vertical-align: top;
335

Regis committed
336 337
    &:not(:last-child) {
      margin-right: 44px;
Regis committed
338
    }
339

Regis committed
340 341 342 343 344 345 346 347 348
    &.left-margin {
      &:not(:first-child) {
        margin-left: 44px;

        .left-connector {
          &::before {
            content: '';
            position: absolute;
            top: 48%;
349
            left: -44px;
Regis committed
350
            border-top: 2px solid $border-color;
351
            width: 44px;
Regis committed
352 353
            height: 1px;
          }
354 355
        }
      }
356
    }
357

Regis committed
358 359
    &.no-margin {
      margin: 0;
360 361
    }

Regis committed
362 363
    li {
      list-style: none;
Regis committed
364 365
    }

Regis committed
366 367 368 369 370 371
    &:last-child {
      .build {
        // Remove right connecting horizontal line from first build in last stage
        &:first-child {
          &::after {
            border: none;
372 373
          }
        }
Regis committed
374 375 376 377
        // Remove right curved connectors from all builds in last stage
        &:not(:first-child) {
          &::after {
            border: none;
Regis committed
378
          }
Regis committed
379 380 381 382 383
        }
        // Remove opposite curve
        .curve {
          &::before {
            display: none;
384 385 386
          }
        }
      }
Regis committed
387
    }
388

Regis committed
389 390 391 392 393 394
    &:first-child {
      .build {
        // Remove left curved connectors from all builds in first stage
        &:not(:first-child) {
          &::before {
            border: none;
395
          }
Regis committed
396 397 398 399 400
        }
        // Remove opposite curve
        .curve {
          &::after {
            display: none;
401 402 403
          }
        }
      }
Regis committed
404
    }
405

Regis committed
406 407 408
    // Curve first child connecting lines in opposite direction
    .curve {
      display: none;
409

Regis committed
410 411 412 413 414 415 416 417 418
      &::before,
      &::after {
        content: '';
        width: 21px;
        height: 25px;
        position: absolute;
        top: -31px;
        border-top: 2px solid $border-color;
      }
419

Regis committed
420 421 422 423
      &::after {
        left: -44px;
        border-right: 2px solid $border-color;
        border-radius: 0 20px;
424
      }
425

Regis committed
426 427 428 429 430
      &::before {
        right: -44px;
        border-left: 2px solid $border-color;
        border-radius: 20px 0 0;
      }
Regis committed
431
    }
Regis committed
432
  }
433

Regis committed
434 435
  .stage-name {
    margin: 0 0 15px 10px;
436
    font-weight: $gl-font-weight-bold;
Regis committed
437 438 439 440 441
    width: 176px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
442

Regis committed
443 444 445 446 447
  .build {
    position: relative;
    width: 186px;
    margin-bottom: 10px;
    white-space: normal;
448 449 450 451 452

    // ensure .build-content has hover style when action-icon is hovered
    .ci-job-dropdown-container:hover .build-content {
      @extend .build-content:hover;
    }
453

454
    // Action Icons in big pipeline-graph nodes
455
    .ci-action-icon-container .ci-action-icon-wrapper {
456 457 458 459 460 461
      height: 30px;
      width: 30px;
      background: $white-light;
      border: 1px solid $border-color;
      border-radius: 100%;
      display: block;
462

463 464
      &:hover {
        background-color: $stage-hover-bg;
465
        border: 1px solid $dropdown-toggle-active-border-color;
466 467 468
      }

      svg {
469
        fill: $gl-text-color-secondary;
470 471 472
        position: relative;
        left: -1px;
        top: -1px;
473 474
      }

475 476
      &:hover svg {
        fill: $gl-text-color;
477 478 479
      }
    }

480
    .ci-action-icon-container {
481 482 483 484 485 486 487 488 489
      position: absolute;
      right: 5px;
      top: 5px;
    }

    .ci-status-icon svg {
      height: 20px;
      width: 20px;
    }
490

Regis committed
491 492 493 494
    .dropdown-menu-toggle {
      background-color: transparent;
      border: none;
      padding: 0;
Regis committed
495

Regis committed
496 497
      &:focus {
        outline: none;
498
      }
Regis committed
499
    }
500

501
    .build-content {
Regis committed
502 503 504 505 506 507
      display: inline-block;
      padding: 8px 10px 9px;
      width: 100%;
      border: 1px solid $border-color;
      border-radius: 30px;
      background-color: $white-light;
508
    }
509

510 511 512
    a.build-content:hover,
    button.build-content:hover {
      background-color: $stage-hover-bg;
513
      border: 1px solid $dropdown-toggle-active-border-color;
Regis committed
514
    }
515

Regis committed
516

Regis committed
517 518 519 520 521 522 523 524 525 526 527 528
    // Connect first build in each stage with right horizontal line
    &:first-child {
      &::after {
        content: '';
        position: absolute;
        top: 48%;
        right: -48px;
        border-top: 2px solid $border-color;
        width: 48px;
        height: 1px;
      }
    }
Regis committed
529

Regis committed
530 531 532 533 534 535 536 537 538 539
    // Connect each build (except for first) with curved lines
    &:not(:first-child) {
      &::after,
      &::before {
        content: '';
        top: -49px;
        position: absolute;
        border-bottom: 2px solid $border-color;
        width: 25px;
        height: 69px;
540 541
      }

Regis committed
542 543 544 545 546 547
      // Right connecting curves
      &::after {
        right: -25px;
        border-right: 2px solid $border-color;
        border-radius: 0 0 20px;
      }
Regis committed
548

Regis committed
549 550 551 552 553
      // Left connecting curves
      &::before {
        left: -25px;
        border-left: 2px solid $border-color;
        border-radius: 0 0 0 20px;
554 555 556
      }
    }

Regis committed
557 558 559 560 561 562 563
    // Connect second build to first build with smaller curved line
    &:nth-child(2) {
      &::after,
      &::before {
        height: 29px;
        top: -9px;
      }
Regis committed
564

Regis committed
565 566
      .curve {
        display: block;
567 568 569
      }
    }
  }
Regis committed
570 571
}

572
// Triggers the dropdown in the big pipeline graph
Regis committed
573 574 575 576
.dropdown-counter-badge {
  font-weight: 100;
  font-size: 15px;
  position: absolute;
577
  right: 13px;
Regis committed
578 579 580 581 582 583 584 585 586 587 588
  top: 8px;
}

.ci-status-text {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  display: inline-block;
  position: relative;
589
  font-weight: $gl-font-weight-normal;
Regis committed
590 591
}

592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608
@mixin mini-pipeline-graph-color($color-light, $color-main, $color-dark) {
  border-color: $color-main;
  color: $color-main;

  &:hover,
  &:focus,
  &:active {
    background-color: $color-light;
    border-color: $color-dark;
    color: $color-dark;

    svg {
      fill: $color-dark;
    }
  }
}

609
// Dropdown button in mini pipeline graph
610
button.mini-pipeline-graph-dropdown-toggle {
611 612 613 614
  border-radius: 100px;
  background-color: $white-light;
  border-width: 1px;
  border-style: solid;
615 616
  width: $ci-action-icon-size;
  height: $ci-action-icon-size;
617 618 619 620
  margin: 0;
  padding: 0;
  transition: all 0.2s linear;
  position: relative;
621
  vertical-align: middle;
Regis committed
622

623 624 625 626 627 628 629 630 631 632
  > .fa.fa-caret-down {
    position: absolute;
    left: 20px;
    top: 5px;
    display: inline-block;
    visibility: hidden;
    opacity: 0;
    color: inherit;
    font-size: 12px;
    transition: visibility 0.1s, opacity 0.1s linear;
633
  }
634

635 636 637 638 639
  &:active,
  &:focus,
  &:hover {
    outline: none;
    width: 35px;
Filipa Lacerda committed
640

641 642 643
    .fa.fa-caret-down {
      visibility: visible;
      opacity: 1;
Regis committed
644
    }
Regis committed
645
  }
Filipa Lacerda committed
646

647 648
  // Dropdown button animation in mini pipeline graph
  &.ci-status-icon-success {
649
    @include mini-pipeline-graph-color($green-100, $green-500, $green-600);
dimitrieh committed
650 651
  }

652
  &.ci-status-icon-failed {
653
    @include mini-pipeline-graph-color($red-100, $red-500, $red-600);
Regis committed
654
  }
Filipa Lacerda committed
655

656 657
  &.ci-status-icon-pending,
  &.ci-status-icon-success_with_warnings {
658
    @include mini-pipeline-graph-color($orange-100, $orange-500, $orange-600);
Regis committed
659
  }
660

661
  &.ci-status-icon-running {
662
    @include mini-pipeline-graph-color($blue-100, $blue-400, $blue-600);
Regis committed
663
  }
664

665 666 667 668
  &.ci-status-icon-canceled,
  &.ci-status-icon-disabled,
  &.ci-status-icon-not-found,
  &.ci-status-icon-manual {
669
    @include mini-pipeline-graph-color(rgba($gl-text-color, 0.1), $gl-text-color, $gl-text-color);
Regis committed
670
  }
671

672 673
  &.ci-status-icon-created,
  &.ci-status-icon-skipped {
674
    @include mini-pipeline-graph-color(rgba($gray-darkest, 0.1), $gray-darkest, $gray-darkest);
Regis committed
675 676 677
  }
}

678 679 680
@include new-style-dropdown('.big-pipeline-graph-dropdown-menu');
@include new-style-dropdown('.mini-pipeline-graph-dropdown-menu');

681 682 683 684 685
// dropdown content for big and mini pipeline
.big-pipeline-graph-dropdown-menu,
.mini-pipeline-graph-dropdown-menu {
  width: 195px;
  max-width: 195px;
686

687
  .scrollable-menu {
688
    padding: 0;
689 690
    max-height: 245px;
    overflow: auto;
dimitrieh committed
691
  }
692

693 694
  li {
    position: relative;
695

696 697 698 699
    // ensure .mini-pipeline-graph-dropdown-item has hover style when action-icon is hovered
    &:hover > .mini-pipeline-graph-dropdown-item,
    &:hover > .ci-job-component > .mini-pipeline-graph-dropdown-item {
      @extend .mini-pipeline-graph-dropdown-item:hover;
700
    }
701

702 703 704 705 706 707 708 709 710 711 712 713 714
    // Action icon on the right
    a.ci-action-icon-wrapper {
      border-radius: 50%;
      border: 1px solid $border-color;
      width: $ci-action-icon-size;
      height: $ci-action-icon-size;
      padding: 2px 0 0 5px;
      font-size: 12px;
      background-color: $white-light;
      position: absolute;
      top: 50%;
      right: $gl-padding;
      margin-top: -#{$ci-action-icon-size / 2};
715

716 717 718 719 720
      &:hover,
      &:focus {
        background-color: $stage-hover-bg;
        border: 1px solid $dropdown-toggle-active-border-color;
      }
721

722 723 724 725 726 727 728 729
      svg {
        fill: $gl-text-color-secondary;
        width: $ci-action-icon-size;
        height: $ci-action-icon-size;
        left: -6px;
        position: relative;
        top: -3px;
      }
730

731 732 733 734 735 736 737 738 739 740 741 742 743 744
      &:hover svg,
      &:focus svg {
        fill: $gl-text-color;
      }
    }

    // link to the build
    .mini-pipeline-graph-dropdown-item {
      padding: 3px 7px 4px;
      align-items: center;
      clear: both;
      display: flex;
      font-weight: normal;
      line-height: $line-height-base;
745
      white-space: nowrap;
746
      border-radius: 3px;
747

748 749 750 751
      .ci-job-name-component {
        align-items: center;
        display: flex;
        flex: 1;
752
      }
753

754 755 756 757 758 759 760 761 762 763
      // build name
      .ci-build-text,
      .ci-status-text {
        font-weight: 200;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 70%;
        margin-left: 2px;
        display: inline-block;
764

765 766 767
        @media (max-width: $screen-xs-max) {
          max-width: 60%;
        }
Regis committed
768
      }
769

770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790
      .ci-status-icon {
        @extend .append-right-8;

        position: relative;

        > svg {
          width: $pipeline-dropdown-status-icon-size;
          height: $pipeline-dropdown-status-icon-size;
          margin: 3px 0;
          position: relative;
          overflow: visible;
          display: block;
        }
      }

      &:hover,
      &:focus {
        outline: none;
        text-decoration: none;
        background-color: $stage-hover-bg;
      }
791
    }
Filipa Lacerda committed
792
  }
793
}
794

795 796 797 798
// Dropdown in the big pipeline graph
.big-pipeline-graph-dropdown-menu {
  width: 195px;
  min-width: 195px;
799 800
  left: 100%;
  top: -10px;
801 802
  box-shadow: 0 1px 5px $black-transparent;
}
803

804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821
/**
 * Top arrow in the dropdown in the big pipeline graph
 */
.big-pipeline-graph-dropdown-menu {

  &::before,
  &::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    top: 18px;
  }

  &::before {
822 823
    left: -6px;
    margin-top: 3px;
824 825 826 827 828
    border-width: 7px 5px 7px 0;
    border-right-color: $border-color;
  }

  &::after {
829
    left: -5px;
830 831 832 833 834
    border-width: 10px 7px 10px 0;
    border-right-color: $white-light;
  }
}

835 836 837 838
/**
 * Top arrow in the dropdown in the mini pipeline graph
 */
.mini-pipeline-graph-dropdown-menu {
839
  z-index: 200;
Regis committed
840

841 842 843 844 845 846 847 848 849 850
  &::before,
  &::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    top: -6px;
851 852
    left: 50%;
    transform: translate(-50%, 0);
853
    border-width: 0 5px 6px;
854 855 856 857 858

    @media (max-width: $screen-sm-max) {
      left: 100%;
      margin-left: -12px;
    }
859
  }
Regis committed
860

861 862 863 864 865 866 867 868
  &::before {
    border-width: 0 5px 5px;
    border-bottom-color: $border-color;
  }

  &::after {
    margin-top: 1px;
    border-bottom-color: $white-light;
Regis committed
869
  }
Regis committed
870 871
}

872 873 874 875
/**
 * Center dropdown menu in mini graph
 */
.mini-pipeline-graph-dropdown-menu.dropdown-menu {
876 877 878 879 880 881 882 883 884
  transform: translate(-80%, 0);
  min-width: 150px;

  @media(min-width: $screen-md-min) {
    transform: translate(-50%, 0);
    right: auto;
    left: 50%;
    min-width: 240px;
  }
885
}
Regis committed
886
/**
887
 * Terminal
Regis committed
888 889 890 891 892 893 894 895
 */
.terminal-icon {
  margin-left: 3px;
}

.terminal-container {
  .content-block {
    border-bottom: none;
896 897
  }

Regis committed
898 899 900 901
  #terminal {
    margin-top: 10px;
    min-height: 450px;
    box-sizing: border-box;
902

Regis committed
903
    > div {
904 905
      min-height: 450px;
    }
906
  }
Regis committed
907
}
908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926

/**
 * Play button with icon in dropdowns
 */
.ci-table .no-btn {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  text-align: left;

  .icon-play {
    position: relative;
    top: 2px;
    margin-right: 5px;
    height: 13px;
    width: 12px;
  }
}
927

928
.ci-header-container {
929 930 931 932 933
  min-height: 55px;

  .text-center {
    padding-top: 12px;
  }
934 935 936 937 938 939 940

  .header-action-buttons {
    .btn,
    a {
      margin-left: 10px;
    }
  }
941
}
942 943 944 945

.pipelines-container .top-area .nav-controls > .btn:last-child {
  float: none;
}
946 947 948 949 950

.autodevops-title {
  font-weight: $gl-font-weight-normal;
  line-height: 1.5;
}