Skip to content

Instantly share code, notes, and snippets.

@dabos
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dabos/6a40b8465c38f1de4e81 to your computer and use it in GitHub Desktop.
Save dabos/6a40b8465c38f1de4e81 to your computer and use it in GitHub Desktop.
Untitled
body {
background-color: hotpink;
padding: 100px;
text-align: center;
font-family: Helvetica Neue, Helvetica, Ubuntu, Arial;
}
h1 {
margin-bottom: 200px;
}
.coffee {
display: inline-block;
background-color: #FFFFFF;
width: 200px;
height: 120px;
border-radius: 0 0 100px 100px;
position: relative;
box-shadow: inset 15px 0 0 0px rgba(0, 0, 0, 0.1), 0 0 5px -2px black;
&:after {
content: "";
display: block;
width: 50px;
height: 40px;
border-radius: 100%;
border: 12px solid #FFFFFF;
position: absolute;
right: -40px;
top: 10px;
transform: rotate(-20deg);
}
&:before {
content: "";
display: block;
position: absolute;
width: 5px;
height: 60px;
background-color: black;
top: -80px;
left: 70px;
box-shadow: 20px 0 0 0 black,
40px 0 0 0 black;
}
}
l
<div class="coffee">
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"1","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment