Выполнил задание на 100 процентов, но меня терзают сомнения что код написан “чисто”, так как хочется иметь хороший код в своих будущих проектах, прошу дать оценку:
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;
color: #7f8c8d;
background: #ecf0f1;
}
.post {
position: relative;
}
.post-date, .post-type, .post-stats .icon {
position: absolute;
}
.post-title {
font-size: 20px;
line-height: 1.2;
}
.post-date {
top: 0;
background-color: white;
border-bottom: 5px solid #bdc3c7;
font-weight: bolder;
padding: 20px 0px;
font-size: 15px;
height: 15px;
width: 55px;
text-align: center;
line-height: 15px;
}
.post-type {
top: 70px;
width: 35px;
height: 35px;
padding: 10px 10px;
background-color: #7f8c8d;
border-bottom: 5px solid #bdc3c7;
background-image: url("/assets/course14/quotes.png");
background-repeat: no-repeat;
background-position: 50% 50%;
}
.post-author {
margin-top: 5px;
margin-bottom: 5px;
}
.post-text, .post-stats, .post-author, .post-title {
position: relative;
left: 75px;
}
.post-author a, .post-stats a, .post-title {
text-decoration: none;
color: #2980b9;
}
.post-stats {
display: inline-block;
margin-left: 20px;
margin-right: 10px;
}
.post-stats .icon {
width: 15px;
height: 15px;
left: -20px;
}
.post-text {
background-color: #fff;
padding: 10px 10px 10px 15px;
width: 170px;
border-bottom: 5px solid #bdc3c7;
}
.icon-tags {
background: url("/assets/course14/post-challenge.png") no-repeat 0 0;
}
.icon-comments {
background: url("/assets/course14/post-challenge.png") no-repeat -20px 0px;
}