JSFiddle - React, Tailwind, and code Playground
HTML
<div class="row-block">
<div class="article">
<div class="article-header">
<h2>
<a href="#">
Красавица и чудовище
<span>(Beauty and the Beast)</span>
</a>
</h2>
</div>
<!-- CONTENT -->
<div class="article-content articleColumns clearfix">
<!-- IMG -->
<div class="articleColumns-thumbnail thumbnail">
<img
class="thumbnail-img"
src="https://clck.ru/Aosx9"
alt="Красавица и чудовище (Beauty and the Beast)">
<span class="thumbnail-icon thumbnailIcon">
<svg
width="6"
height="10"
viewBox="0 0 6 10" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0v10l6-5z" fill="#333" fill-rule="evenodd"/>
</svg>
</span>
</div>
<!-- CONTENT BODY -->
<div class="articleColumns-content">
<div>
<p>В заколдованном замке, скрытом в темном лесу, живет ужасное Чудовище. Растопить лед в его сердце
и вернуть ему человеческий облик, сняв заклятие, может только прекрасная девушка, которая
полюбит его таким, какой он есть.</p>
</div>
<div class="article-footer">
<div class="tags">
<b class="tags-title">Жанр:</b>
<ul class="tags-list tagsList clearfix">
<li class="tagsList-item"><a class="tagsList-link" href="#">мультфильм</a></li>
<li class="tagsList-item"><a class="tagsList-link" href="#">музыка</a></li>
<li class="tagsList-item"><a class="tagsList-link" href="#">фэнтези</a></li>
...
SCSS
//
* {
//delete this
box-sizing:border-box;
}
html, body {
font-size: 16px;
}
a {
color: #669;
&:hover {
color: #d00;
}
}
.clearfix {
&:after {
content: "";
display: block;
clear: left;
}
}
.row-block {
padding: 10px 15px 14px;
}
.article {
min-width: 300px;
max-width: 600px;
&-header {
line-height: 20px;
h2 {
margin: 0;
padding: 0;
}
a {
color: #22c;
}
padding-bottom: 17px;
}
&-content {
font-size: 13px;
color: #333;
line-height: 20px;
p {
margin: 0;
}
}
&-footer {
padding-top: 7px;
}
}
.articleColumns {
&-thumbnail {
float: left;
width: 60px;
padding-right: 13px;
}
&-content {
overflow: hidden;
}
}
.thumbnail {
position: relative;
&-img {
width: 100%;
height: auto;
}
&-icon {
position: absolute;
left:5px;
bottom: 10px;
}
}
.thumbnailIcon {
overflow: hidden;
text-align: center;
line-height: 15px;
background: #fff;
border-radius: 100%;
width: 15px;
height: 15px;
}
.tags {
&-title {
}
&-list {
margin: 0;
padding: 0;
display: inline-block;
vertical-align: middle;
}
}
.tagsList {
list-style: none;
&-item {
display: block;
float: left;
&:before{
content:","
}
&:first-child:before{
content:"";
}
}
}
.buttonsWrapper{
padding-top: 7px;
}
.button {
font-size: 16px;
border-radius: 3px;
color: #000;
border: 1px solid;
height: 36px;
padding:0 20px;
&-yellow {
background: #ffdb4d;
border-color: rgba(159, 127, 0, .8);
&:hover {
background: #ffdb4d;
border-color: rgba(191, 153, 0, .8);
}
}
&--buy {
}
}