JSFiddle - React, Tailwind, and code Playground
HTML
<div class="box-container box-container--flex-column">
<div class="box-wrap">
<div class="box">
<div class="box__image">
<a href="#"><img src="http://lorempixel.com/207/153/" alt=""></a>
</div>
<div class="box__description">
<div class="box__category">Testy</div>
<div class="box__title"><a href="#">Velký test přenosných SSD</a></div>
</div>
</div>
</div>
<!-- box -->
<div class="box-wrap box-wrap--big">
<div class="box box--image_left">
<div class="box__image">
<a href="#"><img src="http://lorempixel.com/232/236/" alt=""></a>
</div>
<div class="box__description">
<div class="box__category">Testy</div>
<div class="box__title box__title--bold"><a href="#">Nový iPhone je opět skvělý a dražší</a></div>
<div class="box__perex">Komplexní bezpečnostní balík, který pohání nejúspěšnější antivirový motor od Bitdefenderu.</div>
</div>
</div>
</div>
<!-- box -->
<div class="box-wrap">
<div class="box box--black">
<div class="box__image">
<div class="box__image__label">Plná verze</div>
<a href="#"><img src="http://lorempixel.com/207/153/" alt=""></a>
</div>
<div class="box__description">
<div class="box__category">Testy</div>
<div class="box__title box__title--small"><a href="#">TrustPort TP 2015</a></div>
<div class="box__perex">Komplexní bezpečnostní balík, který pohání nejúspěšnější antivirový motor od Bitdefenderu.</div>
</div>
</div>
</div>
</div>
CSS
.box-container {
margin: 0 -10px;
margin-bottom: 20px;
display: flex;
display: -webkit-flex;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: center;
-moz-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: stretch;
-moz-box-align: stretch;
-webkit-align-items: stretch;
-ms-flex-align: stretch;
align-items: stretch;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.box-container:before,
.box-container:after {
content: "";
display: table;
}
.box-container:after {
clear: both;
}
.lt-ie8 .box-container {
zoom: 1;
}
.box-wrap {
float: left;
padding: 0 10px;
width: 25%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
}
@media (max-width: 768px) {
.box-wrap {
width: 33.33333333%;
}
}
.box-wrap.box-wrap--big {
width: 50%;
}
@media (max-width: 768px) {
.box-wrap.box-wrap--big {
width: 33.33333333%;
}
}
.box-wrap.box-wrap--medium {
width: 33.33333333%;
}
.box {
padding: 16px;
height: 100%;
background: #ffffff;
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
-webkit-flex: 1;
flex: 1;
}
.box.box--image_left .box__category,
.box.box--image_right .box__category {
margin-top: 0;
}
.box.box--image_left .box__description,
.box.box--image_right .box__description {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing:...