Skip to content

Instantly share code, notes, and snippets.

@tyv
Forked from Leolik/dabblet.css
Created January 21, 2013 21:35
Show Gist options
  • Save tyv/4589653 to your computer and use it in GitHub Desktop.
Save tyv/4589653 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.5);
}
.popup:after,
.popup:before {
content: "";
display:block;
position: absolute;
right: -12px;
top: 11px;
width: 25px;
height: 25px;
background: #fff;
background-clip: padding-box;
border: 5px solid rgba(0,0,0,0.5);
transform: rotate(45deg)
}
.popup:after {
border-color: transparent;
}
.popup:before
{
z-index: -1;
}
<div class="popup">
контент
</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