Skip to content

Instantly share code, notes, and snippets.

@hongymagic
Created April 12, 2012 01:56
Show Gist options
  • Save hongymagic/2364238 to your computer and use it in GitHub Desktop.
Save hongymagic/2364238 to your computer and use it in GitHub Desktop.
Game icon
/**
* Game icon
*/
.game {
display: block;
margin: 0; padding: 0;
width: 100px; height: 100px;
position: relative;
box-sizing: border-box;
background: transparent url(http://placehold.it/100x100) top left no-repeat;
border: 3px solid white;
border-radius: 10px;
cursor: pointer;
}
.locked::after {
display: block;
margin: 0; padding: 0;
width: 100px; height: 100px;
box-sizing: border-box;
opacity: 0.5;
content: '';
background: transparent url(http://brainfit-cedar.herokuapp.com/assets/locked.png) 50% 50% no-repeat;
}
.game h4 {
display: block;
margin: 0; padding: 0.3em;
width: 100%;
box-sizing: border-box;
position: absolute;
bottom: 0; left: 0;
font: normal normal 300 10pt/100% Arial;
text-align: center;
background: #2b2b2b;
border-radius: 5px;
color: #fff;
}
<a class="game">
<h4>Bridge</h4>
</a>
<a class="game locked">
<h4>Abstract</h4>
</a>
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment