Skip to content

Instantly share code, notes, and snippets.

@rsobers
Created January 8, 2012 18:06
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 rsobers/1579149 to your computer and use it in GitHub Desktop.
Save rsobers/1579149 to your computer and use it in GitHub Desktop.
css sticky notes styles
body {
background: #B2CCCC;
}
#notes li {
position: relative;
width: 300px;
min-height: 100px;
margin: 25px auto;
padding: 60px 15px 15px 15px;
background: #fff url(http://our.fogbugz.com/images/tbKiwiLogo.gif) no-repeat 4px 8px;
-webkit-box-shadow: 0 2px 12px rgba(0,0,0,.5);
-moz-box-shadow: 0 2px 12px rgba(0,0,0,.5);
box-shadow: 0 1px 2px #000;
-webkit-transform: rotate(-.5deg);
-moz-transform: rotate(-.5deg);
-o-transform: rotate(-.5deg);
}
#notes li:nth-child(even) {
-webkit-transform: rotate(.5deg);
-moz-transform: rotate(.5deg);
-o-transform: rotate(.5deg);
}
#notes li.kiln
{
background-image: url(https://rob.kilnhg.com/Content/Images/kiln_focus.gif);
}
#notes li p {
text-align: center;
font: normal normal normal 40px/48px 'Reenie Beanie', Helvetica, Arial, sans-serif;
color: #000;
text-shadow: white 1px 1px 0px;
overflow:hidden;
}
#notes li::before {
content: ' ';
display: block;
position: absolute;
left: 115px;
top: -15px;
width: 75px;
height: 25px;
z-index: 2;
background-color: rgba(243,245,228,0.5);
border: 2px solid rgba(255,255,255,0.5);
-webkit-box-shadow: 0 0 5px #888;
-moz-box-shadow: 0 0 5px #888;
box-shadow: 2px 2px 2px #000;
-webkit-transform: rotate(-6deg);
-moz-transform: rotate(-6deg);
-o-transform: rotate(-6deg);
}
#notes li:nth-child(even)::before {
-webkit-transform: rotate(6deg);
-moz-transform: rotate(6deg);
-o-transform: rotate(6deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment