Skip to content

Instantly share code, notes, and snippets.

@wrumsby
Created July 3, 2013 03:56
Show Gist options
  • Select an option

  • Save wrumsby/5915346 to your computer and use it in GitHub Desktop.

Select an option

Save wrumsby/5915346 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background-color: #eee;
color: #333;
font-family: "Open Sans", sans-serif;
}
.x-menu > a > * {
margin: 0;
padding: 0;
}
.x-list {
position: absolute;
border-radius: 4px;
box-shadow: 3px 3px 3px #bbb, -2px 3px 3px #bbb;
margin: 4px 0 0 0;
padding: 0;
list-style-type: none;
}
.x-list > li {
border-bottom: 1px solid #eee;
padding: 9px 42px 9px 12px;
background-color: #fff;
}
.x-list > li:hover {
background-color: #e6f5fa;
}
.x-list.with-actions {
min-width: 230px;
}
.x-list > li a {
text-decoration: none;
padding-top: 3px;
padding-bottom: 3px;
display: inline-block;
color: #048abb;
}
.x-list > li > a {
color: #333;
}
.x-list > li > a:last-child {
margin-right: 0;
}
.x-list > li > .actions {
position: absolute;
right: 12px;
margin-left: 12px;
padding-left: 12px;
padding-right: 1px;
text-align: right;
border-left: 1px solid #efefef;
width:30px;
}
.x-list > li:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.x-list > li:last-child {
border-bottom: none;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.action-add {
font-weight: bold;
color: #048abb !important;
}
<!-- content to be placed inside <body>…</body> -->
<div class="x-menu">
<a href="#"><h2>Filter</h2></a>
<ul class="x-list with-actions">
<li>
<a href="#">Super Grover</a>
</li>
<li>
<a href="#">Double Standard Full Cream</a>
</li>
<li>
<a href="#">Boutros Boutros Ghali</a>
<span class="actions">
<a href="#">Edit</a>
</span>
</li>
<li>
<a href="#">Snuffleupagus</a>
<span class="actions">
<a href="#">Edit</a>
</span>
</li>
<li>
<a href="#" class="action-add">+ New Item</a>
</li>
</ul>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment