Commit fa716921 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Merge branch 'new-sidebar-context-header-hover-color' into 'master'

Fixed sidebar context header hover colors

Closes #35999

See merge request !13323
parents 81fd5764 c971cbf0
...@@ -8,8 +8,8 @@ $active-color: $indigo-700; ...@@ -8,8 +8,8 @@ $active-color: $indigo-700;
$active-hover-background: $active-background; $active-hover-background: $active-background;
$active-hover-color: $gl-text-color; $active-hover-color: $gl-text-color;
$inactive-badge-background: rgba(0, 0, 0, .08); $inactive-badge-background: rgba(0, 0, 0, .08);
$hover-background: $indigo-700; $hover-background: $white-light;
$hover-color: $white-light; $hover-color: $gl-text-color;
$inactive-color: $gl-text-color-secondary; $inactive-color: $gl-text-color-secondary;
$new-sidebar-width: 220px; $new-sidebar-width: 220px;
...@@ -31,6 +31,7 @@ $new-sidebar-width: 220px; ...@@ -31,6 +31,7 @@ $new-sidebar-width: 220px;
.context-header { .context-header {
position: relative; position: relative;
margin-right: 2px;
a { a {
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
...@@ -43,25 +44,19 @@ $new-sidebar-width: 220px; ...@@ -43,25 +44,19 @@ $new-sidebar-width: 220px;
@media (max-width: $screen-xs-max) { @media (max-width: $screen-xs-max) {
padding-right: 30px; padding-right: 30px;
} }
}
&:hover { &:hover,
a:hover {
background-color: $hover-background; background-color: $hover-background;
color: $hover-color; color: $hover-color;
border-color: $hover-background;
.avatar-container {
border-color: transparent;
}
.settings-avatar { .settings-avatar {
background-color: $indigo-500;
i { i {
color: $hover-color; color: $hover-color;
} }
} }
} }
}
.avatar-container { .avatar-container {
flex: 0 0 40px; flex: 0 0 40px;
...@@ -74,13 +69,6 @@ $new-sidebar-width: 220px; ...@@ -74,13 +69,6 @@ $new-sidebar-width: 220px;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
&:hover {
.close-nav-button {
color: $white-light;
}
}
.close-nav-button { .close-nav-button {
display: none; display: none;
position: absolute; position: absolute;
...@@ -90,6 +78,7 @@ $new-sidebar-width: 220px; ...@@ -90,6 +78,7 @@ $new-sidebar-width: 220px;
background-color: transparent; background-color: transparent;
border: 0; border: 0;
padding: 0 10px; padding: 0 10px;
color: $gl-text-color-secondary;
@media (max-width: $screen-xs-max) { @media (max-width: $screen-xs-max) {
display: block; display: block;
...@@ -233,7 +222,7 @@ $new-sidebar-width: 220px; ...@@ -233,7 +222,7 @@ $new-sidebar-width: 220px;
&:not(.active) { &:not(.active) {
> a { > a {
margin-left: 1px; margin-left: 1px;
margin-right: 3px; margin-right: 2px;
} }
.sidebar-sub-level-items { .sidebar-sub-level-items {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment