diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-20 14:02:26 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-20 14:02:26 +0100 |
commit | 8d9e99f757c4e1d9456cc90b87a7b59f43804d33 (patch) | |
tree | 852738e631ae31a828f766ea160d5f35d708344d | |
parent | 5ac76edb9879a56d064a976e4aba938669c8706b (diff) | |
download | gitlab-ce-8d9e99f757c4e1d9456cc90b87a7b59f43804d33.tar.gz |
spacing & color updates
-rw-r--r-- | app/assets/javascripts/ide/components/repo_tab.vue | 33 | ||||
-rw-r--r-- | app/assets/stylesheets/framework/gitlab_theme.scss | 4 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/repo.scss | 41 |
3 files changed, 37 insertions, 41 deletions
diff --git a/app/assets/javascripts/ide/components/repo_tab.vue b/app/assets/javascripts/ide/components/repo_tab.vue index 35a362b01e0..99f67862636 100644 --- a/app/assets/javascripts/ide/components/repo_tab.vue +++ b/app/assets/javascripts/ide/components/repo_tab.vue @@ -66,10 +66,26 @@ export default { <template> <li + :class="{ + active: tab.active + }" @click="clickFile(tab)" @mouseover="mouseOverTab" @mouseout="mouseOutTab" > + <div + class="multi-file-tab" + :title="tab.url" + > + <file-icon + :file-name="tab.name" + :size="16" + /> + {{ tab.name }} + <file-status-icon + :file="tab" + /> + </div> <button type="button" class="multi-file-tab-close" @@ -86,22 +102,5 @@ export default { :file="tab" /> </button> - - <div - class="multi-file-tab" - :class="{ - active: tab.active - }" - :title="tab.url" - > - <file-icon - :file-name="tab.name" - :size="16" - /> - {{ tab.name }} - <file-status-icon - :file="tab" - /> - </div> </li> </template> diff --git a/app/assets/stylesheets/framework/gitlab_theme.scss b/app/assets/stylesheets/framework/gitlab_theme.scss index 9db89887faf..6a03c302d9c 100644 --- a/app/assets/stylesheets/framework/gitlab_theme.scss +++ b/app/assets/stylesheets/framework/gitlab_theme.scss @@ -196,10 +196,6 @@ box-shadow: inset 3px 0 $color-700; } } - - .ide-context-header a { - color: $color-700; - } } body { diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/pages/repo.scss index 42ef3e4e4ae..2b1ff3b0b34 100644 --- a/app/assets/stylesheets/pages/repo.scss +++ b/app/assets/stylesheets/pages/repo.scss @@ -141,7 +141,17 @@ } li { - position: relative; + 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; + } } .dropdown { @@ -164,35 +174,23 @@ } .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; + @include str-truncated(141px); 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%; width: 16px; height: 16px; padding: 0; + margin-left: $grid-size; background: none; border: 0; border-radius: $border-radius-default; color: $theme-gray-900; - transform: translateY(-50%); svg { position: relative; @@ -301,6 +299,7 @@ .multi-file-editor-holder { height: 100%; + min-height: 0; } .preview-container { @@ -774,10 +773,9 @@ display: flex; align-items: center; position: relative; - height: 55px; + height: 60px; width: 100%; - margin: 2.5px 0; - padding: $gl-padding-8 $gl-padding; + padding: 0 $gl-padding; color: $gl-text-color-secondary; background-color: transparent; border: 0; @@ -789,9 +787,12 @@ margin: 0 auto; } - &:hover, + &:hover { + background-color: $theme-gray-100; + } + &:focus { - background-color: $white-light; + background-color: $theme-gray-200; } &.active { |