Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!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