Created
April 12, 2012 01:56
-
-
Save hongymagic/2364238 to your computer and use it in GitHub Desktop.
Game icon
This file contains hidden or 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
/** | |
* 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; | |
} |
This file contains hidden or 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
<a class="game"> | |
<h4>Bridge</h4> | |
</a> | |
<a class="game locked"> | |
<h4>Abstract</h4> | |
</a> |
This file contains hidden or 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
{"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