Created
February 6, 2014 06:58
-
-
Save AllenSH12/8839493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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