Skip to content

Instantly share code, notes, and snippets.

@matthewcopeland
Created August 2, 2012 23:56
Show Gist options
  • Save matthewcopeland/3242273 to your computer and use it in GitHub Desktop.
Save matthewcopeland/3242273 to your computer and use it in GitHub Desktop.
beveled list w haml and sass
ul.beveled
- 4.times do
li List item
ul.beveled
background-color: #efefef
list-style-type: none
margin: 0
padding: 10px
@include box-shadow( 0 2px 3px 0 rgba(0,0,0, .3)
li
padding: 10px 5px;
&:not(:first-of-type)
border-top: 1px solid rgba(255,255,255, 0.2)
&:not(:last-of-type)
border-bottom: 1px solid rgba(0,0,0, .2)
ul.beveled {
background-color: #efefef;
list-style-type: none;
margin: 0;
padding: 10px;
@include box-shadow( 0 2px 3px 0 rgba(0,0,0, .3);
li {
padding: 10px 5px;
&:not(:first-of-type) { border-top: 1px solid rgba(255,255,255, 0.2); }
&:not(:last-of-type) { border-bottom: 1px solid rgba(0,0,0, .2); }
} // li
} // ul.beveled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment