Skip to content

Instantly share code, notes, and snippets.

@DiegoTc
Created May 8, 2014 19:36
Show Gist options
  • Save DiegoTc/121c01763826d3e46e8a to your computer and use it in GitHub Desktop.
Save DiegoTc/121c01763826d3e46e8a to your computer and use it in GitHub Desktop.
#lightbox-shadow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
filter: alpha(opacity=100);
-moz-opacity: 0.75;
-khtml-opacity: 0.75;
opacity: 0.75;
z-index: 1000;
}
/****CARDS*////
div.container {
width: 100%;
overflow: hidden;
}
div.bonecard {
background-color: white;
margin: 20px;
width: 340px;
height: 210px;
border: 2px solid black;
border-left: 2px solid black;
padding: 10px;
-webkit-border-radius: 20px;
-webkit-border-top-right-radius: 50px;
-webkit-border-bottom-right-radius: 50px;
-moz-border-radius: 20px;
-moz-border-radius-topright: 50px;
-moz-border-radius-bottomright: 50px;
border-radius: 20px;
border-top-right-radius: 50px;
border-bottom-right-radius: 50px;
position: relative;
margin: 2% 2% 50px 2%;
float: left;
-webkit-transition: color 0.5s ease;
}
div.bonecard:after, div.bonecard:before {
background-color: white;
position: absolute;
display: block;
content:"";
border: 2px solid black;
border-right: 2px solid white;
width: 6px;
left: -10px;
}
div.bonecard:before {
top: 60px;
height: 60px;
}
div.bonecard:after {
top: 180px;
height: 30px;
}
/**LIGHT BOX**/
div.bonecardLightBox {
background-color: white;
background: #fff;
z-index: 1001;
margin-top: 50px;
margin-left: 250px;
width: 850px;
height: 525px;
border: 2px solid black;
border-left: 2px solid black;
padding: 10px;
-webkit-border-radius: 20px;
-webkit-border-top-right-radius: 50px;
-webkit-border-bottom-right-radius: 50px;
-moz-border-radius: 20px;
-moz-border-radius-topright: 50px;
-moz-border-radius-bottomright: 50px;
border-radius: 20px;
border-top-right-radius: 50px;
border-bottom-right-radius: 50px;
//position: relative;
position: absolute;
float: center;
-webkit-transition: color 0.5s ease;
}
div.bonecardLightBox:after, div.bonecardLightBox:before {
background-color: white;
position: absolute;
display: block;
content:"";
border: 2px solid black;
border-right: 2px solid white;
width: 6px;
left: -10px;
}
div.bonecardLightBox:before {
top: 150px;
height: 150px;
}
div.bonecardLightBox:after {
top: 460px;
height: 45px;
}
/*** Zoom ****/
div.zoomed {
width: 850px;
height: 525px;
}
div.zoomed:before {
top: 150px;
height: 150px;
}
div.zoomed:after {
top: 460px;
height: 45px;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id="lightbox-shadow">
<div class="bonecardLightBox">Example #2
<br>Next line
<br>Line after
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment