Created
May 29, 2012 12:56
-
-
Save JackieXu/2828233 to your computer and use it in GitHub Desktop.
Cards
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
/** | |
* Cards | |
*/ | |
body { | |
background-color: #000; | |
} | |
.card { | |
background-color: #fff; | |
border-radius: 10px; | |
box-shadow: 1px 2px 2px #aaa; | |
cursor: pointer; | |
display: inline-block; | |
height: 180px; | |
margin-top: 0; | |
position: relative; | |
text-align: center; | |
transition: top 0.3s linear; | |
width: 130px; | |
} | |
.card:hover .card_text { | |
text-decoration: underline; | |
} | |
.card_suit { | |
color: #94388d; | |
font-size: 90pt; | |
margin-top: 20px; | |
} | |
.card_text { | |
color: #94388d; | |
font-family: "Arial Rounded MT Bold"; | |
font-size: 11pt; | |
font-weight: bold; | |
margin-top: -15px; | |
} | |
#active { | |
color: #92a25d; | |
} | |
#card_uitleg { | |
transform: rotate(4deg); | |
z-index: 42; | |
} | |
.card:hover { | |
transition: top 0.3s linear; | |
top: 20px; | |
} | |
#card_stand { | |
margin-left: -20px; | |
transform: rotate(-8deg); | |
z-index: 41; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="card" id="card_uitleg"> | |
<div class="card_suit" id="active">♣</div> | |
<div class="card_text">speluitleg</div> | |
</div> | |
<div class="card" id="card_stand"> | |
<div class="card_suit">♥</div> | |
<div class="card_text">Tussenstand</div> | |
</div> | |
<div class="card" id="card_matches"> | |
<div class="card_suit">♠</div> | |
<div class="card_text">Matches</div> | |
</div> |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment