Commit 99c94094 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '337036-cleanup-code-search-cards' into 'master'

Global Search - Add spacing/border to code results

See merge request gitlab-org/gitlab!67548
parents 67fe9266 a9e194a0
...@@ -15,6 +15,16 @@ ...@@ -15,6 +15,16 @@
border-top: 0; border-top: 0;
border-radius: $border-radius-default; border-radius: $border-radius-default;
&.file-holder-top-border {
border-top: 1px solid $border-color;
.file-title {
// Prevents the top border getting clipped by the background
border-top-left-radius: $border-radius-default;
border-top-right-radius: $border-radius-default;
}
}
&.file-holder-no-border { &.file-holder-no-border {
border: 0; border: 0;
} }
......
...@@ -13,10 +13,6 @@ $search-sidebar-max-width: 300px; ...@@ -13,10 +13,6 @@ $search-sidebar-max-width: 300px;
border-bottom: 0; border-bottom: 0;
} }
} }
.blob-result {
margin: 5px 0;
}
} }
.search-sidebar { .search-sidebar {
......
.blob-result{ data: { qa_selector: 'result_item_content' } } .blob-result.gl-mt-3.gl-mb-5{ data: { qa_selector: 'result_item_content' } }
.file-holder .file-holder.file-holder-top-border
.js-file-title.file-title{ data: { qa_selector: 'file_title_content' } } .js-file-title.file-title{ data: { qa_selector: 'file_title_content' } }
= link_to blob_link, data: {track_event: 'click_text', track_label: 'blob_path', track_property: 'search_result'} do = link_to blob_link, data: {track_event: 'click_text', track_label: 'blob_path', track_property: 'search_result'} do
= sprite_icon('document') = sprite_icon('document')
......
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