Skip to content

Instantly share code, notes, and snippets.

@jrob00
Created February 16, 2012 23:52
Show Gist options
  • Save jrob00/1848891 to your computer and use it in GitHub Desktop.
Save jrob00/1848891 to your computer and use it in GitHub Desktop.
Donation Center Color Pattern Library
/**
* Donation Center Color Pattern Library
*/
body {
background-color: #FBFBFB;
color: #7B7B7B;
}
ul {
list-style: none;
overflow: auto;
}
li {
float: left;
margin: 0 0 30px 30px;
/*box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);*/
}
li span {
display: block;
width: 135px;
height: 135px;
margin: 0 0 10px 0;
}
li p {
margin: 5px;
}
/**
* Begin Patterns
*/
/* Box Shadows */
.top-shadow {
box-shadow: inset 0px 8px 14px -8px rgba(0,0,0,1);
}
.bottom-shadow {
box-shadow: inset 0px -8px 14px -8px rgba(0,0,0,1);
}
.left-shadow {
box-shadow: inset 8px 0px 14px -8px rgba(0,0,0,1);
}
.right-shadow {
box-shadow: inset -8px 0px 14px -8px rgba(0,0,0,1);
}
.top-bottom-shadow {
box-shadow: inset 0px 8px 14px -8px rgba(0,0,0,1), inset 0px -8px 14px -8px rgba(0,0,0,1);
}
.left-right-shadow {
box-shadow: inset 8px 0px 14px -8px rgba(0,0,0,1), inset -8px 0px 14px -8px rgba(0,0,0,1);
}
.top-left-shadow {
box-shadow: inset 8px 8px 14px -8px rgba(0,0,0,1);
}
.bottom-right-shadow {
box-shadow: inset -8px -8px 14px -8px rgba(0,0,0,1);
}
<ul>
<li>
<span class="top-shadow"></span>
<p>Top</p>
</li>
<li>
<span class="bottom-shadow"></span>
<p>Bottom</p>
</li>
<li>
<span class="left-shadow"></span>
<p>Left</p>
</li>
<li>
<span class="right-shadow"></span>
<p>Right</p>
</li>
<li>
<span class="top-bottom-shadow"></span>
<p>Top & Bottom</p>
</li>
<li>
<span class="left-right-shadow"></span>
<p>Left & Right</p>
</li>
<li>
<span class="top-left-shadow"></span>
<p>Top & Left</p>
</li>
<li>
<span class="bottom-right-shadow"></span>
<p>Bottom & Right</p>
</li>
</ul>
{"view":"split","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment