<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Испытание: анонс поста</title>
</head>
<body>
<div class="post">
<div class="post-title">Интенсив: программа</div>
<div class="post-date">13.09</div>
<div class="post-type"></div>
<div class="post-author">
Автор: <a href="#">HTML Academy</a>
</div>
<div class="post-stats">
<div class="icon icon-tags"></div>
<a href="#">интенсив</a>,
<a href="#">программа</a>
</div>
<div class="post-stats">
<div class="icon icon-comments"></div>
<a href="#">5</a>
</div>
<div class="post-text">Работа над интенсивом идёт полным ходом. Мы нашли крутых людей в команду и решили еще кучу задач. Но сегодня я подробнее расскажу о работе над программой интенсива.</div>
</div>
</body>
</html>
css:
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-stats .icon {
width: 15px;
height: 15px;
}
/*
Все размеры, отступы, координаты, размеры шрифтов (не заданные в body) кратны 5 или 10.
Адреса картинок:
/assets/course14/quotes.png
/assets/course14/post-challenge.png
Картинка «кавычки» выровнена по центру
*/
.post {
position:relative;
padding-left: 75px;
}
.post-date {
font-weight: bolder;
position:absolute;
top:0px;
left:0px;
width:55px;
height:55px;
line-height:55px;
background-color: #ffffff;
border-bottom: 5px solid #bdc3c7;
text-align: center;
vertical-align: middle;
font-size:15px;
}
.post-type {
position:absolute;
top:70px;
left:0px;
width:55px;
height:55px;
border-bottom:5px solid #bdc3c7;
background:#7f8c8d url("/assets/course14/quotes.png") no-repeat 50% 50%;
}
.post-title {
color: #2980b9;
font-size:20px;
font-weight: normal;
}
.post-author {
margin-top:5px;
}
.post-text {
width:165px;
border-bottom: 5px solid #bdc3c7;
background: #ffffff;
margin-top:5px;
vertical-align: middle;
text-align: left;
padding:10px 15px;
}
a {
text-decoration:none;
color: #2980b9;
}
.post-stats {
position:relative;
display:inline-block;
padding-left:20px;
margin-right:10px;
top:5px;
}
.post-stats .icon {
display:inline;
position:absolute;
left:0px;
top:0px;
background: url("/assets/course14/post-challenge.png") no-repeat;
}
.post-stats .icon-tags {
background-position: 0px 0px;
}
.post-stats .icon-comments {
background-position:-20px 0px; }