Skip to content

Commit

Permalink
Merge pull request #2812 from projectblacklight/search-result-flex
Browse files Browse the repository at this point in the history
Use flexbox for search result document styling; part of #2781
  • Loading branch information
jcoyne committed Sep 27, 2022
2 parents e99e24f + 73933b7 commit 97370c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/assets/stylesheets/blacklight/_search_results.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// the search results on the index view of the catalog
.documents-list {
.document {
@extend .clearfix;
display: flex;
border-bottom: 1px dotted $table-border-color;
margin-top: $spacer;
padding-top: $spacer;
Expand All @@ -10,6 +10,10 @@
@extend h5;
}

.document-main-section {
flex-grow: 1;
}

// bookmarks checkbox on index, give it some
// lower margin when it collapses
.index-document-functions {
Expand All @@ -21,7 +25,7 @@
}

.document-thumbnail {
float: right;
flex-grow: 0;
margin-bottom: ($spacer * 3);
padding-left: ($spacer * 3);
}
Expand Down

0 comments on commit 97370c0

Please sign in to comment.