[18/18] Испытание: анонс поста 100% (код на суд комьюнити)

Результат 100%, 80 строк с пробелами, все условия соблюдены, но не покидает ощущение, что код может быть и лучше…

Ineska, спасибо! Строчек стало всего на 1 меньше, но выглядит гораздо аккуратнее.

html,
body {
margin: 0;
padding: 0;
}
body {
width: 280px;
min-height: 250px;
padding-top: 50px;
padding-left: 10px;
padding-right: 10px;
font-size: 12px;
font-family: “Arial”, sans-serif;
line-height: 1.2;
color: #7f8c8d;
background: #ecf0f1;
}
.post {
position: relative;
padding-left: 75px;
}
.post-title {
font-size: 20px;
color: #2980b9;
}
.post-date, .post-type {
position: absolute;
width: 55px;
height: 55px;
border-bottom: 5px solid #bdc3c7;
}
.post-date {
top: 0;
left: 0;
line-height: 55px;
background: #ffffff;
font-weight: bold;
font-size: 15px;
text-align: center;
}
.post-type {
top: 70px;
left: 0;
background: #7f8c8d url("/assets/course14/quotes.png") no-repeat 50% 50%;
}
.post-author {
margin-top: 5px;
}
.post-author a {
text-decoration: none;
color: #2980b9;
}
.post-stats {
position: relative;
display: inline-block;
padding-left: 20px;
margin: 5px 10px 0 0;
}
.post-stats a {
text-decoration: none;
color: #2980b9;
}
.post-stats .icon {
position: absolute;
top: 0;
left: 0;
width: 15px;
height: 15px;
background: url("/assets/course14/post-challenge.png") no-repeat 0 0;
}
.post-stats .icon-comments{
background-position: -20px 0;
}
.post-text {
padding: 10px 15px;
margin-right: 10px;
background: #ffffff;
border-bottom: 5px solid #bdc3c7;
}

А в остальном лучше уже почти некуда. Осталось только сгруппировать общие свойства .post-date и .post-type.

Спасибо!