<div class="container">
<div class="background">
<div class="column sidebar">
<header class="widget header_widget">
<p>Widget</p>
<p>01</p>
</header>
</div>
<div class="two_column">
<p>Interviewing</p>
<div class="column first">
<header class="widget header_widget">
<p>Widget</p>
<p>01</p>
</header>
</div>
<div class="column second">
<header class="widget header_widget">
<p>Widget</p>
<p>01</p>
</header>
</div>
</div>
<div class="three_column">
<div class="column third">
<header class="widget header_widget">
<p>Widget</p>
<p>01</p>
</header>
</div>
<div class="column fourth">
<header class="widget header_widget">
<p>Widget</p>
<p>01</p>
</header>
</div>
<div class="column fifth">
<header class="widget header_widget">
<p>Widget</p>
<p>01</p>
</header>
</div>
</div>
</div>
</div>
body {
font-family: 'Roboto', sans-serif;
background-color: #F5F8FC;
}
.background {
display: flex;
padding-left: 10px;
padding-right: 10px;
width: 100%;
}
.container {
display: flex;
margin-left: -10px;
margin-right: 0;
}
.container .column {
flex-grow: 1;
padding-left: 10px;
padding-right: 10px;
}
.container .two_column {
display: flex;
flex-wrap: wrap;
flex-grow: 2;
}
.two_column p:first-child {
width: 100%;
}
.two_column .column {
width: 50%;
}
.container .three_column {
display: flex;
flex-grow: 3;
}
.container .sidebar {
background-color: #fff;
padding-left: 20px;
padding-right: 20px;
margin-right: 10px;
min-height: 100vh;
}
.sidebar .widget {
box-shadow: 0 3px 0 #DBE8F7,
0 -3px 0 #55E4C1;
}
.widget {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #fff;
margin-top: 20px;
border: 1px solid #DBE8F7;
border-radius: 5px;
padding-left: 20px;
padding-right: 16px;
height: 54px;
}
.header_widget p:first-child {
flex-grow: 3;
font-size: 1.5rem;
color: #1B2437;
}
.header_widget p:last-child {
flex-grow: 1;
font-size: 1.4rem;
text-align: right;
color: #98A0A6;
}
Нужно, чтобы была фиксированная ширина, чтобы работало свойство flex-wrap.
<div class="container">
<div class="background">
<div class="column sidebar">
<header class="widget header_widget">
<p>Widget</p>
<p>left</p>
</header>
</div>
<div class="wrap-content">
<p>Interviewing</p>
<div class="wrap-column">
Здесь все колонки
</div>
</div>
</div>
</div>