Skip to content

Commit cdef439

Browse files
committed
align search items in the middle
1 parent 9f2e8d5 commit cdef439

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

layouts/index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,16 @@
5454
margin-top: 10px;
5555
margin-bottom: 10px;
5656
}
57-
5857
.search-result-image {
5958
height: auto;
59+
width: auto;
60+
@media (min-width: 992px) {
61+
position: absolute;
62+
}
63+
top: 0;
64+
left: 0;
65+
bottom: 0;
66+
right: 0;
6067
max-height: 175px;
6168
max-width: 100%;
6269
margin: auto;
@@ -172,8 +179,8 @@ <h2 class="pt-5 color-blue">Search</h2>
172179
<a href=${item.url} class="container">
173180
<div class="row search-result-row">
174181
<div class="col-12 col-lg-2">
175-
<div class="my-3">
176-
<img class="image-fluid search-result-image d-flex" src=${item.image} alt=${item.title} />
182+
<div class="my-3 text-center image-frame">
183+
<img class="image-fluid search-result-image d-inline p-2" src=${item.image} alt=${item.title} />
177184
</div>
178185
</div>
179186
<div class="col-12 col-lg-10">

0 commit comments

Comments
 (0)