Created
April 20, 2012 19:09
-
-
Save futuraprime/2431120 to your computer and use it in GitHub Desktop.
Neven's Popover
This file contains hidden or 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
.popover { | |
/* to be set as appropriate */ | |
width: 200px; | |
height: 200px; | |
margin: 20px; | |
background-color: white; | |
padding: 20px; | |
border-radius: 6px; | |
position: relative; | |
box-shadow: 0 0 15px rgba(0,0,0,.4); | |
} | |
.popover:after { | |
position: absolute; | |
content: ''; | |
display: block; | |
width: 20px; | |
height: 20px; | |
left: 50%; | |
bottom: 0px; | |
box-shadow:5px 5px 5px rgba(0,0,0,.1); | |
-webkit-transform-origin: 50% 50%; | |
-webkit-transform: matrix(0.707, 0.707, -0.707, 0.707, -10, 10); /* rotate 45deg + shift to center 10px */ | |
background-color: white; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment