Skip to content

Instantly share code, notes, and snippets.

@dsalvagni
Created May 22, 2014 16:49
Show Gist options
  • Save dsalvagni/1709f1e1a42724c63cdd to your computer and use it in GitHub Desktop.
Save dsalvagni/1709f1e1a42724c63cdd to your computer and use it in GitHub Desktop.
Stylesheet file for a blog post
.lightbox-shadow
{
position:fixed;
z-index: 10;
top:0;
left:0;
bottom:0;
right:0;
background:#000;
opacity: 0.5;
-moz-opacity: 0.5;
filter:alpha(opacity=5);
}
.lightbox
{
position:fixed;
z-index: 20;
top:50%;
left:50%;
border:2px solid #FFF;
}
.lightbox-close
{
position: absolute;
z-index: 30;
top:-15px;
right:-15px;
width: 30px;
height: 30px;
cursor: pointer;
font-size: 18px;
color:#FFF;
line-height: 30px;
font-weight: bold;
text-align:center;
background-color: #000;
border:3px solid #FFF;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment