Created
June 18, 2014 21:18
-
-
Save zackn9ne/0db682c32ba210a4d6b4 to your computer and use it in GitHub Desktop.
app.css
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
/* Add some margin to the page and set a default font and colour */ | |
body { | |
margin: 30px; | |
font-family: "Georgia", serif; | |
line-height: 1.8em; | |
color: #333; | |
} | |
/* Give headings their own font */ | |
h1, h2, h3, h4 { | |
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; | |
} | |
/* Main content area */ | |
#content { | |
margin: 80px 70px; | |
text-align: center; | |
-moz-user-select: none; | |
-webkit-user-select: none; | |
user-select: none; | |
} | |
/* Header/footer boxes */ | |
.wideBox { | |
clear: both; | |
text-align: center; | |
margin: 70px; | |
padding: 10px; | |
background: #ebedf2; | |
border: 1px solid #333; | |
} | |
.wideBox h1 { | |
font-weight: bold; | |
margin: 20px; | |
color: #666; | |
font-size: 1.5em; | |
} | |
/* Slots for final card positions */ | |
#upVote, #downVote, #selector { | |
margin: 50px auto 0 auto; | |
} | |
#downVote { | |
background: Tomato; | |
} | |
#upVote { | |
background: GreenYellow; | |
} | |
#selector { | |
background: GreenYellow; | |
} | |
/* The initial pile of unsorted cards */ | |
#cardPile { | |
margin: 0 auto; | |
background: #ffd; | |
} | |
#upVote, #selector, #downVote { | |
border: 2px solid #333; | |
-moz-border-radius: 10px; | |
-webkit-border-radius: 10px; | |
border-radius: 10px; | |
-moz-box-shadow: 0 0 .3em rgba(0, 0, 0, .8); | |
-webkit-box-shadow: 0 0 .3em rgba(0, 0, 0, .8); | |
box-shadow: 0 0 .3em rgba(0, 0, 0, .8); | |
} | |
#upVote li, #cardPile li, #downVote li{ | |
height: 120px; | |
padding: 20px; | |
} | |
/* Individual cards and slots */ | |
#upVote div, #cardPile div { | |
float: left; | |
width: 58px; | |
height: 78px; | |
padding: 10px; | |
padding-top: 40px; | |
padding-bottom: 0; | |
border: 2px solid #333; | |
-moz-border-radius: 10px; | |
-webkit-border-radius: 10px; | |
border-radius: 10px; | |
margin: 0 0 0 10px; | |
background: #fff; | |
} | |
#upVote div:first-child, #cardPile div:first-child { | |
margin-left: 0; | |
} | |
#upVote div.hovered { | |
background: #aaa; | |
} | |
#upVote div { | |
border-style: dashed; | |
} | |
#cardPile div { | |
background: #666; | |
color: #fff; | |
font-size: 50px; | |
text-shadow: 0 0 3px #000; | |
} | |
#cardPile div.ui-draggable-dragging { | |
-moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8); | |
-webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8); | |
box-shadow: 0 0 .5em rgba(0, 0, 0, .8); | |
} | |
/* Individually coloured cards */ | |
#card1.correct { background: red; } | |
#card2.correct { background: brown; } | |
#card3.correct { background: orange; } | |
#card4.correct { background: yellow; } | |
#card5.correct { background: green; } | |
#card6.correct { background: cyan; } | |
#card7.correct { background: blue; } | |
#card8.correct { background: indigo; } | |
#card9.correct { background: purple; } | |
#card10.correct { background: violet; } | |
/* "You did it!" message */ | |
#successMessage { | |
position: absolute; | |
left: 580px; | |
top: 250px; | |
width: 0; | |
height: 0; | |
z-index: 100; | |
background: #dfd; | |
border: 2px solid #333; | |
-moz-border-radius: 10px; | |
-webkit-border-radius: 10px; | |
border-radius: 10px; | |
-moz-box-shadow: .3em .3em .5em rgba(0, 0, 0, .8); | |
-webkit-box-shadow: .3em .3em .5em rgba(0, 0, 0, .8); | |
box-shadow: .3em .3em .5em rgba(0, 0, 0, .8); | |
padding: 20px; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment