From c83e12b6f2de41168de22ff33779be9f2e16ea74 Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 17 Jan 2019 22:43:02 -0400 Subject: Time trial, weee --- style.css | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'style.css') diff --git a/style.css b/style.css index cc09a9a..7d48241 100644 --- a/style.css +++ b/style.css @@ -46,6 +46,19 @@ body:not(.resources-loaded) #play-paragraph { display: none; } +body:not(.game-over) #final-results { + opacity: 0; +} + +#final-results { + transition: opacity 1s; +} + +/* We have to hide these, or else they messes up layouting of elements below it. */ +body.game-over #results, body.game-over #choice-container { + display: none; +} + #crash-trace { text-align: start; border: 1pt dotted white; @@ -205,6 +218,26 @@ body:not(.resources-loaded) #play-paragraph { background-color: red; } +body:not(.mode-time-trial) #time-trial-heading { + display: none; +} + +#time-trial-heading { + color: rgba(255, 255, 255, 0.3); +} + +#time-trial-time { + color: red; +} + +#final-correct, #final-correct + span { + color: green; +} + +#final-incorrect, #final-incorrect + span { + color: red; +} + body, html { width: 100%; height: 100%; -- cgit 1.3.0-6-gf8a5