Skip to content

Instantly share code, notes, and snippets.

@tyv
Created January 21, 2013 17:23
Show Gist options
  • Save tyv/4587602 to your computer and use it in GitHub Desktop.
Save tyv/4587602 to your computer and use it in GitHub Desktop.
Untitled
body
{
background: pink
}
.popup
{
position: relative;
width: 200px;
height: 150px;
padding: 10px;
background-color: #fff;
}
.popup:before
{
position: absolute;
z-index: -1;
left: -5px;
top: -5px;
bottom: -5px;
right: -5px;
background: rgba(0,0,0,0.5);
content: '';
}
.popup:after
{
aposition: absolute;
top: 17px;
left: 100%;
width: 5px;
height: 21px;
background: #fff;
content: '';
}
.tail
{
position: absolute;
left: 100%;
top: 10px;
width: 35px;
height: 35px;
}
.tail:before,
.tail:after
{
position: absolute;
top: 5px;
left: -12px;
width: 25px;
height: 25px;
background: #fff;
transform: rotate(45deg);
background-clip: padding-box;
border: 5px solid rgba(0,0,0,0.6);
border-left: 0;
border-bottom: 0;
content: '';
}
.tail:before
{
background: red;
border-color: red;
background-clip: border-box;
}
<div class="popup">
<div class="tail">
</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