Skip to content

Instantly share code, notes, and snippets.

@AllenSH12
Created February 6, 2014 06:58
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 AllenSH12/8839493 to your computer and use it in GitHub Desktop.
Save AllenSH12/8839493 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="assetListItem">
<div class="grippy"></div>
<img class="assetListThumb" src="http://placehold.it/75x75" alt="image">
<h4>Asset Whatever</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicin.</p>
<div class="controls">
<button class="btn btn-link" type="button">Edit</button>
<button class="btn btn-link" type="button">Save</button>
</div>
</div>
</body>
</html>
.assetListItem {
background: #eee;
padding: 5px 5px 5px 30px;
&:hover {
.btn, .grippy {
visibility: visible;
}
}
.assetListThumb {
float: right;
margin: 5px;
}
.btn {
visibility: hidden;
}
.grippy {
background: #aaa;
visibility: hidden;
position: absolute;
left: 5px;
top: 15px;
height: 20px;
width: 20px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment