Skip to content

Instantly share code, notes, and snippets.

@mikewlange
Created October 31, 2018 05:23
Show Gist options
  • Save mikewlange/b340ca36888feb23d1c2584a6a369999 to your computer and use it in GitHub Desktop.
Save mikewlange/b340ca36888feb23d1c2584a6a369999 to your computer and use it in GitHub Desktop.
Client Summary Card
<div class="container">
<div class="card">
<div class="card-head">
<img src="https://phanphoicophieu.hsc.com.vn/img/logo2x.png" alt="logo" class="card-logo"><span class="product-price">
Margin<b>80%</b>
</span>
<div class="product-detail">
<h2>011C392109</h2> Your profit and lot will be calculate realtime here. Please note current intial margin ratio is 19%
</div>
</div>
<div class="card-body">
<div class="product-desc">
<span class="product-title"><b>12476985743</b><span class="badge">Normal</span></span>
<span class="product-caption">Trading Power</span>
</div>
<div class="product-properties">
<span class="product-title" style="font-size: 14px;padding: 20px 5px 5px 20px;"><span style="width:50%;"><b>IM: 89759865</b></span><span style="width:50%; margin-left: 10%;"><b>EB: 6786787</b></span></span>
<span class="product-title" style="font-size: 14px;padding: 5px 10px 5px 20px;"><span style="width:50%;"><b>PL: 89759865</b></span><span style="width:50%; margin-left: 10%;"><b>EX: 645456</b></span></span>
<span class="product-size">
<h4>Position</h4>
<ul class="ul-size">
<li style="width:52px;"><a href="#">ProductID</a></li>
<li style="width:32px;"><a href="#">A.Price</a></li>
<li><a href="#">Net</a></li>
<li style="width:42px;"><a href="#">PL</a></li>
</ul>
</span>
<span class="product-size">
<ul class="ul-size">
<li style="width:52px;"><a href="#">VN30F1810</a></li>
<li style="width:32px;"><a href="#">1003.9</a></li>
<li ><a href="#" class="active">-10</a></li>
<li style="width:32px;"><a href="#">1003789789</a></li>
</ul>
</span>
<span class="product-size">
<ul class="ul-size">
<li style="width:52px;"><a href="#">VN30F1811</a></li>
<li style="width:32px;"><a href="#">1013.9</a></li>
<li ><a href="#" class="buy">9</a></li>
<li style="width:32px;"><a href="#">1003789789</a></li>
</ul>
</span>
</div>
</div>
</div>
</div>
* {
margin: 0;
padding: 0;
outline: none;
}
body {
font-family: 'Roboto', sans-serif;
background: #353535;
}
.container {
width: 280px;
height: 250px;
margin: 30px auto;
}
.card {
border-radius: 25px;
box-shadow: -11px 11px 1px rgba(0, 0, 0, 0.3);
}
.card-head {
position: relative;
height: 20%;
background: #fa782e;
/* Old browsers */
background: -moz-linear-gradient(-45deg, #fa782e 8%, #c82930 83%);
/* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, #fa782e 8%, #c82930 83%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, #fa782e 8%, #c82930 83%);
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#fa782e', endColorstr='#c82930', GradientType=1);
/* IE6-9 fallback on horizontal gradient */
border-radius: 25px 25px 0 0;
}
.card-logo {
width: 55px;
margin: 20px;
}
.product-img {
position: absolute;
left: 0;
margin-top: -16px;
margin-left: 50px;
}
.product-detail {
padding: 0 20px 10px;
font-size: 11px;
color: #fff;
}
.product-detail h2 {
font-size: 18px;
font-weight: 500;
letter-spacing: 2px;
padding-bottom: 10px;
text-transform: uppercase;
}
.back-text {
display: inline-block;
font-size: 125px;
font-weight: 900;
margin-left: -7px;
margin-top: -12px;
opacity: 0.1;
}
.card-body {
height: 255px;
background: #fff;
border-radius: 0 0 25px 25px;
}
.product-title {
padding: 20px 20px 5px 20px;
display: block;
font-size: 17px;
font-weight: 500;
letter-spacing: 1px;
text-transform: uppercase;
}
.product-title b {
font-weight: 900;
letter-spacing: 0px;
}
.badge {
position: relative;
font-size: 10px;
font-weight: 300;
color: #fff;
background: #11e95b;
padding: 2px 5px;
border-radius: 4px;
top: -2px;
margin-left: 5px;
}
.product-caption {
display: block;
padding: 0 20px;
font-size: 10px;
font-weight: 400;
text-transform: uppercase;
}
.product-rating {
padding: 0 20px;
font-size: 11px;
}
.product-rating i.grey {
color: #acacab;
}
.product-size h4 {
font-size: 11px;
padding: 0 21px;
margin-top: 15px;
padding-bottom: 10px;
text-transform: uppercase;
}
.ul-size {
margin-left: 15px;
}
.ul-size li {
list-style: none;
float: left;
margin-right: 20px;
}
.ul-size li a {
display: inline-block;
text-decoration: none;
font-size: 11px;
width: 23px;
height: 23px;
border-radius: 100%;
text-align: center;
line-height: 23px;
color: #000;
}
.ul-size li a.active {
background: #f35e3d;
color: #fff;
}
.ul-size li a.buy {
background: #11e95b;
color: #fff;
}
.product-size:before,
.product-size:after {
content: '';
display: block;
clear: both;
}
.product-color h4 {
font-size: 11px;
padding: 0 21px;
margin-top: 20px;
padding-bottom: 20px;
text-transform: uppercase;
}
.ul-color {
margin-left: 27px;
}
.ul-color li {
list-style: none;
float: left;
margin-right: 20px;
}
.ul-color li a {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 100%;
}
.ul-color li a.orange {
background: #f35e3d;
}
.ul-color li a.green {
background: #11e95b;
}
.ul-color li a.yellow {
background: #ffd414;
}
.ul-color li a.active:after {
position: absolute;
content: '';
display: inline-block;
border: 1px solid #f35e3d;
width: 24px;
height: 24px;
border-radius: 100%;
margin-left: -5px;
margin-top: -5px;
}
.product-price {
position: absolute;
background: #11e95b;
padding: 7px 20px;
text-align: center;
display: inline-block;
font-size: 24px;
font-weight: 200;
color: #fff;
border-radius: 7px;
margin-top: -13px;
margin-left: 10px;
box-shadow: -10px 20px 15px -10px rgba(17, 233, 91, 0.3);
}
.product-price b {
margin-left: 5px;
}
.yt
{
position: fixed;
padding:7px 10px 3px 10px;
top: 5px;
right: 5px;
background: rgba(0,0,0,0.1);
}
.yt:hover
{
background: rgba(0,0,0,0.2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment