repo.scss 17.1 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,
Jacob Schatz's avatar
Jacob Schatz committed
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 25
  border-top: 1px solid $white-dark;
  border-bottom: 1px solid $white-dark;
26
  padding-bottom: $ide-statusbar-height;
Phil Hughes's avatar
Phil Hughes committed
27 28 29 30 31

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

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

Phil Hughes's avatar
Phil Hughes committed
40 41 42 43 44
.ide-file-list {
  flex: 1;

  .file {
    cursor: pointer;
45 46

    &.file-open {
47
      background: $link-active-background;
48 49
    }

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

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

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

      .loading-container {
        margin-right: 4px;
        display: inline-block;
      }
70 71
    }

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

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

      > svg {
        display: block;
      }
83 84
    }

Phil Hughes's avatar
Phil Hughes committed
85
    .ide-new-btn {
86
      display: none;
Phil Hughes's avatar
Phil Hughes committed
87
      margin-right: -8px;
88 89
    }

90 91 92 93
    &:hover,
    &:focus {
      background: $link-active-background;

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

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

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

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

Phil Hughes's avatar
Phil Hughes committed
114 115 116
.file-name,
.file-col-commit-message {
  display: flex;
117
  overflow: visible;
Phil Hughes's avatar
Phil Hughes committed
118
  align-items: center;
119
  padding: 6px 12px;
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;

Tim Zallmann's avatar
Tim Zallmann committed
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 186
  svg {
    position: relative;
    top: -1px;
Phil Hughes's avatar
Phil Hughes committed
187
  }
188

Phil Hughes's avatar
Phil Hughes committed
189 190 191 192
  .ide-file-changed-icon {
    display: block;
    position: relative;
    top: 1px;
Phil Hughes's avatar
Phil Hughes committed
193
    right: -2px;
Phil Hughes's avatar
Phil Hughes committed
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 309 310 311
.preview-container {
  height: 100%;
  overflow: auto;

312 313 314 315 316 317 318 319 320 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
  .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
351 352 353 354 355 356
  .md-previewer {
    padding: $gl-padding;
  }
}

.ide-mode-tabs {
357
  border-bottom: 1px solid $white-dark;
Tim Zallmann's avatar
Tim Zallmann committed
358 359 360 361 362 363 364 365 366 367 368 369 370

  .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;
371
  line-height: 24px;
372 373 374
}

.ide-status-bar {
Tim Zallmann's avatar
Tim Zallmann committed
375
  border-top: 1px solid $white-dark;
376 377 378
  padding: $gl-bar-padding $gl-padding;
  background: $white-light;
  display: flex;
379 380 381 382 383 384 385
  justify-content: space-between;
  height: $ide-statusbar-height;

  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
386 387 388 389

  > div + div {
    padding-left: $gl-padding;
  }
390 391 392 393

  svg {
    vertical-align: middle;
  }
Phil Hughes's avatar
Phil Hughes committed
394 395
}

396 397 398 399 400 401 402 403
.ide-status-file {
  text-align: right;

  .ide-status-branch + &,
  &:first-child {
    margin-left: auto;
  }
}
Phil Hughes's avatar
Phil Hughes committed
404 405 406 407 408
// 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
409 410
  .file-content.code {
    display: flex;
411

Phil Hughes's avatar
Phil Hughes committed
412 413
    i {
      margin-left: -10px;
414
    }
415 416
  }

Phil Hughes's avatar
Phil Hughes committed
417 418
  .line-numbers {
    min-width: 50px;
Jacob Schatz's avatar
Jacob Schatz committed
419
  }
420

Phil Hughes's avatar
Phil Hughes committed
421 422 423 424 425
  .file-content,
  .line-numbers,
  .blob-content,
  .code {
    min-height: 100%;
426
  }
Phil Hughes's avatar
Phil Hughes committed
427
}
Jacob Schatz's avatar
Jacob Schatz committed
428

429 430 431 432 433 434 435
.file-content.blob-no-preview {
  a {
    margin-left: auto;
    margin-right: auto;
  }
}

Phil Hughes's avatar
Phil Hughes committed
436 437
.multi-file-commit-panel {
  display: flex;
438
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
439
  width: 340px;
440
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
441
  background-color: $gray-light;
Phil Hughes's avatar
Phil Hughes committed
442
  padding-right: 1px;
Phil Hughes's avatar
Phil Hughes committed
443

Phil Hughes's avatar
Phil Hughes committed
444 445 446
  .context-header {
    width: auto;
    margin-right: 0;
447 448 449 450 451

    a:hover,
    a:focus {
      text-decoration: none;
    }
Phil Hughes's avatar
Phil Hughes committed
452
  }
Phil Hughes's avatar
Phil Hughes committed
453

454
  .projects-sidebar {
455
    min-height: 0;
456 457
    display: flex;
    flex-direction: column;
458
    flex: 1;
459 460 461
  }

  .multi-file-commit-panel-inner {
462
    position: relative;
463 464
    display: flex;
    flex-direction: column;
465
    height: 100%;
Phil Hughes's avatar
Phil Hughes committed
466 467
    min-width: 0;
    width: 100%;
468 469 470 471 472 473 474
  }

  .multi-file-commit-panel-inner-scroll {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: auto;
Phil Hughes's avatar
Phil Hughes committed
475 476
    background-color: $white-light;
    border-left: 1px solid $white-dark;
477
    border-top: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
478
    border-top-left-radius: $border-radius-small;
Phil Hughes's avatar
Phil Hughes committed
479 480
  }
}
481

Phil Hughes's avatar
Phil Hughes committed
482 483 484 485
.multi-file-commit-panel-section {
  display: flex;
  flex-direction: column;
  flex: 1;
486 487
  max-height: 100%;
  overflow: auto;
Phil Hughes's avatar
Phil Hughes committed
488
}
489

Phil Hughes's avatar
Phil Hughes committed
490
.ide-commit-empty-state {
Phil Hughes's avatar
Phil Hughes committed
491 492 493 494 495 496
  padding: 0 $gl-padding;
}

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

Phil Hughes's avatar
Phil Hughes committed
499 500 501
.multi-file-commit-panel-header {
  display: flex;
  align-items: center;
502
  margin-bottom: 0;
Phil Hughes's avatar
Phil Hughes committed
503
  border-bottom: 1px solid $white-dark;
504
  padding: $gl-btn-padding $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
505
}
506

507 508 509
.multi-file-commit-panel-header-title {
  display: flex;
  flex: 1;
510
  align-items: center;
511

512 513
  svg {
    margin-right: $gl-btn-padding;
514
    color: $theme-gray-700;
515
  }
Phil Hughes's avatar
Phil Hughes committed
516
}
Jacob Schatz's avatar
Jacob Schatz committed
517

518 519
.multi-file-commit-panel-collapse-btn {
  border-left: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
520
  margin-left: auto;
521 522
}

Phil Hughes's avatar
Phil Hughes committed
523 524
.multi-file-commit-list {
  flex: 1;
525
  overflow: auto;
526
  padding: $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
527
  min-height: 60px;
Phil Hughes's avatar
Phil Hughes committed
528
}
529

Phil Hughes's avatar
Phil Hughes committed
530 531
.multi-file-commit-list-item {
  display: flex;
Phil Hughes's avatar
Phil Hughes committed
532
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
533
  align-items: center;
Phil Hughes's avatar
Phil Hughes committed
534
  border-radius: $border-radius-default;
Phil Hughes's avatar
Phil Hughes committed
535 536 537

  .multi-file-discard-btn {
    display: none;
Phil Hughes's avatar
Phil Hughes committed
538
    margin-top: -2px;
Phil Hughes's avatar
Phil Hughes committed
539
    margin-left: auto;
Phil Hughes's avatar
Phil Hughes committed
540
    margin-right: $grid-size;
Phil Hughes's avatar
Phil Hughes committed
541 542 543 544 545 546 547 548 549 550 551 552
    color: $gl-link-color;

    &:focus,
    &:hover {
      text-decoration: underline;
    }
  }

  &:hover {
    background: $white-normal;

    .multi-file-discard-btn {
Phil Hughes's avatar
Phil Hughes committed
553
      display: flex;
Phil Hughes's avatar
Phil Hughes committed
554 555
    }
  }
Phil Hughes's avatar
Phil Hughes committed
556
}
Clement Ho's avatar
Clement Ho committed
557

Phil Hughes's avatar
Phil Hughes committed
558 559
.multi-file-addition,
.multi-file-addition-solid {
560
  color: $green-500;
Phil Hughes's avatar
Phil Hughes committed
561
}
562

Phil Hughes's avatar
Phil Hughes committed
563 564
.multi-file-modified,
.multi-file-modified-solid {
565
  color: $orange-500;
Phil Hughes's avatar
Phil Hughes committed
566
}
567

Phil Hughes's avatar
Phil Hughes committed
568 569 570
.multi-file-commit-list-collapsed {
  display: flex;
  flex-direction: column;
Phil Hughes's avatar
Phil Hughes committed
571
  padding: $gl-padding 0;
572

573 574
  svg {
    display: block;
Phil Hughes's avatar
Phil Hughes committed
575 576
    margin-left: auto;
    margin-right: auto;
Phil Hughes's avatar
Phil Hughes committed
577
    color: $theme-gray-700;
578
  }
Phil Hughes's avatar
Phil Hughes committed
579 580 581 582 583 584

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

Phil Hughes's avatar
Phil Hughes committed
587
.multi-file-commit-list-path {
Phil Hughes's avatar
Phil Hughes committed
588
  padding: $grid-size / 2;
Phil Hughes's avatar
Phil Hughes committed
589
  padding-left: $grid-size;
Phil Hughes's avatar
Phil Hughes committed
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
  min-width: 0;

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

  &:hover,
  &:focus {
    outline: 0;
  }
}

.multi-file-commit-list-file-path {
Phil Hughes's avatar
Phil Hughes committed
609
  @include str-truncated(100%);
Phil Hughes's avatar
Phil Hughes committed
610 611 612 613 614 615 616 617

  &:hover {
    text-decoration: underline;
  }

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

Phil Hughes's avatar
Phil Hughes committed
620
.multi-file-commit-form {
Phil Hughes's avatar
Phil Hughes committed
621
  position: relative;
622
  padding: $gl-padding;
623
  background-color: $white-light;
Phil Hughes's avatar
Phil Hughes committed
624
  border-top: 1px solid $white-dark;
625
  border-left: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
626
  transition: all 0.3s ease;
Mike Greiling's avatar
Mike Greiling committed
627

Phil Hughes's avatar
Phil Hughes committed
628
  .btn {
Phil Hughes's avatar
Phil Hughes committed
629
    font-size: $gl-font-size;
Jacob Schatz's avatar
Jacob Schatz committed
630
  }
631 632 633 634

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

André Luís's avatar
André Luís committed
637 638 639 640
.multi-file-commit-panel-bottom {
  position: relative;
}

641 642
.dirty-diff {
  // !important need to override monaco inline style
Phil Hughes's avatar
Phil Hughes committed
643 644
  width: 4px !important;
  left: 0 !important;
645 646

  &-modified {
647
    background-color: $blue-500;
648 649 650
  }

  &-added {
651
    background-color: $green-600;
652 653 654
  }

  &-removed {
Phil Hughes's avatar
Phil Hughes committed
655 656
    height: 0 !important;
    width: 0 !important;
657
    bottom: -2px;
658 659 660 661 662 663 664 665 666 667 668
    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
669
      background-color: rgba($red-500, 0.5);
670
    }
671 672
  }
}
673 674 675 676 677 678 679 680 681 682 683 684 685 686 687

.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
688
.ide-new-btn {
689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
  .dropdown-toggle svg {
    margin-top: -2px;
    margin-bottom: 2px;
  }

  .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
706 707
.ide {
  overflow: hidden;
Tim Zallmann's avatar
Tim Zallmann committed
708

Phil Hughes's avatar
Phil Hughes committed
709
  &.nav-only {
710 711 712 713 714 715
    padding-top: $header-height;

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

Phil Hughes's avatar
Phil Hughes committed
716
    .flash-container {
717
      margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
718 719
      margin-bottom: 0;
    }
Tim Zallmann's avatar
Tim Zallmann committed
720

Phil Hughes's avatar
Phil Hughes committed
721 722 723 724
    .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
725

Phil Hughes's avatar
Phil Hughes committed
726
    .content-wrapper {
727
      margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
728
      padding-bottom: 0;
Tim Zallmann's avatar
Tim Zallmann committed
729 730
    }

Phil Hughes's avatar
Phil Hughes committed
731 732 733 734 735 736 737 738
    &.flash-shown {
      .content-wrapper {
        margin-top: 0;
      }

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

Phil Hughes's avatar
Phil Hughes committed
741 742 743 744
    .projects-sidebar {
      .multi-file-commit-panel-inner-scroll {
        flex: 1;
      }
Tim Zallmann's avatar
Tim Zallmann committed
745 746
    }
  }
747
}
748

Tim Zallmann's avatar
Tim Zallmann committed
749 750
.with-performance-bar .ide.nav-only {
  .flash-container {
751
    margin-top: 0;
Tim Zallmann's avatar
Tim Zallmann committed
752 753
  }

Phil Hughes's avatar
Phil Hughes committed
754
  .content-wrapper {
755
    margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
756
    padding-bottom: 0;
757 758 759 760 761
  }

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

  &.flash-shown {
    .ide-view {
765
      height: calc(100vh - #{$header-height + $performance-bar-height + $flash-height});
Tim Zallmann's avatar
Tim Zallmann committed
766 767
    }
  }
768 769 770 771 772 773
}

.dragHandle {
  position: absolute;
  top: 0;
  bottom: 0;
Phil Hughes's avatar
Phil Hughes committed
774
  width: 1px;
775 776 777 778 779 780 781 782 783 784
  background-color: $white-dark;

  &.dragright {
    right: 0;
  }

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

Phil Hughes's avatar
Phil Hughes committed
786 787
.ide-commit-list-container {
  display: flex;
Phil Hughes's avatar
Phil Hughes committed
788
  flex: 1;
Phil Hughes's avatar
Phil Hughes committed
789 790
  flex-direction: column;
  width: 100%;
Phil Hughes's avatar
Phil Hughes committed
791
  min-height: 140px;
Phil Hughes's avatar
Phil Hughes committed
792

Phil Hughes's avatar
Phil Hughes committed
793 794
  &.is-first {
    border-bottom: 1px solid $white-dark;
795
  }
Phil Hughes's avatar
Phil Hughes committed
796 797 798 799
}

.ide-staged-action-btn {
  margin-left: auto;
800 801 802
  line-height: 22px;
}

803 804
.ide-commit-file-count {
  min-width: 22px;
Phil Hughes's avatar
Phil Hughes committed
805
  margin-left: auto;
806 807 808 809 810
  background-color: $gray-light;
  border-radius: $border-radius-default;
  border: 1px solid $white-dark;
  line-height: 20px;
  text-align: center;
Phil Hughes's avatar
Phil Hughes committed
811 812
}

Phil Hughes's avatar
Phil Hughes committed
813 814 815
.ide-commit-radios {
  label {
    font-weight: normal;
Phil Hughes's avatar
Phil Hughes committed
816 817 818 819 820 821

    &.is-disabled {
      .ide-radio-label {
        text-decoration: line-through;
      }
    }
Phil Hughes's avatar
Phil Hughes committed
822 823 824 825 826 827 828 829 830 831 832 833 834 835 836
  }

  .help-block {
    margin-top: 0;
    line-height: 0;
  }
}

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

.ide-sidebar-link {
  display: flex;
  align-items: center;
Phil Hughes's avatar
Phil Hughes committed
837
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
838
  height: 60px;
Phil Hughes's avatar
Phil Hughes committed
839
  width: 100%;
Phil Hughes's avatar
Phil Hughes committed
840
  padding: 0 $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
841 842 843 844 845 846 847 848 849 850 851
  color: $gl-text-color-secondary;
  background-color: transparent;
  border: 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  outline: 0;

  svg {
    margin: 0 auto;
  }

Phil Hughes's avatar
Phil Hughes committed
852
  &:hover {
Phil Hughes's avatar
Phil Hughes committed
853
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
854 855 856
    background-color: $theme-gray-100;
  }

Phil Hughes's avatar
Phil Hughes committed
857
  &:focus {
Phil Hughes's avatar
Phil Hughes committed
858
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
859
    background-color: $theme-gray-200;
Phil Hughes's avatar
Phil Hughes committed
860 861 862
  }

  &.active {
863 864 865
    // extend width over border of sidebar section
    width: calc(100% + 1px);
    padding-right: $gl-padding + 1px;
Phil Hughes's avatar
Phil Hughes committed
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
    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;
    }
  }
}

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

Phil Hughes's avatar
Phil Hughes committed
888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906
.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;
  }
}
907

Phil Hughes's avatar
Phil Hughes committed
908 909 910 911 912 913 914 915 916 917 918 919 920 921 922
.ide-commit-message-field {
  height: 200px;
  background-color: $white-light;

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

  .nav-links {
    height: 30px;
  }

  .help-block {
Phil Hughes's avatar
Phil Hughes committed
923
    margin-top: 2px;
Phil Hughes's avatar
Phil Hughes committed
924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977
    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;
}
978

Phil Hughes's avatar
Phil Hughes committed
979 980 981 982 983 984 985 986 987 988 989 990
.ide-tree-header {
  display: flex;
  align-items: center;
  padding: 10px 0;
  margin-left: 10px;
  margin-right: 10px;
  border-bottom: 1px solid $white-dark;

  .ide-new-btn {
    margin-left: auto;
  }
}
991 992 993 994 995 996 997 998 999 1000

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

  svg {
    position: relative;
    top: 3px;
    margin-top: -1px;
  }
}
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020

.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;
  top: 16px;
  left: 16px;
  right: 16px;
  transition: all 0.3s ease;
}

1021 1022
.is-full .commit-form-slide-up-enter,
.is-compact .commit-form-slide-up-leave-to {
1023 1024 1025
  transform: translateY(100%);
}

1026 1027
.is-full .commit-form-slide-up-enter-to,
.is-compact .commit-form-slide-up-leave {
1028 1029 1030 1031 1032 1033 1034 1035
  transform: translateY(0);
}

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

1036 1037 1038
.ide-review-header {
  flex-direction: column;
  align-items: flex-start;
Phil Hughes's avatar
Phil Hughes committed
1039 1040 1041 1042 1043 1044 1045 1046

  .dropdown {
    margin-left: auto;
  }

  a {
    color: $gl-link-color;
  }
1047 1048 1049 1050 1051
}

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

Phil Hughes's avatar
Phil Hughes committed
1053 1054 1055 1056 1057
.ide-tree-changes {
  display: flex;
  align-items: center;
  font-size: 12px;
}
1058

1059 1060 1061
.ide-new-modal-label {
  line-height: 34px;
}
1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075

.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;
}
1076

Phil Hughes's avatar
Phil Hughes committed
1077 1078 1079 1080 1081
.ide-review-button-holder {
  display: flex;
  width: 100%;
  align-items: center;
}
Phil Hughes's avatar
Phil Hughes committed
1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095

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

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

  .sidebar-context-title {
    white-space: nowrap;
  }
}