Skip to content

Instantly share code, notes, and snippets.

@Frankie-666
Created July 3, 2016 14:59
Show Gist options
  • Save Frankie-666/22583c86b4b63b2ac677d638521ea136 to your computer and use it in GitHub Desktop.
Save Frankie-666/22583c86b4b63b2ac677d638521ea136 to your computer and use it in GitHub Desktop.
Design it
<p class="title">Dribbble Shot by - <a href="http://dribbble.com/okgriffin" target="_blank">Griffin Moore</a></p>
<a href="http://drbl.in/iKgZ" target="_blank"><img src="http://dribbble.s3.amazonaws.com/users/44148/screenshots/1222571/codeit.png" /></a>
<div class="bg">
<div class="screen">
<div>
<p class="white">
</p>
<p class="tan">
</p>
<p class="white02">
</p>
</div>
<div>
<p class="blue">
</p>
<p class="tan02">
</p>
</div>
<div class="three">
<p class="white02">
</p>
</div>
<div>
<p class="white">
</p>
<p class="tan03">
</p>
</div>
</div>
<div class="wiretop">
</div>
<div class="wirecovertop">
</div>
<div class="wire">
</div>
<div class="wirebottom">
</div>
<div class="wirecoverbottom">
</div>
<div class="cord">
</div>
<div class="usb">
<div class="top">
<p class="hole">
</p>
<p class="hole gap">
</p>
</div>
</div>
<div class="board">
<div class="top">
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p class="gap">
</p>
<p>
</p>
<p>
</p>
</div>
<div>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p class="gap">
</p>
<p>
</p>
<p>
</p>
</div>
<div>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p class="gap">
</p>
<p>
</p>
<p class="enter">
</p>
<p class="shift">
</p>
<p class="space">
</p>
<p class="shift">
</p>
<p class="gap return">
</p>
</div>
</div>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
body{
background: #ff6e6e;
color: #98a5b0;
font-family: Verdana, Geneva, sans-serif;
font-weight: bold;
}
a {
color: #e5c689;
text-decoration: none;
}
.title {
background: #334557;
padding: 10px 1%;
width: 98%;
}
img {
float: left;
margin-right: 5px;
}
.bg {
background: #ff6e6e;
float: left;
height: 300px;
position: relative;
width: 400px;
}
.screen {
background: #334557;
border-radius: 5px;
box-shadow: 0 5px 1px rgba(0, 0, 0, .1);
height: 132px;
margin: 78px auto;
padding: 6px 5px;
width: 81px;
}
.screen div {
float: left;
margin-bottom: 1px;
width: 100%;
}
.screen div.three {
margin-bottom: 4px;
}
.screen p {
float: left;
}
.white {
background: #ffffff;
height: 4px;
margin: 1px;
width: 5px;
}
.tan {
background: #e5c689;
height: 4px;
margin: 1px;
width: 16px;
}
.white02 {
background: #ffffff;
height: 4px;
margin: 1px;
width: 13px;
}
.blue {
background: #389abe;
height: 4px;
margin: 1px;
width: 31px;
}
.tan02 {
background: #e5c689;
height: 4px;
margin: 1px;
width: 13px;
}
.tan03 {
background: #e5c689;
height: 4px;
margin: 1px;
width: 10px;
}
.wire {
background: #f2f2f2;
height: 8px;
left: 235px;
position: absolute;
top: 136px;
width: 3px;
}
.wiretop {
background: #f2f2f2;
border-radius: 11px 11px 0 0;
height: 30px;
left: 199px;
position: absolute;
top: 114px;
width: 21px;
}
.wirecovertop {
background: #334557;
border-radius: 9px 9px 0 0;
height: 27px;
left: 202px;
position: absolute;
top: 117px;
width: 15px;
}
.wirebottom {
background: #f2f2f2;
border-radius: 0 0 11px 11px;
height: 23px;
left: 217px;
position: absolute;
top: 193px;
width: 21px;
}
.wirecoverbottom {
background: #334557;
border-radius: 0 0 9px 9px;
height: 20px;
left: 220px;
position: absolute;
top: 193px;
width: 15px;
}
.cord {
background: #e6e6e6;
height: 5px;
left: 198px;
position: absolute;
top: 139px;
width: 5px;
}
.usb {
background: #f2f2f2;
border-radius: 0 0 7px 7px ;
height: 22px;
left: 230px;
position: absolute;
top: 114px;
width: 13px;
}
.usb div.top {
background: #cccccc;
height: 3px;
padding: 3px 0;
}
.top p.hole {
background: #999999;
float: left;
height: 3px;
width: 4px;
}
.usb p.gap {
margin-left: 5px;
}
.board {
background: #98a5b0;
border-radius: 3px;
box-shadow: 0 5px 1px rgba(0, 0, 0, .19);
height: 45px;
left: 137px;
margin: 0 auto;
padding: 2px;
position: absolute;
top: 144px;
width: 123px;
}
.board div {
float: left;
width: 100%;
}
.board p {
background: #ffffff;
float: left;
margin: 1px;
height: 10px;
width: 10px;
}
.board .top p {
height: 7px;
}
.board p.enter {
float: right;
height: 22px;
}
.board p.shift {
width: 16px;
}
.board p.return {
width: 22px;
}
.board p.space {
width: 46px;
}
.board p.gap {
margin-left: 4px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment