From b63686ce6ae96a6fca915d82b918f38b23c4a399 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 12 Jan 2018 01:32:41 -0600 Subject: Generalize protected branch/tag dropdowns Remove duplicate ee code This was generalized for usage in the new variable table design, see https://gitlab.com/gitlab-org/gitlab-ce/issues/39118#note_53615249 Conflicts: app/assets/stylesheets/pages/projects.scss ee/app/assets/javascripts/protected_branches/protected_branch_create.js ee/app/assets/javascripts/protected_tags/protected_tag_create.js ee/app/views/projects/protected_branches/ee/_dropdown.html.haml --- app/assets/stylesheets/framework/dropdowns.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/assets/stylesheets/framework') diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss index d1b3754d4ef..1d2303a3a2b 100644 --- a/app/assets/stylesheets/framework/dropdowns.scss +++ b/app/assets/stylesheets/framework/dropdowns.scss @@ -666,6 +666,16 @@ } } +.dropdown-create-new-item-button { + @include dropdown-link; + + width: 100%; + background-color: transparent; + border: 0; + text-align: left; + text-overflow: ellipsis; +} + .dropdown-loading { position: absolute; top: 0; -- cgit v1.2.1