Skip to content

Instantly share code, notes, and snippets.

@kizu
Created January 21, 2013 22:07
Show Gist options
  • Save kizu/4589950 to your computer and use it in GitHub Desktop.
Save kizu/4589950 to your computer and use it in GitHub Desktop.
Untitled
body
{
background: pink
}
.popup
{
position: relative;
width: 200px;
height: 150px;
padding: 10px;
background: #fff;
background-clip: padding-box;
box-shadow: 0 0 0 5px rgba(0,0,0,0.6);
}
.popup:before,
.popup:after {
content: "";
position: absolute;
left: 100%;
top: 15px;
width: 24px;
height: 24px;
margin: 0 0 0 -13px;
background: linear-gradient(45deg,transparent 50%,white 50%);
transform: rotate(45deg) translate(0.5px);
}
.popup:before {
margin: 0 0 0 -7px;
background: linear-gradient(45deg,transparent 50%,rgba(0,0,0,0.6) 50%);
}
<div class="popup">
контент
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment