Skip to content
repo.scss 8.03 KiB
Newer Older
Luke "Jared" Bennett's avatar
Luke "Jared" Bennett committed
.project-refs-form,
.project-refs-target-form {
  display: inline-block;
}

.fade-leave-to {
Jacob Schatz's avatar
Jacob Schatz committed
}

Jacob Schatz's avatar
Jacob Schatz committed
  @include str-truncated(250px);
Jacob Schatz's avatar
Jacob Schatz committed
.editable-mode {
@media (min-width: $screen-md-min) {
  .blob-viewer[data-type="rich"] {
    margin: 20px;
  }
Phil Hughes's avatar
Phil Hughes committed
  display: flex;
  height: calc(100vh - #{$header-height});
  color: $almost-black;
Phil Hughes's avatar
Phil Hughes committed
  border-top: 1px solid $white-dark;
  border-bottom: 1px solid $white-dark;

  &.is-collapsed {
    .ide-file-list {
      max-width: 250px;
    }
Phil Hughes's avatar
Phil Hughes committed
}
Jacob Schatz's avatar
Jacob Schatz committed

Phil Hughes's avatar
Phil Hughes committed
.ide-file-list {
  flex: 1;

  .file {
    cursor: pointer;

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

    .repo-file-name {
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .unsaved-icon {
      color: $indigo-700;
      float: right;
      font-size: smaller;
      line-height: 20px;
    }

    .repo-new-btn {
      display: none;
      margin-top: -4px;
      margin-bottom: -4px;
    }

    &:hover {
      .repo-new-btn {
        display: block;
      }

      .unsaved-icon {
        display: none;
      }
    }
Phil Hughes's avatar
Phil Hughes committed
  a {
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
  th {
    position: sticky;
    top: 0;
Phil Hughes's avatar
Phil Hughes committed
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-table-name,
Phil Hughes's avatar
Phil Hughes committed
.multi-file-table-col-commit-message {
Phil Hughes's avatar
Phil Hughes committed
  max-width: 0;
Phil Hughes's avatar
Phil Hughes committed
}
table.table tr td.multi-file-table-name {
Phil Hughes's avatar
Phil Hughes committed
  width: 350px;
  padding: 6px 12px;

  svg {
    vertical-align: middle;
    margin-right: 2px;
  }
Phil Hughes's avatar
Phil Hughes committed
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-table-col-commit-message {
  white-space: nowrap;
Phil Hughes's avatar
Phil Hughes committed
  width: 50%;
Phil Hughes's avatar
Phil Hughes committed
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-edit-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-left: 1px solid $white-dark;
  overflow: hidden;
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-tabs {
  display: flex;
Phil Hughes's avatar
Phil Hughes committed
  background-color: $white-normal;
  box-shadow: inset 0 -1px $white-dark;
Phil Hughes's avatar
Phil Hughes committed
  > li {
    position: relative;
  }
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-tab {
Phil Hughes's avatar
Phil Hughes committed
  @include str-truncated(150px);
Phil Hughes's avatar
Phil Hughes committed
  padding: ($gl-padding / 2) ($gl-padding + 12) ($gl-padding / 2) $gl-padding;
  background-color: $gray-normal;
  border-right: 1px solid $white-dark;
  border-bottom: 1px solid $white-dark;
  cursor: pointer;

  svg {
    vertical-align: middle;
  }

Phil Hughes's avatar
Phil Hughes committed
  &.active {
    background-color: $white-light;
    border-bottom-color: $white-light;
  }
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-tab-close {
  position: absolute;
  right: 8px;
  top: 50%;
  padding: 0;
  background: none;
  border: 0;
  font-size: $gl-font-size;
  color: $gray-darkest;
  transform: translateY(-50%);

  &:not(.modified):hover,
  &:not(.modified):focus {
    color: $hint-color;
  }
Phil Hughes's avatar
Phil Hughes committed
  &.modified {
    color: $indigo-700;
  }
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-edit-pane-content {
  flex: 1;
  height: 0;
}
.blob-editor-container {
  flex: 1;
  height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;

  .vertical-center {
    min-height: auto;
  }
}

.multi-file-editor-holder {
  height: 100%;
}

Phil Hughes's avatar
Phil Hughes committed
.multi-file-editor-btn-group {
  padding: $gl-bar-padding $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
  border-top: 1px solid $white-dark;
  border-bottom: 1px solid $white-dark;
  background: $white-light;
}

.ide-status-bar {
  padding: $gl-bar-padding $gl-padding;
  background: $white-light;
  display: flex;
  justify-content: space-between;

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

// 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
  .file-content.code {
    display: flex;
Phil Hughes's avatar
Phil Hughes committed
    i {
      margin-left: -10px;
Phil Hughes's avatar
Phil Hughes committed
  .line-numbers {
    min-width: 50px;
Jacob Schatz's avatar
Jacob Schatz committed
  }
Phil Hughes's avatar
Phil Hughes committed
  .file-content,
  .line-numbers,
  .blob-content,
  .code {
    min-height: 100%;
Phil Hughes's avatar
Phil Hughes committed
}
Jacob Schatz's avatar
Jacob Schatz committed

.file-content.blob-no-preview {
  a {
    margin-left: auto;
    margin-right: auto;
  }
}

Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-panel {
  display: flex;
  position: relative;
Phil Hughes's avatar
Phil Hughes committed
  flex-direction: column;
  height: 100%;
  width: 290px;
Phil Hughes's avatar
Phil Hughes committed
  background-color: $gray-light;
  padding-right: 3px;
  .projects-sidebar {
    display: flex;
    flex-direction: column;
  }

  .multi-file-commit-panel-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .multi-file-commit-panel-inner-scroll {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: auto;
  }

Phil Hughes's avatar
Phil Hughes committed
  &.is-collapsed {
    width: 60px;

    .multi-file-commit-list {
      padding-top: $gl-padding;
      overflow: hidden;
    }

    .multi-file-context-bar-icon {
      align-items: center;

      svg {
        float: none;
        margin: 0;
      }
    }
  }

  .branch-container {
    border-left: 4px solid $indigo-700;
    margin-bottom: $gl-bar-padding;
  }

  .branch-header {
    background: $white-dark;
    display: flex;
  }

  .branch-header-title {
    flex: 1;
    padding: $grid-size $gl-padding;
    color: $indigo-700;
    font-weight: $gl-font-weight-bold;

    svg {
      vertical-align: middle;
    }
  }

  .branch-header-btns {
    padding: $gl-vert-padding $gl-padding;
  }

  .left-collapse-btn {
    display: none;
    background: $gray-light;
    text-align: left;
    border-top: 1px solid $white-dark;

    svg {
      vertical-align: middle;
    }
  }
}

.multi-file-context-bar-icon {
  padding: 10px;

  svg {
    margin-right: 10px;
    float: left;
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-panel-section {
  display: flex;
  flex-direction: column;
  flex: 1;
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid $white-dark;
  padding: $gl-btn-padding 0;
Phil Hughes's avatar
Phil Hughes committed
  &.is-collapsed {
    border-bottom: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
    svg {
      margin-left: auto;
      margin-right: auto;

    .multi-file-commit-panel-collapse-btn {
      margin-right: auto;
      margin-left: auto;
      border-left: 0;
    }
Phil Hughes's avatar
Phil Hughes committed
}
.multi-file-commit-panel-header-title {
  display: flex;
  flex: 1;
  padding: $gl-btn-padding;
  svg {
    margin-right: $gl-btn-padding;
Phil Hughes's avatar
Phil Hughes committed
}
Jacob Schatz's avatar
Jacob Schatz committed

.multi-file-commit-panel-collapse-btn {
  border-left: 1px solid $white-dark;
}

Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-list {
  flex: 1;
  overflow: auto;
  padding: $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-list-item {
  display: flex;
  align-items: center;
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-addition {
  fill: $green-500;
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-modified {
  fill: $orange-500;
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-list-collapsed {
  display: flex;
  flex-direction: column;
Phil Hughes's avatar
Phil Hughes committed
  > svg {
    margin-left: auto;
    margin-right: auto;
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-list-path {
  @include str-truncated(100%);
}
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-form {
  padding: $gl-padding;
Phil Hughes's avatar
Phil Hughes committed
  border-top: 1px solid $white-dark;
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-fieldset {
  display: flex;
  align-items: center;
  padding-bottom: 12px;
Phil Hughes's avatar
Phil Hughes committed
  .btn {
    flex: 1;
Phil Hughes's avatar
Phil Hughes committed
.multi-file-commit-message.form-control {
  height: 80px;
  resize: none;

.dirty-diff {
  // !important need to override monaco inline style
Phil Hughes's avatar
Phil Hughes committed
  width: 4px !important;
  left: 0 !important;
    background-color: $blue-500;
    background-color: $green-600;
Phil Hughes's avatar
Phil Hughes committed
    height: 0 !important;
    width: 0 !important;
    bottom: -2px;
    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;
      background-color: rgba($red-500, .5);
    }

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

.repo-new-btn {
  .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;
    }
  }
}

.ide-flash-container.flash-container {
  margin-top: $header-height;
  margin-bottom: 0;
}

.with-performance-bar {
  .ide-flash-container.flash-container {
    margin-top: $header-height + $performance-bar-height;
  }

  .ide-view {
    height: calc(100vh - #{$header-height + $performance-bar-height});
  }
}


.dragHandle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: $white-dark;

  &.dragright {
    right: 0;
  }

  &.dragleft {
    left: 0;
  }
}