JSFiddle - React, Tailwind, and code Playground
by Andrey Izman
HTML
<div class="row border">
<div class="col">
<div data-components="kekka-user-information" id="ember12" class="ember-view"><div class="columns">
<div class="column-unshrink separator-pageitems beside narrow"></div>
<div class="column-unshrink ">
<div data-components="pdr-image-view" id="ember13" class="icon-profile default-profile ember-view" styled="background-image: url(//psn-rsc.prod.dl.playstation.net/psn-rsc/avatar/EP1018/CUSA00135_00-AV00000000000022_3F62FA3EF2B7D763A3C1_l.png);"></div>
</div>
<div class="column-unshrink separator-pageitems beside narrow"></div>
<div class="row-flex rows-center fitting-width">
<div class="profile-text-title max-two-lines" dir="ltr">Test Test</div>
<div class="profile-text-main max-two-lines">TestTest</div>
<div class="profile-text-sub max-two-lines">[email protected]</div>
</div>
<div class="column-unshrink separator-pageitems beside narrow"></div>
</div>
<!----></div>
</div>
<div class="col">
<div class="total-info">
<div class="text">
<div>Transactions: <span class="bold">123</span></div>
<div>Total paid: <span class="bold">23340.00 UAH</span></div>
<button class="btn btn-primary bold" role="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-darkreader-inline-stroke="" style="--darkreader-inline-stroke:#e8e6e3;"><path d="M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5"></path></svg>
<span>Download transactions in CSV</span>
</button>
<div class="clear"></div>
</div>
</div>
</div>
</div>
SCSS
body {
font-size: 1.2rem;
line-height: 2rem;
font-family: Arial, helvetica, sans-serif;
}
.row {
display: block;
float: left;
.col {
display: inline-block;
vertical-align: top;
float: left;
min-height: 72px;
min-width: 240px;
+ .col {
border-left: 1px solid #3caefb;
}
&:after {
content: '';
display: table;
clear: both;
}
}
}
.clear {
display: table;
clear: both;
}
.icon-profile {
background-image: url(http://metamorphz.d/ps-pad-buttons.png);
background-image: url(http://metamorphz.d/playstation-logo.jpg);
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
height: 70px;
width: 70px;
margin: 0 10px 0 0;
}
.column-unshrink {
flex-shrink: 0;
}
.fitting-width {
width: 100%;
}
.row-flex {
flex: 1 1 auto;
}
.max-two-lines {
word-break: break-all;
max-height: 3rem;
overflow: hidden;
line-height: 1.5rem;
font-size: 16px;
}
.text {
line-height: 1.5rem;
font-size: 16px;
}
.columns {
flex: 1 1 0px;
padding-left: 0;
padding-right: 0;
display: flex;
}
.separator-pageitems {
display: none;
}
.profile-text-title, .bold {
font-weight: bold;
}
.border {
border: 1px solid #3caefb;
}
[data-components="kekka-user-information"] {
padding: 15px;
}
.total-info {
line-height: 1.5rem;
padding: 15px 15px 10px 15px;
min-width: 220px;
}
.btn {
-webkit-appearance: button;
outline: 0;
display: inline-block;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: middle;
user-select: none;
border: 1px solid transparent;
padding: .25rem .5rem;
font-size: .875rem;
line-height: 1.5;
border-radius: .2rem;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.btn.bold {
font-weight: bold;
}
.btn span {
padding-left: 7px;
}
.btn svg {
...