Skip to content

Instantly share code, notes, and snippets.

@tonycaputome
Forked from anonymous/dabblet.css
Created April 9, 2012 08:48
Show Gist options
  • Save tonycaputome/2342374 to your computer and use it in GitHub Desktop.
Save tonycaputome/2342374 to your computer and use it in GitHub Desktop.
CSS : Map Pins
/* CSS map pins */
body {
text-align: center;
margin: 80px;
background: #eee;
}
.pin.a {
display: inline-block;
width: 8px;
height: 8px;
background-color: #f33;
background-image: linear-gradient(rgba(100,0,0,0), rgba(255,90,90,1));
border-radius: 100%;
box-shadow: 0 0 0 1px #c00, inset 0 1px 1px rgba(255,255,255,.6), 0 2px 2px rgba(0,0,0,.4);
position: relative;
}
.pin.a:after {
height: 15px;
width: 2px;
content:'';
background: #aaa;
display: block;
position: absolute;
z-index: -1;
left: 3px;
top: 100%;
box-shadow: 0 1px 2px 1px rgba(0,0,0,.1), inset 1px 0 rgba(255,255,255,.3);
}
.pin.b {
margin-top: 40px;
background: transparent;
display: inline-block;
border-radius: 50px 2px 2px 500px;
width: 8px;
height: 8px;
border: 6px solid #f33;
transform: rotate(-45deg);
position: relative;
box-shadow: -1px 1px 2px rgba(0,0,0,.2);
}
<span class="pin a"></span>
<br>
<span class="pin b"></span>
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment