diff --git a/css/main.css b/css/main.css index 917b8b5..fbc96a7 100644 --- a/css/main.css +++ b/css/main.css @@ -1,26 +1,26 @@ body { background: transparent; - overflow: hidden; font-family: sans-serif; height: 100vh; + overflow: hidden; } #debug { - position: absolute; - top: 0; - display: none; - width: 100vw; - font-size: 60px; color: red; + display: none; + font-size: 60px; line-height: 80px; + position: absolute; text-align: center; + top: 0; + width: 100vw; } -.no-gamepad { - width: 100vw; +.instructions { height: 100vh; - text-align: center; line-height: 2em; + text-align: center; + width: 100vw; } @keyframes press-button { @@ -28,7 +28,7 @@ body { fill: #898989; } - 5% { + 7% { fill: #898989; } @@ -36,7 +36,7 @@ body { fill: #00e530; } - 15% { + 17% { fill: #00e530; } @@ -44,7 +44,7 @@ body { fill: #898989; } - 25% { + 27% { fill: #898989; } @@ -52,7 +52,7 @@ body { fill: #00e530; } - 35% { + 37% { fill: #00e530; } @@ -65,36 +65,36 @@ body { } } -.no-gamepad svg { +.instructions svg { + height: 90%; + left: 50%; + max-width: 600px; position: absolute; top: 50%; - left: 50%; transform: translate(-50%, -50%); width: 90%; - max-width: 600px; - height: 90%; } -.no-gamepad #a-button path { +.instructions #a-button path { animation: press-button 5s linear infinite; } #gamepad { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); background-position: center; background-repeat: no-repeat; background-size: contain; + left: 50%; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); } -#help { +#help-popout { background: whitesmoke; - color: black; border: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-sizing: border-box; + color: black; display: none; font-size: 0.9em; left: 50%; @@ -106,43 +106,43 @@ body { transform: translate(-50%, -50%); } -#help.active { +#help-popout.active { display: block; } -#help h2 { - margin-top: 0; +#help-popout h2 { margin-bottom: 1.5em; + margin-top: 0; } -#help h3 { +#help-popout h3 { margin-top: 1.5em; } -#help p:last-child { +#help-popout p:last-child { margin-bottom: 0; } -#help table { +#help-popout table { border-collapse: collapse; border-spacing: 0; max-width: 100%; width: 100%; } -#help th { +#help-popout th { text-align: left; } -#help th, -#help td { +#help-popout th, +#help-popout td { border-top: 1px solid #ddd; line-height: 1.42857143; padding: 8px; vertical-align: top; } -#help table>thead>tr>th { +#help-popout table>thead>tr>th { border-bottom: 2px solid #ddd; border-top: 0; vertical-align: bottom; @@ -176,23 +176,23 @@ kbd[title], kbd, kbd.dark { - background: rgb(80, 80, 80); - background: -moz-linear-gradient(top, rgb(60, 60, 60), rgb(80, 80, 80)); - background: -webkit-gradient(linear, left top, left bottom, from(rgb(60, 60, 60)), to(rgb(80, 80, 80))); - color: rgb(250, 250, 250); - text-shadow: -1px -1px 0 rgb(70, 70, 70); -moz-box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3); -webkit-box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3); + background: -moz-linear-gradient(top, rgb(60, 60, 60), rgb(80, 80, 80)); + background: -webkit-gradient(linear, left top, left bottom, from(rgb(60, 60, 60)), to(rgb(80, 80, 80))); + background: rgb(80, 80, 80); box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3); + color: rgb(250, 250, 250); + text-shadow: -1px -1px 0 rgb(70, 70, 70); } kbd.light { - background: rgb(250, 250, 250); - background: -moz-linear-gradient(top, rgb(210, 210, 210), rgb(255, 255, 255)); - background: -webkit-gradient(linear, left top, left bottom, from(rgb(210, 210, 210)), to(rgb(255, 255, 255))); - color: rgb(50, 50, 50); - text-shadow: 0 0 2px rgb(255, 255, 255); -moz-box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9); -webkit-box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9); + background: -moz-linear-gradient(top, rgb(210, 210, 210), rgb(255, 255, 255)); + background: -webkit-gradient(linear, left top, left bottom, from(rgb(210, 210, 210)), to(rgb(255, 255, 255))); + background: rgb(250, 250, 250); box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9); + color: rgb(50, 50, 50); + text-shadow: 0 0 2px rgb(255, 255, 255); } diff --git a/index.html b/index.html index d636e8a..8cd5168 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@
-Press H to read instructions.