Align first product flush to the search bar

This commit is contained in:
Maikel Linke
2020-08-28 12:02:44 +10:00
parent 1e3ff141f0
commit 66d5f8d5c1
3 changed files with 12 additions and 3 deletions

View File

@@ -28,6 +28,10 @@
}
}
.filter-header {
margin-top: 1.1em;
}
products {
display: block;
@@ -67,7 +71,13 @@
product {
@include csstrans;
border-top: 1px solid #e5e5e5;
// Avoid margin collapsing which breaks the flush alignment of the first
// image. https://stackoverflow.com/a/19719427/3377535
overflow: auto;
&:nth-child(n + 2) {
border-top: 1px solid #e5e5e5;
}
padding-bottom: 1px;
position: relative;
display: block;

View File

@@ -6,7 +6,6 @@
background-color: $grey-100;
height: 5em;
padding: 1em 0;
margin-bottom: 1em;
position: relative;
z-index: 5;

View File

@@ -24,7 +24,7 @@
%img.spinner{ src: image_path("spinning-circles.svg") }
.hide-for-medium-down.large-2.columns
%h5
%h5.filter-header
= t(:products_filter_by)
%span{ng: {show: 'filtersCount()' }}
= "({{ filtersCount() }} #{t(:products_filter_selected)})"