Skip to content

Instantly share code, notes, and snippets.

@lukyth
Created July 12, 2015 18:55
Show Gist options
  • Save lukyth/865aba5a912e969c0425 to your computer and use it in GitHub Desktop.
Save lukyth/865aba5a912e969c0425 to your computer and use it in GitHub Desktop.
product-box mixin
.product-box {
float: left;
margin: 20px;
width: 400px;
background-color: #ddd;
box-shadow: 0 3px #cbcbcb;
border-radius: 3px;
padding: 10px;
display: flex;
.product-box-picture {
flex: none;
width: 50%;
}
.product-box-detail {
margin-left: 10px;
}
.product-box-name {
margin-top: 10px;
}
.product-box-btn {
color: white;
background-color: #3db1a7;
width: 100%;
border: none;
border-radius: 3px;
padding: 5px 10px;
}
&:after {
clear: left;
}
img {
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment