Skip to content

Instantly share code, notes, and snippets.

@geckotang
Last active December 30, 2015 16:39
Show Gist options
  • Save geckotang/7856511 to your computer and use it in GitHub Desktop.
Save geckotang/7856511 to your computer and use it in GitHub Desktop.
.goods
{
margin: 20px 0;
margin-right: -30px;
padding: 0;
list-style: none;
font-size: 0;
}
.goods__item
{
box-sizing: border-box;
display: inline-block;
overflow: hidden;
vertical-align: top;
text-align: left;
width: 243px;
padding: 10px 10px 0;
margin-right: 10px;
margin-bottom:10px;
text-align: center;
font-size: 16px;
background:#fff;
border-radius: 2px;
}
.goods__title
{
font-size: 16px;
overflow: hidden;
text-overflow: ellipsis;
margin: 0 0 10px;
padding: 0;
white-space: nowrap;
}
.goods__image
{
max-width: 100%;
height: auto;
margin-bottom:10px;
}
.goods__author
{
font-size: 16px;
font-weight: bold;
margin-bottom:10px;
}
.goods__price
{
position: relative;
display: block;
}
.goods__link
{
display: block;
font-weight: bold;
font-size: 16px;
text-decoration: none;
background: #87cefa;
color: #fff;
margin: 0 -10px;
padding: 12px 10px;
transition: background 0.2s ease-in;
}
.goods__link:hover
{
background: #4169e1;
}
.goods__item_new_yes .goods__link
{
background: #ffb6c1;
}
.goods__item_new_yes .goods__link:hover
{
background: tomato;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment