Commit 045489f6 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch 'ps-remove-dropdown-menu-nav' into 'master'

Remove `.dropdown-menu-nav` from SCSS

See merge request gitlab-org/gitlab!42896
parents 38185f69 75d7b122
...@@ -112,8 +112,7 @@ a { ...@@ -112,8 +112,7 @@ a {
} }
.dropdown-menu a, .dropdown-menu a,
.dropdown-menu button, .dropdown-menu button {
.dropdown-menu-nav a {
transition: none; transition: none;
} }
......
...@@ -33,8 +33,7 @@ ...@@ -33,8 +33,7 @@
} }
.show.dropdown { .show.dropdown {
.dropdown-menu, .dropdown-menu {
.dropdown-menu-nav {
@include set-visible; @include set-visible;
min-height: $dropdown-min-height; min-height: $dropdown-min-height;
max-height: $dropdown-max-height; max-height: $dropdown-max-height;
...@@ -258,8 +257,7 @@ ...@@ -258,8 +257,7 @@
} }
} }
.dropdown-menu, .dropdown-menu {
.dropdown-menu-nav {
display: none; display: none;
position: absolute; position: absolute;
width: auto; width: auto;
...@@ -393,49 +391,56 @@ ...@@ -393,49 +391,56 @@
pointer-events: none; pointer-events: none;
} }
.dropdown-menu li { .dropdown-menu {
cursor: pointer; display: none;
opacity: 1;
visibility: visible;
transform: translateY(0);
&.droplab-item-active button { li {
@include dropdown-item-hover; cursor: pointer;
}
> a, &.droplab-item-active button {
> button { @include dropdown-item-hover;
display: flex; }
margin: 0;
text-overflow: inherit;
text-align: left;
&.btn .fa:not(:last-child) { > a,
margin-left: 5px; > button {
display: flex;
margin: 0;
text-overflow: inherit;
text-align: left;
&.btn .fa:not(:last-child) {
margin-left: 5px;
}
} }
}
> button.dropdown-epic-button { > button.dropdown-epic-button {
flex-direction: column; flex-direction: column;
.reference { .reference {
color: $gray-300; color: $gray-300;
margin-top: $gl-padding-4; margin-top: $gl-padding-4;
}
} }
}
&.droplab-item-selected i { &.droplab-item-selected i {
visibility: visible; visibility: visible;
} }
.icon { .icon {
visibility: hidden; visibility: hidden;
} }
.description { .description {
display: inline-block; display: inline-block;
white-space: normal; white-space: normal;
margin-left: 5px; margin-left: 5px;
p { p {
margin-bottom: 0; margin-bottom: 0;
}
} }
} }
} }
...@@ -447,21 +452,12 @@ ...@@ -447,21 +452,12 @@
} }
} }
.droplab-dropdown .dropdown-menu,
.droplab-dropdown .dropdown-menu-nav {
display: none;
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.comment-type-dropdown.show .dropdown-menu { .comment-type-dropdown.show .dropdown-menu {
display: block; display: block;
} }
.filtered-search-box-input-container { .filtered-search-box-input-container {
.dropdown-menu, .dropdown-menu {
.dropdown-menu-nav {
max-width: 280px; max-width: 280px;
} }
} }
...@@ -850,8 +846,7 @@ ...@@ -850,8 +846,7 @@
} }
header.navbar-gitlab .dropdown { header.navbar-gitlab .dropdown {
.dropdown-menu, .dropdown-menu {
.dropdown-menu-nav {
width: 100%; width: 100%;
min-width: 100%; min-width: 100%;
} }
......
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