repo.scss 19.3 KB
Newer Older
Luke "Jared" Bennett's avatar
Luke "Jared" Bennett committed
1 2
.project-refs-form,
.project-refs-target-form {
3 4 5
  display: inline-block;
}

6
.fade-enter,
7
.fade-leave-to {
8
  opacity: 0;
Jacob Schatz's avatar
Jacob Schatz committed
9 10
}

11
.commit-message {
Jacob Schatz's avatar
Jacob Schatz committed
12
  @include str-truncated(250px);
13 14
}

Jacob Schatz's avatar
Jacob Schatz committed
15
.editable-mode {
16 17 18
  display: inline-block;
}

19
.ide-view {
20
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
21
  display: flex;
22
  height: calc(100vh - #{$header-height});
23
  margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
24
  border-top: 1px solid $white-dark;
25
  padding-bottom: $ide-statusbar-height;
Phil Hughes's avatar
Phil Hughes committed
26 27 28 29 30

  &.is-collapsed {
    .ide-file-list {
      max-width: 250px;
    }
Fatih Acet's avatar
Fatih Acet committed
31
  }
Phil Hughes's avatar
Phil Hughes committed
32 33 34 35 36

  .file-status-icon {
    width: 10px;
    height: 10px;
  }
Phil Hughes's avatar
Phil Hughes committed
37
}
Jacob Schatz's avatar
Jacob Schatz committed
38

Phil Hughes's avatar
Phil Hughes committed
39 40
.ide-file-list {
  flex: 1;
41 42
  padding-left: $gl-padding;
  padding-right: $gl-padding;
43
  padding-bottom: $grid-size;
Phil Hughes's avatar
Phil Hughes committed
44 45 46

  .file {
    cursor: pointer;
47 48

    &.file-open {
49
      background: $white-normal;
50 51
    }

52 53 54 55
    &.file-active {
      font-weight: $gl-font-weight-bold;
    }

Phil Hughes's avatar
Phil Hughes committed
56 57
    .ide-file-name {
      flex: 1;
58 59
      white-space: nowrap;
      text-overflow: ellipsis;
60
      max-width: inherit;
Phil Hughes's avatar
Phil Hughes committed
61
      line-height: 22px;
Phil Hughes's avatar
Phil Hughes committed
62 63 64 65 66 67 68 69 70 71

      svg {
        vertical-align: middle;
        margin-right: 2px;
      }

      .loading-container {
        margin-right: 4px;
        display: inline-block;
      }
72 73
    }

Phil Hughes's avatar
Phil Hughes committed
74 75 76 77 78
    .ide-file-icon-holder {
      display: flex;
      align-items: center;
    }

Phil Hughes's avatar
Phil Hughes committed
79 80
    .ide-file-changed-icon {
      margin-left: auto;
81 82 83 84

      > svg {
        display: block;
      }
85 86
    }

Phil Hughes's avatar
Phil Hughes committed
87
    .ide-new-btn {
88 89 90
      display: none;
    }

91 92
    &:hover,
    &:focus {
93
      background: $white-normal;
94

Phil Hughes's avatar
Phil Hughes committed
95
      .ide-new-btn {
96 97
        display: block;
      }
Phil Hughes's avatar
Phil Hughes committed
98
    }
99

100 101
    .folder-icon {
      fill: $gl-text-color-secondary;
102
    }
Fatih Acet's avatar
Fatih Acet committed
103 104
  }

Phil Hughes's avatar
Phil Hughes committed
105 106
  a {
    color: $gl-text-color;
107 108
  }

Phil Hughes's avatar
Phil Hughes committed
109 110 111
  th {
    position: sticky;
    top: 0;
112
  }
Phil Hughes's avatar
Phil Hughes committed
113
}
114

115
.file-name {
Phil Hughes's avatar
Phil Hughes committed
116
  display: flex;
117
  overflow: visible;
Phil Hughes's avatar
Phil Hughes committed
118
  align-items: center;
119
  width: 100%;
Phil Hughes's avatar
Phil Hughes committed
120
}
121

122 123 124 125 126
.multi-file-loading-container {
  margin-top: 10px;
  padding: 10px;
}

Phil Hughes's avatar
Phil Hughes committed
127
.multi-file-table-col-commit-message {
128
  white-space: nowrap;
Phil Hughes's avatar
Phil Hughes committed
129
  width: 50%;
Phil Hughes's avatar
Phil Hughes committed
130
}
131

Phil Hughes's avatar
Phil Hughes committed
132 133 134 135 136 137 138
.multi-file-edit-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-left: 1px solid $white-dark;
  overflow: hidden;
}
139

