Responsive fixes

This commit is contained in:
Ray
2017-09-17 14:41:03 +01:00
parent ffc5d9f481
commit cbe7410f8d
12 changed files with 10954 additions and 135 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react'
import './styles.css'
const Product = ({product, compare}) =>
<div key={product.id} className="col-3">
<div key={product.id} className="col-sm-6 col-md-3">
<div className={"product " + (product.compare ? "compare" : "")} >
<img src={product.image} alt={product.name} />
<div className="image_overlay"></div>
@@ -13,7 +13,7 @@ const Product = ({product, compare}) =>
<div className="stats-container">
<span className="product_price">{product.price}</span>
<span className="product_name">{product.name}</span>
<p>Men's running shirt</p>
<p>{product.description}</p>
</div>
</div>
</div>

View File

@@ -9,7 +9,7 @@ $product-main-color: $green;
border-radius: 5px;
overflow: hidden;
transition: all 500ms ease-out;
margin-bottom: 30px;
&:hover {
box-shadow: 0px 13px 21px -5px rgba(0, 0, 0, 0.2);
.image_overlay {
@@ -21,7 +21,7 @@ $product-main-color: $green;
width: 152px;
font-size: 15px;
margin-left: -75px;
top: 150px;
top: 35%;
transition: all 200ms ease-out;
}
}