Долго мучался и переписывал код что б в итоге получилось максимально коротко и логично. Можно ли сделать еще короче?
.post-stats .icon {
width: 15px;
height: 15px;
}
.post{
position: relative;
padding-left: 75px;
}
.post-title{
color: #2980b9;
font-size: 20px;
margin-bottom: 5px;
}
.post-date{
position: absolute;
width: 55px;
height: 55px;
line-height: 55px;
background-color: #ffffff;
top: 0;
left: 0;
border-bottom: 5px solid #bdc3c7;
color: #7f8c8d;
text-align: center;
font-size:15px;
font-weight: bold;
}
.post-type{
position: absolute;
width: 55px;
height: 55px;
top: 70px;
left: 0;
border-bottom: 5px solid #bdc3c7;
background-color: #7f8c8d;
background-image: url("/assets/course14/quotes.png");
background-repeat: no-repeat;
background-position: 50% 50%;
}
.post a{
text-decoration: none;
color: #2980b9;
}
.post-author{
margin-bottom: 5px;
}
.post-stats{
display: inline-block;
position: relative;
padding-left: 20px;
margin-right: 10px;
}
.icon{
position: absolute;
top:0;
left:0;
background-image: url("/assets/course14/post-challenge.png");
background-repeat: no-repeat;
background-position: 0 0;
}
.icon-comments{
background-position: -20px 0;
}
.post-text{
width: 165px;
padding: 10px 15px;
background-color: #ffffff;
border-bottom: 5px solid #bdc3c7;
}