Skip to content

Instantly share code, notes, and snippets.

@Leolik
Forked from h4/dabblet.css
Created January 21, 2013 21:40
Show Gist options
  • Save Leolik/4589714 to your computer and use it in GitHub Desktop.
Save Leolik/4589714 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);
}
.popup:after,
.popup:before {
content: "";
top: 15px;
right: -17px;
position: absolute;
height: 24px;
width: 24px;
transform: rotate(45deg);
background: linear-gradient(45deg, transparent 0, transparent 50%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.6) 100%);
}
.popup:after {
background: #fff;
height: 24px;
width: 24px;
top: 15px;
right: -10px;
background: linear-gradient(45deg, transparent 0, transparent 50%, #fff 50%, #fff 100%);
}
<div class="popup">
контент
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"70","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment