Skip to content

Instantly share code, notes, and snippets.

@tyv
Created January 21, 2013 19:59
Show Gist options
  • Save tyv/4588800 to your computer and use it in GitHub Desktop.
Save tyv/4588800 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;
border: 5px solid rgba(0,0,0,0.6);
}
.tail,
.cutter
{
position: absolute;
left: 100%;
top: 10px;
overflow: hidden;
width: 18px;
height: 35px;
}
.tail
{
margin-left: 5px;
}
.cutter
{
width: 5px;
}
.cutter:after,
.tail:after
{
position: absolute;
top: 0;
left: -20px;
width: 25px;
height: 25px;
transform: rotate(45deg);
background: #fff;
border: 5px solid rgba(0,0,0,0.6);
background-clip: padding-box;
content: ''
}
.tail:after
{
margin-left: -5px;
}
.cutter:after
{
border-color: transparent;
}
<div class="popup">
<div class="tail"></div>
<div class="cutter"></div>
контент
</div>
// alert('Hello world!');
{"view":"separate","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