diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-05-02 15:49:11 +0300 |
---|---|---|
committer | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-05-06 18:42:44 +0300 |
commit | cd27bead2e16586f9dcb1c9a467afce18f39fcb0 (patch) | |
tree | 613e689146f2b984f4ec86a5442887fd8ba74cd2 /app/views/explore | |
parent | 6accad69e214f44ac84f3ceac4159c712aa9af2e (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.haml | 3 |
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') |