Would you like some coffee ?
A coffee cup design experiment, originally made with SCSS/BOURBON & HAML.
But cssdeck didn't have BOURBON as preprocessor, so I just did it with good ol' HTML/CSS
<div class='cup'>
<div class='cup'>
<div class='filled'></div>
</div>
<h1>Would you like some coffee ?</h1>
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:300);
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:300);
* {
box-sizing: border-box;
font-smoothing: antialiased;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
background: #ecf0f1;
font-size: 1em;
}
h1 {
font-family: "Yanone Kaffeesatz", Helvetica, sans-serif;
text-align: center;
font-size: 3.5em;
margin: -1.5em auto;
color: #262626;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8), 0 -1px 0 white;
}
.cup {
/*position*/
margin: 10em auto;
/*Style*/
width: 11.09017em;
height: 11.09017em;
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
}
.cup:before, .cup:after {
content: '';
display: block;
float: left;
box-shadow: 0 0 0 1em #262626;
position: absolute;
}
.cup:before {
height: 6.8541em;
width: 1.61803em;
margin: 1.62232em 12.16886em;
border-top-right-radius: 1em;
border-bottom-right-radius: 1em;
}
.cup:after {
height: 1em;
width: 16.94427em;
margin: 12.26884em -2.61803em;
box-shadow: inset 0 1em 0 0.61803em #262626;
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
}
.cup .filled {
display: block;
width: 101%;
height: 100%;
float: left;
border-bottom-left-radius: 0.90909em;
border-bottom-right-radius: 0.90909em;
box-shadow: inset 0 0 0 0.23607em #ecf0f1, 0 0 0 1em #262626;
margin-left: -1px;
margin-right: 3px;
background-image: linear-gradient(top, #ecf0f1 25%, #643001 25%, #643001 50%, #532700 50%, #532700 75%, #3a1c00 75%);
background-image: linear-gradient(to bottom, #ecf0f1 25%, #643001 25%, #643001 50%, #532700 50%, #532700 75%, #3a1c00 75%);
}