Phil Hughes's avatar
Phil Hughes committed
140 141 142 143
.multi-file-tabs {
  display: flex;
  background-color: $white-normal;
  box-shadow: inset 0 -1px $white-dark;
144

Phil Hughes's avatar
Phil Hughes committed
145 146 147 148 149 150 151
  > ul {
    display: flex;
    overflow-x: auto;
  }

  li {
    display: flex;
Phil Hughes's avatar
Phil Hughes committed
152 153 154 155 156
    align-items: center;
    padding: $grid-size $gl-padding;
    background-color: $gray-normal;
    border-right: 1px solid $white-dark;
    border-bottom: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
157

Phil Hughes's avatar
Phil Hughes committed
158 159 160
    &.active {
      background-color: $white-light;
      border-bottom-color: $white-light;
Phil Hughes's avatar
Phil Hughes committed
161 162
    }
  }
Phil Hughes's avatar
Phil Hughes committed
163
}
Jacob Schatz's avatar
Jacob Schatz committed
164

Phil Hughes's avatar
Phil Hughes committed
165
.multi-file-tab {
Phil Hughes's avatar
Phil Hughes committed
166
  @include str-truncated(141px);
Phil Hughes's avatar
Phil Hughes committed
167 168
  cursor: pointer;

169 170 171
  svg {
    vertical-align: middle;
  }
Phil Hughes's avatar
Phil Hughes committed
172
}
173

Phil Hughes's avatar
Phil Hughes committed
174
.multi-file-tab-close {
Phil Hughes's avatar
Phil Hughes committed
175 176
  width: 16px;
  height: 16px;
Phil Hughes's avatar
Phil Hughes committed
177
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
178
  margin-left: $grid-size;
Phil Hughes's avatar
Phil Hughes committed
179 180
  background: none;
  border: 0;
Phil Hughes's avatar
Phil Hughes committed
181 182
  border-radius: $border-radius-default;
  color: $theme-gray-900;
Phil Hughes's avatar
Phil Hughes committed
183

Phil Hughes's avatar
Phil Hughes committed
184 185
  svg {
    position: relative;
Phil Hughes's avatar
Phil Hughes committed
186
    top: -2px;
Phil Hughes's avatar
Phil Hughes committed
187
  }
188

189 190 191 192
  .ide-file-changed-icon {
    display: block;
    position: relative;
    top: 1px;
Phil Hughes's avatar
Phil Hughes committed
193
    right: -2px;
194 195
  }

196
  &:not([disabled]):hover {
Phil Hughes's avatar
Phil Hughes committed
197 198 199
    background-color: $theme-gray-200;
  }

200
  &:not([disabled]):focus {
Phil Hughes's avatar
Phil Hughes committed
201 202 203 204 205 206 207
    background-color: $blue-500;
    color: $white-light;
    outline: 0;

    svg {
      fill: currentColor;
    }
Phil Hughes's avatar
Phil Hughes committed
208 209
  }
}
210

Phil Hughes's avatar
Phil Hughes committed
211 212 213 214
.multi-file-edit-pane-content {
  flex: 1;
  height: 0;
}
Jacob Schatz's avatar
Jacob Schatz committed
215

216 217 218 219 220 221 222 223 224 225
.blob-editor-container {
  flex: 1;
  height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;

  .vertical-center {
    min-height: auto;
  }
Phil Hughes's avatar
Phil Hughes committed
226 227 228 229 230

  .monaco-editor .lines-content .cigr {
    display: none;
  }

231 232 233 234 235 236 237 238 239 240 241
  .is-readonly,
  .editor.original {
    .view-lines {
      cursor: default;
    }

    .cursors-layer {
      display: none;
    }
  }

Phil Hughes's avatar
Phil Hughes committed
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
  .monaco-diff-editor.vs {
    .editor.modified {
      box-shadow: none;
    }

    .diagonal-fill {
      display: none !important;
    }

    .diffOverview {
      background-color: $white-light;
      border-left: 1px solid $white-dark;
      cursor: ns-resize;
    }

    .diffViewport {
      display: none;
    }

    .char-insert {
      background-color: $line-added-dark;
    }

    .char-delete {
      background-color: $line-removed-dark;
    }

    .line-numbers {
      color: $black-transparent;
    }

    .view-overlays {
      .line-insert {
        background-color: $line-added;
      }

      .line-delete {
        background-color: $line-removed;
      }
    }

    .margin {
      background-color: $gray-light;
      border-right: 1px solid $white-normal;

      .line-insert {
        border-right: 1px solid $line-added-dark;
      }

      .line-delete {
        border-right: 1px solid $line-removed-dark;
      }
    }

    .margin-view-overlays .insert-sign,
    .margin-view-overlays .delete-sign {
      opacity: 0.4;
    }
  }
301 302 303 304
}

.multi-file-editor-holder {
  height: 100%;
Phil Hughes's avatar
Phil Hughes committed
305
  min-height: 0;
306 307
}

Tim Zallmann's avatar
Tim Zallmann committed
308
.preview-container {
309 310 311 312 313 314 315 316 317 318 319 320
  flex-grow: 1;
  position: relative;

  .md-previewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: $gl-padding;
  }
Tim Zallmann's avatar
Tim Zallmann committed
321

322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359
  .file-container {
    background-color: $gray-darker;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;

    text-align: center;

    .file-content {
      padding: $gl-padding;
      max-width: 100%;
      max-height: 100%;

      img {
        max-width: 90%;
        max-height: 90%;
      }

      .isZoomable {
        cursor: pointer;
        cursor: zoom-in;

        &.isZoomed {
          cursor: pointer;
          cursor: zoom-out;
          max-width: none;
          max-height: none;
          margin-right: $gl-padding;
        }
      }
    }

    .file-info {
      font-size: $label-font-size;
      color: $diff-image-info-color;
    }
  }
Tim Zallmann's avatar
Tim Zallmann committed
360 361 362
}

.ide-mode-tabs {
363
  border-bottom: 1px solid $white-dark;
Tim Zallmann's avatar
Tim Zallmann committed
364 365 366 367 368 369 370 371 372 373 374 375 376

  .nav-links {
    border-bottom: 0;

    li a {
      padding: $gl-padding-8 $gl-padding;
      line-height: $gl-btn-line-height;
    }
  }
}

.ide-btn-group {
  padding: $gl-padding-4 $gl-vert-padding;
377
  line-height: 24px;
378 379 380
}

.ide-status-bar {
Tim Zallmann's avatar
Tim Zallmann committed
381
  border-top: 1px solid $white-dark;
382
  padding: 2px $gl-padding-8 0;
383 384
  background: $white-light;
  display: flex;
385 386 387 388 389 390 391
  justify-content: space-between;
  height: $ide-statusbar-height;

  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
392

393 394 395 396 397 398 399
  font-size: 12px;
  line-height: 22px;

  * {
    font-size: inherit;
  }

400 401 402
  > div + div {
    padding-left: $gl-padding;
  }
403 404

  svg {
405
    vertical-align: sub;
406
  }
Phil Hughes's avatar
Phil Hughes committed
407 408
}

409 410 411 412 413 414 415 416
.ide-status-file {
  text-align: right;

  .ide-status-branch + &,
  &:first-child {
    margin-left: auto;
  }
}
Phil Hughes's avatar
Phil Hughes committed
417 418 419 420 421
// Not great, but this is to deal with our current output
.multi-file-preview-holder {
  height: 100%;
  overflow: scroll;

Phil Hughes's avatar
Phil Hughes committed
422 423
  .file-content.code {
    display: flex;
424

Phil Hughes's avatar
Phil Hughes committed
425 426
    i {
      margin-left: -10px;
427
    }
428 429
  }

Phil Hughes's avatar
Phil Hughes committed
430 431
  .line-numbers {
    min-width: 50px;
Jacob Schatz's avatar
Jacob Schatz committed
432
  }
433

Phil Hughes's avatar
Phil Hughes committed
434 435 436 437 438
  .file-content,
  .line-numbers,
  .blob-content,
  .code {
    min-height: 100%;
439
  }
Phil Hughes's avatar
Phil Hughes committed
440
}
Jacob Schatz's avatar
Jacob Schatz committed
441

442 443 444 445 446 447 448
.file-content.blob-no-preview {
  a {
    margin-left: auto;
    margin-right: auto;
  }
}

Phil Hughes's avatar
Phil Hughes committed
449 450
.multi-file-commit-panel {
  display: flex;
451
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
452
  width: 340px;
453
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
454
  background-color: $gray-light;
455
  padding-right: 1px;
Phil Hughes's avatar
Phil Hughes committed
456

457 458 459
  .context-header {
    width: auto;
    margin-right: 0;
460

461 462 463 464
    a {
      height: 60px;
    }

465 466 467 468
    a:hover,
    a:focus {
      text-decoration: none;
    }
469
  }
Phil Hughes's avatar
Phil Hughes committed
470

471
  .projects-sidebar {
472
    min-height: 0;
473 474
    display: flex;
    flex-direction: column;
475
    flex: 1;
476 477 478
  }

  .multi-file-commit-panel-inner {
479
    position: relative;
480 481
    display: flex;
    flex-direction: column;
482
    height: 100%;
Phil Hughes's avatar
Phil Hughes committed
483 484
    min-width: 0;
    width: 100%;
485 486 487 488 489 490 491
  }

  .multi-file-commit-panel-inner-scroll {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: auto;
492 493
    background-color: $white-light;
    border-left: 1px solid $white-dark;
494
    border-top: 1px solid $white-dark;
495
    border-top-left-radius: $border-radius-small;
Phil Hughes's avatar
Phil Hughes committed
496 497
  }
}
498

Phil Hughes's avatar
Phil Hughes committed
499 500 501 502
.multi-file-commit-panel-section {
  display: flex;
  flex-direction: column;
  flex: 1;
503 504
  max-height: 100%;
  overflow: auto;
Phil Hughes's avatar
Phil Hughes committed
505
}
506

Phil Hughes's avatar
Phil Hughes committed
507
.ide-commit-empty-state {
508 509 510 511 512 513
  padding: 0 $gl-padding;
}

.ide-commit-empty-state-container {
  margin-top: auto;
  margin-bottom: auto;
Phil Hughes's avatar
Phil Hughes committed
514 515
}

Phil Hughes's avatar
Phil Hughes committed
516 517 518
.multi-file-commit-panel-header {
  display: flex;
  align-items: center;
519
  margin-bottom: 0;
Phil Hughes's avatar
Phil Hughes committed
520
  border-bottom: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
521
  padding: 12px 0;
Phil Hughes's avatar
Phil Hughes committed
522
}
523

524 525 526
.multi-file-commit-panel-header-title {
  display: flex;
  flex: 1;
527
  align-items: center;
528

529 530
  svg {
    margin-right: $gl-btn-padding;
531
    color: $theme-gray-700;
532
  }
Phil Hughes's avatar
Phil Hughes committed
533
}
Jacob Schatz's avatar
Jacob Schatz committed
534

535 536
.multi-file-commit-panel-collapse-btn {
  border-left: 1px solid $white-dark;
537
  margin-left: auto;
538 539
}

Phil Hughes's avatar
Phil Hughes committed
540 541
.multi-file-commit-list {
  flex: 1;
542
  overflow: auto;
543
  padding: $grid-size 0;
544 545
  margin-left: -$grid-size;
  margin-right: -$grid-size;
Phil Hughes's avatar
Phil Hughes committed
546
  min-height: 60px;
547 548 549 550 551

  .multi-file-commit-list-item {
    margin-left: 0;
    margin-right: 0;
  }
552

553
  &.form-text.text-muted {
554 555 556
    margin-left: 0;
    right: 0;
  }
Phil Hughes's avatar
Phil Hughes committed
557
}
558

Phil Hughes's avatar
Phil Hughes committed
559
.multi-file-commit-list-item {
Phil Hughes's avatar
Phil Hughes committed
560 561
  .multi-file-discard-btn {
    display: none;
562
    margin-top: -2px;
Phil Hughes's avatar
Phil Hughes committed
563 564 565 566 567 568
    margin-left: auto;
    color: $gl-link-color;
  }

  &:hover {
    .multi-file-discard-btn {
569
      display: flex;
Phil Hughes's avatar
Phil Hughes committed
570 571
    }
  }
Phil Hughes's avatar
Phil Hughes committed
572
}
573

574 575
.multi-file-addition,
.multi-file-addition-solid {
576
  color: $green-500;
Phil Hughes's avatar
Phil Hughes committed
577
}
578

Phil Hughes's avatar
Phil Hughes committed
579 580
.multi-file-modified,
.multi-file-modified-solid {
581
  color: $orange-500;
Phil Hughes's avatar
Phil Hughes committed
582
}
583

Phil Hughes's avatar
Phil Hughes committed
584 585 586
.multi-file-commit-list-collapsed {
  display: flex;
  flex-direction: column;
587
  padding: $gl-padding 0;
588

589 590
  svg {
    display: block;
Phil Hughes's avatar
Phil Hughes committed
591 592
    margin-left: auto;
    margin-right: auto;
593
    color: $theme-gray-700;
594
  }
Phil Hughes's avatar
Phil Hughes committed
595 596 597 598 599 600

  .file-status-icon {
    width: 10px;
    height: 10px;
    margin-left: 3px;
  }
601 602
}

603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618
.multi-file-commit-list-item,
.ide-file-list .file {
  display: flex;
  align-items: center;
  margin-left: -$grid-size;
  margin-right: -$grid-size;
  padding: $grid-size / 2 $grid-size;
  border-radius: $border-radius-default;
  text-align: left;

  &:hover,
  &:focus {
    background: $white-normal;
  }
}

Phil Hughes's avatar
Phil Hughes committed
619
.multi-file-commit-list-path {
620
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
621 622 623 624
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
625 626 627 628 629

  &:hover,
  &:focus {
    outline: 0;
  }
Phil Hughes's avatar
Phil Hughes committed
630 631 632 633 634 635 636 637 638

  svg {
    min-width: 16px;
    vertical-align: middle;
    display: inline-block;
  }
}

.multi-file-commit-list-file-path {
Phil Hughes's avatar
Phil Hughes committed
639
  @include str-truncated(100%);
Phil Hughes's avatar
Phil Hughes committed
640 641 642 643 644 645 646 647

  &:hover {
    text-decoration: underline;
  }

  &:active {
    text-decoration: none;
  }
Phil Hughes's avatar
Phil Hughes committed
648
}
649

Phil Hughes's avatar
Phil Hughes committed
650
.multi-file-commit-form {
Phil Hughes's avatar
Phil Hughes committed
651
  position: relative;
652 653
  background-color: $white-light;
  border-left: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
654
  transition: all 0.3s ease;
Mike Greiling's avatar
Mike Greiling committed
655

656 657 658 659 660 661 662 663
  > form,
  > .commit-form-compact {
    padding: $gl-padding 0;
    margin-left: $gl-padding;
    margin-right: $gl-padding;
    border-top: 1px solid $white-dark;
  }

Phil Hughes's avatar
Phil Hughes committed
664
  .btn {
Phil Hughes's avatar
Phil Hughes committed
665
    font-size: $gl-font-size;
Jacob Schatz's avatar
Jacob Schatz committed
666
  }
667 668 669 670

  .multi-file-commit-panel-success-message {
    top: 0;
  }
Jacob Schatz's avatar
Jacob Schatz committed
671
}
672

673 674 675 676
.multi-file-commit-panel-bottom {
  position: relative;
}

677 678
.dirty-diff {
  // !important need to override monaco inline style
Phil Hughes's avatar
Phil Hughes committed
679 680
  width: 4px !important;
  left: 0 !important;
681 682

  &-modified {
683
    background-color: $blue-500;
684 685 686
  }

  &-added {
687
    background-color: $green-600;
688 689 690
  }

  &-removed {
Phil Hughes's avatar
Phil Hughes committed
691 692
    height: 0 !important;
    width: 0 !important;
693
    bottom: -2px;
694 695 696 697 698 699 700 701 702 703 704
    border-style: solid;
    border-width: 5px;
    border-color: transparent transparent transparent $red-500;

    &::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 100px;
      height: 1px;
Phil Hughes's avatar
Phil Hughes committed
705
      background-color: rgba($red-500, 0.5);
706
    }
707 708
  }
}
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723

.ide-loading {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.ide-empty-state {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

Phil Hughes's avatar
Phil Hughes committed
724
.ide-new-btn {
725 726 727 728 729 730 731 732 733
  .btn {
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .dropdown {
    display: flex;
  }

734
  .dropdown-toggle svg {
735
    top: 0;
736 737 738 739 740 741 742 743 744 745 746 747 748 749
  }

  .dropdown-menu {
    left: auto;
    right: 0;

    label {
      font-weight: $gl-font-weight-normal;
      padding: 5px 8px;
      margin-bottom: 0;
    }
  }
}

Phil Hughes's avatar
Phil Hughes committed
750 751
.ide {
  overflow: hidden;
Tim Zallmann's avatar
Tim Zallmann committed
752

Phil Hughes's avatar
Phil Hughes committed
753
  &.nav-only {
754 755 756 757 758 759
    padding-top: $header-height;

    .with-performance-bar & {
      padding-top: $header-height + $performance-bar-height;
    }

Phil Hughes's avatar
Phil Hughes committed
760
    .flash-container {
761
      margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
762 763
      margin-bottom: 0;
    }
Tim Zallmann's avatar
Tim Zallmann committed
764

Phil Hughes's avatar
Phil Hughes committed
765 766 767 768
    .alert-wrapper .flash-container .flash-alert:last-child,
    .alert-wrapper .flash-container .flash-notice:last-child {
      margin-bottom: 0;
    }
Tim Zallmann's avatar
Tim Zallmann committed
769

Phil Hughes's avatar
Phil Hughes committed
770
    .content-wrapper {
771
      margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
772
      padding-bottom: 0;
Tim Zallmann's avatar
Tim Zallmann committed
773 774
    }

Phil Hughes's avatar
Phil Hughes committed
775 776 777 778 779 780 781 782
    &.flash-shown {
      .content-wrapper {
        margin-top: 0;
      }

      .ide-view {
        height: calc(100vh - #{$header-height + $flash-height});
      }
Tim Zallmann's avatar
Tim Zallmann committed
783 784
    }

Phil Hughes's avatar
Phil Hughes committed
785 786 787 788
    .projects-sidebar {
      .multi-file-commit-panel-inner-scroll {
        flex: 1;
      }
Tim Zallmann's avatar
Tim Zallmann committed
789 790
    }
  }
791
}
792

Tim Zallmann's avatar
Tim Zallmann committed
793 794
.with-performance-bar .ide.nav-only {
  .flash-container {
795
    margin-top: 0;
Tim Zallmann's avatar
Tim Zallmann committed
796 797
  }

Phil Hughes's avatar
Phil Hughes committed
798
  .content-wrapper {
799
    margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
800
    padding-bottom: 0;
801 802 803 804 805
  }

  .ide-view {
    height: calc(100vh - #{$header-height + $performance-bar-height});
  }
Tim Zallmann's avatar
Tim Zallmann committed
806 807 808

  &.flash-shown {
    .ide-view {
809
      height: calc(100vh - #{$header-height + $performance-bar-height + $flash-height});
Tim Zallmann's avatar
Tim Zallmann committed
810 811
    }
  }
812 813 814 815 816 817
}

.dragHandle {
  position: absolute;
  top: 0;
  bottom: 0;
818
  width: 1px;
819 820 821 822 823 824 825 826 827 828
  background-color: $white-dark;

  &.dragright {
    right: 0;
  }

  &.dragleft {
    left: 0;
  }
}
Phil Hughes's avatar
Phil Hughes committed
829

830 831
.ide-commit-list-container {
  display: flex;
832
  flex: 1;
833
  flex-direction: column;
834
  min-height: 140px;
835 836
  margin-left: $gl-padding;
  margin-right: $gl-padding;
837

Phil Hughes's avatar
Phil Hughes committed
838 839
  &.is-first {
    border-bottom: 1px solid $white-dark;
840
  }
841 842 843 844
}

.ide-staged-action-btn {
  margin-left: auto;
845 846 847
  line-height: 22px;
}

848 849
.ide-commit-file-count {
  min-width: 22px;
850
  margin-left: auto;
851 852 853 854 855
  background-color: $gray-light;
  border-radius: $border-radius-default;
  border: 1px solid $white-dark;
  line-height: 20px;
  text-align: center;
856 857
}

Phil Hughes's avatar
Phil Hughes committed
858 859 860
.ide-commit-radios {
  label {
    font-weight: normal;
861 862 863 864 865 866

    &.is-disabled {
      .ide-radio-label {
        text-decoration: line-through;
      }
    }
Phil Hughes's avatar
Phil Hughes committed
867 868
  }

869
  .form-text.text-muted {
Phil Hughes's avatar
Phil Hughes committed
870 871 872 873 874 875 876 877 878 879 880 881
    margin-top: 0;
    line-height: 0;
  }
}

.ide-commit-new-branch {
  margin-left: 25px;
}

.ide-sidebar-link {
  display: flex;
  align-items: center;
882
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
883
  height: 60px;
884
  width: 100%;
Phil Hughes's avatar
Phil Hughes committed
885
  padding: 0 $gl-padding;
886 887 888 889 890 891
  color: $gl-text-color-secondary;
  background-color: transparent;
  border: 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  outline: 0;
892
  cursor: pointer;
893 894 895 896 897

  svg {
    margin: 0 auto;
  }

Phil Hughes's avatar
Phil Hughes committed
898
  &:hover {
Phil Hughes's avatar
Phil Hughes committed
899
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
900 901 902
    background-color: $theme-gray-100;
  }

903
  &:focus {
Phil Hughes's avatar
Phil Hughes committed
904
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
905
    background-color: $theme-gray-200;
906 907 908
  }

  &.active {
909 910 911
    // extend width over border of sidebar section
    width: calc(100% + 1px);
    padding-right: $gl-padding + 1px;
912 913 914 915 916 917 918 919 920 921 922 923 924
    background-color: $white-light;
    border-top-color: $white-dark;
    border-bottom-color: $white-dark;

    &::after {
      content: '';
      position: absolute;
      right: -1px;
      top: 0;
      bottom: 0;
      width: 1px;
      background: $white-light;
    }
Phil Hughes's avatar
Phil Hughes committed
925 926

    &.is-right {
927 928 929
      padding-right: $gl-padding;
      padding-left: $gl-padding + 1px;

Phil Hughes's avatar
Phil Hughes committed
930 931 932 933 934
      &::after {
        right: auto;
        left: -1px;
      }
    }
935 936 937 938 939 940
  }
}

.ide-activity-bar {
  position: relative;
  flex: 0 0 60px;
941
  z-index: 1;
Phil Hughes's avatar
Phil Hughes committed
942
}
Phil Hughes's avatar
Phil Hughes committed
943

Phil Hughes's avatar
Phil Hughes committed
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962
.ide-file-finder-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.ide-file-finder {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

  .highlighted {
    color: $blue-500;
    font-weight: $gl-font-weight-bold;
  }
}
963

Phil Hughes's avatar
Phil Hughes committed
964 965 966 967 968 969 970 971 972 973 974 975 976 977
.ide-commit-message-field {
  height: 200px;
  background-color: $white-light;

  .md-area {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .nav-links {
    height: 30px;
  }

978
  .form-text.text-muted {
Phil Hughes's avatar
Phil Hughes committed
979
    margin-top: 2px;
Phil Hughes's avatar
Phil Hughes committed
980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033
    color: $blue-500;
    cursor: pointer;
  }
}

.ide-commit-message-textarea-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  .note-textarea {
    font-family: $monospace_font;
  }
}

.ide-commit-message-highlights-container {
  position: absolute;
  left: 0;
  top: 0;
  right: -100px;
  bottom: 0;
  padding-right: 100px;
  pointer-events: none;
  z-index: 1;

  .highlights {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: transparent;
  }

  mark {
    margin-left: -1px;
    padding: 0 2px;
    border-radius: $border-radius-small;
    background-color: $orange-200;
    color: transparent;
    opacity: 0.6;
  }
}

.ide-commit-message-textarea {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: transparent;
  resize: none;
}
1034

Phil Hughes's avatar
Phil Hughes committed
1035 1036 1037
.ide-tree-header {
  display: flex;
  align-items: center;
1038
  margin-bottom: 8px;
Phil Hughes's avatar
Phil Hughes committed
1039
  padding: 12px 0;
Phil Hughes's avatar
Phil Hughes committed
1040 1041 1042 1043 1044 1045
  border-bottom: 1px solid $white-dark;

  .ide-new-btn {
    margin-left: auto;
  }
}
1046 1047 1048 1049 1050 1051 1052 1053 1054 1055

.ide-sidebar-branch-title {
  font-weight: $gl-font-weight-normal;

  svg {
    position: relative;
    top: 3px;
    margin-top: -1px;
  }
}
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069

.commit-form-compact {
  .btn {
    margin-bottom: 8px;
  }

  p {
    margin-bottom: 0;
  }
}

.commit-form-slide-up-enter-active,
.commit-form-slide-up-leave-active {
  position: absolute;
1070 1071 1072
  top: 0;
  left: 0;
  right: 0;
1073 1074 1075
  transition: all 0.3s ease;
}

1076 1077
.is-full .commit-form-slide-up-enter,
.is-compact .commit-form-slide-up-leave-to {
1078 1079 1080
  transform: translateY(100%);
}

1081 1082
.is-full .commit-form-slide-up-enter-to,
.is-compact .commit-form-slide-up-leave {
1083 1084 1085 1086 1087 1088 1089 1090
  transform: translateY(0);
}

.commit-form-slide-up-enter,
.commit-form-slide-up-leave-to {
  opacity: 0;
}

1091 1092 1093
.ide-review-header {
  flex-direction: column;
  align-items: flex-start;
Phil Hughes's avatar
Phil Hughes committed
1094 1095 1096 1097 1098 1099 1100 1101

  .dropdown {
    margin-left: auto;
  }

  a {
    color: $gl-link-color;
  }
1102 1103 1104 1105 1106
}

.ide-review-sub-header {
  color: $gl-text-color-secondary;
}
1107

Phil Hughes's avatar
Phil Hughes committed
1108 1109 1110 1111 1112
.ide-tree-changes {
  display: flex;
  align-items: center;
  font-size: 12px;
}
1113

1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126
.multi-file-commit-panel-success-message {
  position: absolute;
  top: 61px;
  left: 1px;
  bottom: 0;
  right: 0;
  z-index: 10;
  background: $white-light;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
1127

Phil Hughes's avatar
Phil Hughes committed
1128 1129 1130 1131 1132
.ide-review-button-holder {
  display: flex;
  width: 100%;
  align-items: center;
}
Phil Hughes's avatar
Phil Hughes committed
1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146

.ide-context-header {
  .avatar {
    flex: 0 0 40px;
  }
}

.ide-sidebar-project-title {
  min-width: 0;

  .sidebar-context-title {
    white-space: nowrap;
  }
}
Phil Hughes's avatar
Phil Hughes committed
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159

.ide-external-link {
  svg {
    display: none;
  }

  &:hover,
  &:focus {
    svg {
      display: inline-block;
    }
  }
}
1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255

.ide-right-sidebar {
  width: auto;
  min-width: 60px;

  .ide-activity-bar {
    border-left: 1px solid $white-dark;
  }

  .multi-file-commit-panel-inner {
    width: 350px;
    padding: $grid-size $gl-padding;
    background-color: $white-light;
    border-left: 1px solid $white-dark;
  }
}

.ide-pipeline {
  display: flex;
  flex-direction: column;
  height: 100%;

  .empty-state {
    margin-top: auto;
    margin-bottom: auto;

    p {
      margin: $grid-size 0;
      text-align: center;
      line-height: 24px;
    }

    .btn,
    h4 {
      margin: 0;
    }
  }
}

.ide-pipeline-list {
  flex: 1;
  overflow: auto;
}

.ide-pipeline-header {
  min-height: 50px;
  padding-left: $gl-padding;
  padding-right: $gl-padding;

  .ci-status-icon {
    display: flex;
  }
}

.ide-job-item {
  display: flex;
  padding: 16px;

  &:not(:last-child) {
    border-bottom: 1px solid $border-color;
  }

  .ci-status-icon {
    display: flex;
    justify-content: center;
    height: 20px;
    margin-top: -2px;
    overflow: hidden;
  }
}

.ide-stage {
  .card-header {
    display: flex;
    cursor: pointer;

    .ci-status-icon {
      display: flex;
      align-items: center;
    }
  }

  .card-body {
    padding: 0;
  }
}

.ide-stage-collapse-icon {
  margin: auto 0 auto auto;
}

.ide-stage-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}