Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzekiel Kigbo <ekigbo@gitlab.com>2019-05-02 15:49:11 +0300
committerEzekiel Kigbo <ekigbo@gitlab.com>2019-05-06 18:42:44 +0300
commitcd27bead2e16586f9dcb1c9a467afce18f39fcb0 (patch)
tree613e689146f2b984f4ec86a5442887fd8ba74cd2 /app/views/explore
parent6accad69e214f44ac84f3ceac4159c712aa9af2e (diff)
Cleanup css classes and styles
Use class and id syntax for button attributes Use feature flag variable and shorthand if expression Use shorthand if expression Use a classname instead of tag Simplify common rules Use size variable Move flex grow and shrink to utility classes Extract redused classes Remove unecessary styles
Diffstat (limited to 'app/views/explore')
-rw-r--r--app/views/explore/projects/_filter.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/explore/projects/_filter.html.haml b/app/views/explore/projects/_filter.html.haml
index ebc3f6b85ce..d00a3d266d8 100644
--- a/app/views/explore/projects/_filter.html.haml
+++ b/app/views/explore/projects/_filter.html.haml
@@ -1,7 +1,8 @@
- has_label = local_assigns.fetch(:has_label, false)
+- feature_project_list_filter_bar = Feature.enabled?(:project_list_filter_bar)
- if current_user
- .dropdown.js-project-filter-dropdown-wrap
+ .dropdown.js-project-filter-dropdown-wrap{ class: ('d-flex flex-grow-1 flex-shrink-1' if feature_project_list_filter_bar) }
%button.dropdown-menu-toggle{ href: '#', "data-toggle" => "dropdown", 'data-display' => 'static' }
- unless has_label
= icon('globe', class: 'mt-1')