Created
January 21, 2013 19:59
-
-
Save tyv/4588800 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="popup"> | |
<div class="tail"></div> | |
<div class="cutter"></div> | |
контент | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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