.project-refs-form, .project-refs-target-form { display: inline-block; } .fade-enter, .fade-leave-to { opacity: 0; } .commit-message { @include str-truncated(250px); } .editable-mode { display: inline-block; } .ide-view { display: flex; height: calc(100vh - #{$header-height}); color: $almost-black; border-top: 1px solid $white-dark; border-bottom: 1px solid $white-dark; &.is-collapsed { .ide-file-list { max-width: 250px; } } } .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; } } } a { color: $gl-text-color; } th { position: sticky; top: 0; } } .multi-file-table-name, .multi-file-table-col-commit-message { overflow: visible; max-width: 0; padding: 6px 12px; } .multi-file-loading-container { margin-top: 10px; padding: 10px; .animation-container { background: $gray-light; div { background: $gray-light; } } } table.table tr td.multi-file-table-name { width: 350px; padding: 6px 12px; svg { vertical-align: middle; margin-right: 2px; } } .multi-file-table-col-commit-message { white-space: nowrap; width: 50%; } .multi-file-edit-pane { display: flex; flex-direction: column; flex: 1; border-left: 1px solid $white-dark; overflow: hidden; } .multi-file-tabs { display: flex; overflow-x: auto; background-color: $white-normal; box-shadow: inset 0 -1px $white-dark; > li { position: relative; } } .multi-file-tab { @include str-truncated(150px); 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; } &.active { background-color: $white-light; border-bottom-color: $white-light; } } .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; } &.modified { color: $indigo-700; } } .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%; } .multi-file-editor-btn-group { padding: $gl-bar-padding $gl-padding; 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; } } // Not great, but this is to deal with our current output .multi-file-preview-holder { height: 100%; overflow: scroll; .file-content.code { display: flex; i { margin-left: -10px; } } .line-numbers { min-width: 50px; } .file-content, .line-numbers, .blob-content, .code { min-height: 100%; } } .file-content.blob-no-preview { a { margin-left: auto; margin-right: auto; } } .multi-file-commit-panel { display: flex; position: relative; flex-direction: column; height: 100%; width: 290px; padding: 0; 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; } &.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; } } .multi-file-commit-panel-section { display: flex; flex-direction: column; flex: 1; } .multi-file-commit-panel-header { display: flex; align-items: center; margin-bottom: 12px; border-bottom: 1px solid $white-dark; padding: $gl-btn-padding 0; &.is-collapsed { border-bottom: 1px solid $white-dark; svg { margin-left: auto; margin-right: auto; } .multi-file-commit-panel-collapse-btn { margin-right: auto; margin-left: auto; border-left: 0; } } } .multi-file-commit-panel-header-title { display: flex; flex: 1; padding: $gl-btn-padding; svg { margin-right: $gl-btn-padding; } } .multi-file-commit-panel-collapse-btn { border-left: 1px solid $white-dark; } .multi-file-commit-list { flex: 1; overflow: auto; padding: $gl-padding; } .multi-file-commit-list-item { display: flex; align-items: center; } .multi-file-addition { fill: $green-500; } .multi-file-modified { fill: $orange-500; } .multi-file-commit-list-collapsed { display: flex; flex-direction: column; > svg { margin-left: auto; margin-right: auto; } } .multi-file-commit-list-path { @include str-truncated(100%); } .multi-file-commit-form { padding: $gl-padding; border-top: 1px solid $white-dark; } .multi-file-commit-fieldset { display: flex; align-items: center; padding-bottom: 12px; .btn { flex: 1; } } .multi-file-commit-message.form-control { height: 80px; resize: none; } .dirty-diff { // !important need to override monaco inline style width: 4px !important; left: 0 !important; &-modified { background-color: $blue-500; } &-added { background-color: $green-600; } &-removed { 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; } }