Skip to content

Instantly share code, notes, and snippets.

@Davisonpro
Created February 3, 2019 17:22
Show Gist options
  • Save Davisonpro/d9c188a431f24e5804c43274da201553 to your computer and use it in GitHub Desktop.
Save Davisonpro/d9c188a431f24e5804c43274da201553 to your computer and use it in GitHub Desktop.
Game css
@import url('https://fonts.googleapis.com/css?family=Voltaire');
html, body {
height: 100%;
padding: 0;
margin: 0;
}
*, *:before, *:after {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
blockquote, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, li, ol, p, pre, td, th, ul {
margin: 0;
padding: 0;
}
#world{
position: absolute;
width:100%;
height: 100%;
background-color: #dbe6e6;
overflow: hidden;
}
#gameoverInstructions{
position:absolute;
font-family:'Voltaire', sans-serif;
font-weight:bold;
text-transform: uppercase;
font-size:120px;
text-align:center;
color:#ffc5a2;
opacity:0;
left:50%;
top:50%;
width:100%;
transform : translate(-50%,-100%);
user-select: none;
transition: all 500ms ease-in-out;
}
#gameoverInstructions.show {
opacity:1;
transform : translate(-50%,-50%);
transition: all 500ms ease-in-out;
}
#dist{
position:absolute;
left:50%;
top:50px;
transform:translate(-50%,0%);
user-select: none;
}
.label{
position:relative;
font-family:'Voltaire', sans-serif;
text-transform:uppercase;
color:#ffa873;
font-size:12px;
letter-spacing:2px;
text-align:center;
margin-bottom:5px;
}
#distValue{
position:relative;
text-transform:uppercase;
color:#dc5f45;
font-size:40px;
font-family:'Voltaire';
text-align:center;
}
#instructions{
position:absolute;
width:100%;
bottom:0;
margin: auto;
margin-bottom:50px;
font-family:'Voltaire', sans-serif;
color:#dc5f45;
font-size:16px;
letter-spacing:1px;
text-transform: uppercase;
text-align : center;
user-select: none;
}
.lightInstructions {
color:#5f9042;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment