Skip to content

Instantly share code, notes, and snippets.

@SilencerWeb
Created July 8, 2019 03:06
Show Gist options
  • Save SilencerWeb/8407c5dc602fdf5b30c31f6c2e87acf0 to your computer and use it in GitHub Desktop.
Save SilencerWeb/8407c5dc602fdf5b30c31f6c2e87acf0 to your computer and use it in GitHub Desktop.
.products-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: -80px;
@include sm-down {
margin-bottom: -40px;
}
@include xs-down {
width: calc(100% - 40px);
margin-right: auto;
margin-left: auto;
}
&_grid_double {
.products-list__grid-sizer {
width: calc(50% - 40px);
@include md-down {
width: 100%;
}
@include sm-down {
width: calc(50% - 20px);
}
@include xs-down {
width: 100%;
}
}
.products-list__product-card {
width: calc(50% - 40px);
@include md-down {
width: 100%;
}
@include sm-down {
width: calc(50% - 20px);
}
@include xs-down {
width: 100%;
}
}
}
&__grid-sizer {
width: calc(20% - 64px);
@include xxl-down {
width: calc(25% - 60px);
}
@include lg-down {
width: calc(33.333% - 53px);
}
@include md-down {
width: calc(50% - 40px);
}
@include sm-down {
width: calc(50% - 20px);
}
@include xs-down {
width: 100%;
}
}
&__product-card {
width: calc(20% - 64px);
margin-bottom: 80px;
@include xxl-down {
width: calc(25% - 60px);
}
@include lg-down {
width: calc(33.333% - 53px);
}
@include md-down {
width: calc(50% - 40px);
}
@include sm-down {
width: calc(50% - 20px);
margin-bottom: 40px;
}
@include xs-down {
width: 100%;
margin-right: auto;
margin-left: auto;
}
.product-card__button {
color: currentColor;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment