Skip to content

Instantly share code, notes, and snippets.

@tyv
Forked from kizu/dabblet.css
Created January 21, 2013 23:58
Show Gist options
  • Save tyv/4590718 to your computer and use it in GitHub Desktop.
Save tyv/4590718 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);
border-right: 0;
}
.popup:after
{
position: absolute;
left: 100%;
top: -5px;
bottom: -5px;
width: 25px;
background-image:
linear-gradient(0, rgba(0, 0, 0, 0.6)50%, rgba(0, 0, 0, 0)50%),
linear-gradient(0, rgba(0, 0, 0, 0.6)50%, rgba(0, 0, 0, 0)50%),
linear-gradient(45deg, rgba(255, 255, 255, 1)50%, rgba(255,255,255, 0)50%),
linear-gradient(135deg, rgba(255, 255, 255, 1)50%, rgba(255, 255, 255, 0)50%),
linear-gradient(45deg, rgba(0, 0, 0, 0.6)50%, rgba(0, 0, 0, 0)50%),
linear-gradient(135deg, rgba(0, 0, 0, 0.6)50%, rgba(0, 0, 0, 0)50%);
background-size:
10px 30px,
10px 100%,
26px 17px,
26px 17px,
26px 17px,
26px 17px;
background-position:
0 0,
0 64px,
-7px 30px,
-7px 47px,
0 30px,
0 47px;
background-repeat: no-repeat;
content: '';
}
<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