repo.scss 15 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 25 26 27 28 29 30
  border-top: 1px solid $white-dark;
  border-bottom: 1px solid $white-dark;

  &.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 41 42 43
.ide-file-list {
  flex: 1;

  .file {
    cursor: pointer;
44 45

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

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

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

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

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

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

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

      > svg {
        display: block;
      }
82 83
    }

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

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

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

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

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

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

Phil Hughes's avatar
Phil Hughes committed
113 114 115
.file-name,
.file-col-commit-message {
  display: flex;
116
  overflow: visible;
Phil Hughes's avatar
Phil Hughes committed
117
  align-items: center;
118
  padding: 6px 12px;
Phil Hughes's avatar
Phil Hughes committed
119
}
120

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

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

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

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

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

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

    &.active {
      background-color: $white-light;
      border-bottom-color: $white-light;
    }
Phil Hughes's avatar
Phil Hughes committed
161
  }
Phil Hughes's avatar
Phil Hughes committed
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179

  .dropdown {
    display: flex;
    margin-left: auto;
    margin-bottom: 1px;
    padding: 0 $grid-size;
    border-left: 1px solid $white-dark;
    background-color: $white-light;

    &.shadow {
      box-shadow: 0 0 10px $dropdown-shadow-color;
    }

    .btn {
      margin-top: auto;
      margin-bottom: auto;
    }
  }
Phil Hughes's avatar
Phil Hughes committed
180
}
Jacob Schatz's avatar
Jacob Schatz committed
181

Phil Hughes's avatar
Phil Hughes committed
182
.multi-file-tab {
Phil Hughes's avatar
Phil Hughes committed
183
  @include str-truncated(141px);
Phil Hughes's avatar
Phil Hughes committed
184 185
  cursor: pointer;

186 187 188
  svg {
    vertical-align: middle;
  }
Phil Hughes's avatar
Phil Hughes committed
189
}
190

Phil Hughes's avatar
Phil Hughes committed
191
.multi-file-tab-close {
Phil Hughes's avatar
Phil Hughes committed
192 193
  width: 16px;
  height: 16px;
Phil Hughes's avatar
Phil Hughes committed
194
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
195
  margin-left: $grid-size;
Phil Hughes's avatar
Phil Hughes committed
196 197
  background: none;
  border: 0;
Phil Hughes's avatar
Phil Hughes committed
198 199
  border-radius: $border-radius-default;
  color: $theme-gray-900;
Phil Hughes's avatar
Phil Hughes committed
200

Phil Hughes's avatar
Phil Hughes committed
201 202 203
  svg {
    position: relative;
    top: -1px;
Phil Hughes's avatar
Phil Hughes committed
204
  }
205

206 207 208 209 210 211 212
  .ide-file-changed-icon {
    display: block;
    position: relative;
    top: 1px;
    right: 3px;
  }

Phil Hughes's avatar
Phil Hughes committed
213 214 215 216 217 218 219 220 221 222 223 224
  &:hover {
    background-color: $theme-gray-200;
  }

  &:focus {
    background-color: $blue-500;
    color: $white-light;
    outline: 0;

    svg {
      fill: currentColor;
    }
Phil Hughes's avatar
Phil Hughes committed
225 226
  }
}
227

Phil Hughes's avatar
Phil Hughes committed
228 229 230 231
.multi-file-edit-pane-content {
  flex: 1;
  height: 0;
}
Jacob Schatz's avatar
Jacob Schatz committed
232

233 234 235 236 237 238 239 240 241 242
.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
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 301 302 303 304 305

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

  .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;
    }
306 307 308 309

    .cursors-layer {
      display: none;
    }
Phil Hughes's avatar
Phil Hughes committed
310
  }
311 312 313 314
}

.multi-file-editor-holder {
  height: 100%;
Phil Hughes's avatar
Phil Hughes committed
315
  min-height: 0;
316 317
}

Tim Zallmann's avatar
Tim Zallmann committed
318 319 320 321
.preview-container {
  height: 100%;
  overflow: auto;

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 360
  .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
361 362 363 364 365 366
  .md-previewer {
    padding: $gl-padding;
  }
}

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

  .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;
381 382 383
}

.ide-status-bar {
Tim Zallmann's avatar
Tim Zallmann committed
384
  border-top: 1px solid $white-dark;
385 386 387
  padding: $gl-bar-padding $gl-padding;
  background: $white-light;
  display: flex;
388 389 390 391 392
  justify-content: flex-end;

  > div + div {
    padding-left: $gl-padding;
  }
393 394 395 396

  svg {
    vertical-align: middle;
  }
Phil Hughes's avatar
Phil Hughes committed
397 398 399 400 401 402 403
}

// 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
404 405
  .file-content.code {
    display: flex;
406

Phil Hughes's avatar
Phil Hughes committed
407 408
    i {
      margin-left: -10px;
409
    }
410 411
  }

Phil Hughes's avatar
Phil Hughes committed
412 413
  .line-numbers {
    min-width: 50px;
Jacob Schatz's avatar
Jacob Schatz committed
414
  }
415

Phil Hughes's avatar
Phil Hughes committed
416 417 418 419 420
  .file-content,
  .line-numbers,
  .blob-content,
  .code {
    min-height: 100%;
421
  }
Phil Hughes's avatar
Phil Hughes committed
422
}
Jacob Schatz's avatar
Jacob Schatz committed
423

424 425 426 427 428 429 430
.file-content.blob-no-preview {
  a {
    margin-left: auto;
    margin-right: auto;
  }
}

Phil Hughes's avatar
Phil Hughes committed
431 432
.multi-file-commit-panel {
  display: flex;
433
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
434
  width: 340px;
435
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
436
  background-color: $gray-light;
437
  padding-right: 1px;
Phil Hughes's avatar
Phil Hughes committed
438

439 440 441
  .context-header {
    width: auto;
    margin-right: 0;
442 443 444 445 446

    a:hover,
    a:focus {
      text-decoration: none;
    }
447 448
  }

449 450 451
  .projects-sidebar {
    display: flex;
    flex-direction: column;
452
    flex: 1;
453 454 455 456 457
  }

  .multi-file-commit-panel-inner {
    display: flex;
    flex-direction: column;
458
    height: 100%;
Phil Hughes's avatar
Phil Hughes committed
459 460
    min-width: 0;
    width: 100%;
461 462 463 464 465 466 467
  }

  .multi-file-commit-panel-inner-scroll {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: auto;
468 469 470 471
    background-color: $white-light;
    border-left: 1px solid $white-dark;
    border-top: 1px solid $white-dark;
    border-top-left-radius: $border-radius-small;
472 473 474
  }
}

Phil Hughes's avatar
Phil Hughes committed
475 476 477 478
.multi-file-commit-panel-section {
  display: flex;
  flex-direction: column;
  flex: 1;
479 480
  max-height: 100%;
  overflow: auto;
Phil Hughes's avatar
Phil Hughes committed
481
}
482

Phil Hughes's avatar
Phil Hughes committed
483
.ide-commit-empty-state {
484 485 486 487 488 489
  padding: 0 $gl-padding;
}

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

Phil Hughes's avatar
Phil Hughes committed
492 493 494
.multi-file-commit-panel-header {
  display: flex;
  align-items: center;
495
  margin-bottom: 0;
Phil Hughes's avatar
Phil Hughes committed
496
  border-bottom: 1px solid $white-dark;
497
  padding: $gl-btn-padding 0;
Phil Hughes's avatar
Phil Hughes committed
498
}
499

500 501 502
.multi-file-commit-panel-header-title {
  display: flex;
  flex: 1;
Phil Hughes's avatar
Phil Hughes committed
503
  padding-left: $grid-size;
504

505 506
  svg {
    margin-right: $gl-btn-padding;
507
    color: $theme-gray-700;
508
  }
Phil Hughes's avatar
Phil Hughes committed
509
}
Jacob Schatz's avatar
Jacob Schatz committed
510

511 512
.multi-file-commit-panel-collapse-btn {
  border-left: 1px solid $white-dark;
513
  margin-left: auto;
514 515
}

Phil Hughes's avatar
Phil Hughes committed
516 517
.multi-file-commit-list {
  flex: 1;
518
  overflow: auto;
Phil Hughes's avatar
Phil Hughes committed
519 520
  padding: $gl-padding 0;
  min-height: 60px;
Phil Hughes's avatar
Phil Hughes committed
521
}
522

Phil Hughes's avatar
Phil Hughes committed
523 524
.multi-file-commit-list-item {
  display: flex;
Phil Hughes's avatar
Phil Hughes committed
525
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
526
  align-items: center;
527
  border-radius: $border-radius-default;
Phil Hughes's avatar
Phil Hughes committed
528 529 530

  .multi-file-discard-btn {
    display: none;
531
    margin-top: -2px;
Phil Hughes's avatar
Phil Hughes committed
532
    margin-left: auto;
533
    margin-right: $grid-size;
Phil Hughes's avatar
Phil Hughes committed
534 535 536 537 538 539 540 541 542 543 544 545
    color: $gl-link-color;

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

  &:hover {
    background: $white-normal;

    .multi-file-discard-btn {
546
      display: flex;
Phil Hughes's avatar
Phil Hughes committed
547 548
    }
  }
Phil Hughes's avatar
Phil Hughes committed
549
}
550

Phil Hughes's avatar
Phil Hughes committed
551 552
.multi-file-additions,
.multi-file-additions-solid {
Phil Hughes's avatar
Phil Hughes committed
553 554
  fill: $green-500;
}
555

Phil Hughes's avatar
Phil Hughes committed
556 557
.multi-file-modified,
.multi-file-modified-solid {
Phil Hughes's avatar
Phil Hughes committed
558 559
  fill: $orange-500;
}
560

Phil Hughes's avatar
Phil Hughes committed
561 562 563
.multi-file-commit-list-collapsed {
  display: flex;
  flex-direction: column;
564
  padding: $gl-padding 0;
565

566 567
  svg {
    display: block;
Phil Hughes's avatar
Phil Hughes committed
568 569
    margin-left: auto;
    margin-right: auto;
570
    color: $theme-gray-700;
571
  }
Phil Hughes's avatar
Phil Hughes committed
572 573 574 575 576 577

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

Phil Hughes's avatar
Phil Hughes committed
580
.multi-file-commit-list-path {
Phil Hughes's avatar
Phil Hughes committed
581
  padding: $grid-size / 2;
582
  padding-left: $grid-size;
Phil Hughes's avatar
Phil Hughes committed
583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601
  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
602
  @include str-truncated(100%);
Phil Hughes's avatar
Phil Hughes committed
603 604 605 606 607 608 609 610

  &:hover {
    text-decoration: underline;
  }

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

Phil Hughes's avatar
Phil Hughes committed
613
.multi-file-commit-form {
614
  padding: $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
615
  border-top: 1px solid $white-dark;
Mike Greiling's avatar
Mike Greiling committed
616

Phil Hughes's avatar
Phil Hughes committed
617
  .btn {
Phil Hughes's avatar
Phil Hughes committed
618
    font-size: $gl-font-size;
Jacob Schatz's avatar
Jacob Schatz committed
619 620
  }
}
621

622 623
.dirty-diff {
  // !important need to override monaco inline style
Phil Hughes's avatar
Phil Hughes committed
624 625
  width: 4px !important;
  left: 0 !important;
626 627

  &-modified {
628
    background-color: $blue-500;
629 630 631
  }

  &-added {
632
    background-color: $green-600;
633 634 635
  }

  &-removed {
Phil Hughes's avatar
Phil Hughes committed
636 637
    height: 0 !important;
    width: 0 !important;
638
    bottom: -2px;
639 640 641 642 643 644 645 646 647 648 649
    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
650
      background-color: rgba($red-500, 0.5);
651
    }
652 653
  }
}
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668

.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
669
.ide-new-btn {
670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686
  .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
687 688
.ide {
  overflow: hidden;
Tim Zallmann's avatar
Tim Zallmann committed
689

Phil Hughes's avatar
Phil Hughes committed
690
  &.nav-only {
691 692 693 694 695 696
    padding-top: $header-height;

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

Phil Hughes's avatar
Phil Hughes committed
697
    .flash-container {
698
      margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
699 700
      margin-bottom: 0;
    }
Tim Zallmann's avatar
Tim Zallmann committed
701

Phil Hughes's avatar
Phil Hughes committed
702 703 704 705
    .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
706

Phil Hughes's avatar
Phil Hughes committed
707
    .content-wrapper {
708
      margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
709
      padding-bottom: 0;
Tim Zallmann's avatar
Tim Zallmann committed
710 711
    }

Phil Hughes's avatar
Phil Hughes committed
712 713 714 715 716 717 718 719
    &.flash-shown {
      .content-wrapper {
        margin-top: 0;
      }

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

Phil Hughes's avatar
Phil Hughes committed
722 723 724 725
    .projects-sidebar {
      .multi-file-commit-panel-inner-scroll {
        flex: 1;
      }
Tim Zallmann's avatar
Tim Zallmann committed
726 727
    }
  }
728
}
729

Tim Zallmann's avatar
Tim Zallmann committed
730 731
.with-performance-bar .ide.nav-only {
  .flash-container {
732
    margin-top: 0;
Tim Zallmann's avatar
Tim Zallmann committed
733 734
  }

Phil Hughes's avatar
Phil Hughes committed
735
  .content-wrapper {
736
    margin-top: 0;
Phil Hughes's avatar
Phil Hughes committed
737
    padding-bottom: 0;
738 739 740 741 742
  }

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

  &.flash-shown {
    .ide-view {
746
      height: calc(100vh - #{$header-height + $performance-bar-height + $flash-height});
Tim Zallmann's avatar
Tim Zallmann committed
747 748
    }
  }
749 750 751 752 753 754
}

.dragHandle {
  position: absolute;
  top: 0;
  bottom: 0;
755
  width: 1px;
756 757 758 759 760 761 762 763 764 765
  background-color: $white-dark;

  &.dragright {
    right: 0;
  }

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

767 768
.ide-commit-list-container {
  display: flex;
769
  flex: 1;
770 771
  flex-direction: column;
  width: 100%;
772
  min-height: 140px;
773 774 775 776 777 778 779 780
  padding: 0 16px;
}

.ide-staged-action-btn {
  margin-left: auto;
  color: $gl-link-color;
}

Phil Hughes's avatar
Phil Hughes committed
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798
.ide-commit-radios {
  label {
    font-weight: normal;
  }

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

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

.ide-sidebar-link {
  display: flex;
  align-items: center;
799
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
800
  height: 60px;
801
  width: 100%;
Phil Hughes's avatar
Phil Hughes committed
802
  padding: 0 $gl-padding;
803 804 805 806 807 808 809 810 811 812 813
  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
814 815 816 817
  &:hover {
    background-color: $theme-gray-100;
  }

818
  &:focus {
Phil Hughes's avatar
Phil Hughes committed
819
    background-color: $theme-gray-200;
820 821 822
  }

  &.active {
823 824 825
    // extend width over border of sidebar section
    width: calc(100% + 1px);
    padding-right: $gl-padding + 1px;
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844
    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;
Phil Hughes's avatar
Phil Hughes committed
845
}
Phil Hughes's avatar
Phil Hughes committed
846

Phil Hughes's avatar
Phil Hughes committed
847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865
.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;
  }
}
866

Phil Hughes's avatar
Phil Hughes committed
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881
.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
882
    margin-top: 2px;
Phil Hughes's avatar
Phil Hughes committed
883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936
    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;
}
Phil Hughes's avatar
Phil Hughes committed
937 938 939 940 941 942 943 944 945 946 947 948 949

.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;
  }
}
950 951 952 953 954 955 956 957 958 959

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

  svg {
    position: relative;
    top: 3px;
    margin-top: -1px;
  }
}
960

961 962 963
.ide-new-modal-label {
  line-height: 34px;
}