From b3a6398b03839d9a9c5f2a1a9bac144867e283a6 Mon Sep 17 00:00:00 2001 From: Florrie Date: Wed, 16 Jan 2019 14:37:45 -0400 Subject: Initial commit --- style.css | 223 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 style.css (limited to 'style.css') diff --git a/style.css b/style.css new file mode 100644 index 0000000..1c2a35d --- /dev/null +++ b/style.css @@ -0,0 +1,223 @@ +@font-face { + font-family: DTM-Mono; + src: url("fonts/DTM-Mono.otf") format("opentype"); +} + +canvas { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + z-index: -1; +} + +#everything-lol { + height: 400px; + border: 1px dotted #222; + padding: 20px; + background: rgba(0, 0, 0, 0.8); + box-shadow: 0 0 32px black; + position: relative; +} + +body:not(.js-enabled) #container { + display: none; +} + +#js-not-working { + text-align: start; +} + +body.js-enabled #js-not-working { + display: none !important; +} + +body:not(.crashed) #crashed { + display: none; +} + +body.game #intro { + display: none; +} + +#crash-trace { + text-align: start; + border: 1pt dotted white; + padding: 4pt; +} + +#choice-container { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + position: relative; + top: 0; +} + +#choice-container.hide, #results.hide { + top: 10px; + opacity: 0; + transition: top 0.5s, opacity 0.5s; +} + +#results { + transition: opacity 0.5s; +} + +.character-choice { + color: white; + display: flex; + flex-direction: column; + align-items: center; + padding: 15px; + margin: 5px; + position: relative; + cursor: pointer; + border: 2px solid transparent; +} + +.character-choice img { + margin-bottom: 5px; + background-color: black; +} + +.character-choice:focus { + outline: 1px dotted yellow; +} + +.character-choice:not(.visible) { + opacity: 0; + bottom: 10px; +} + +.character-choice.visible { + opacity: 1; + bottom: 0; + transition: opacity 0.5s, bottom 0.5s, color 0.2s; +} + +.character-choice { + --my-color: white; + color: var(--my-color); +} + +.character-choice.correct { + --my-color: green; +} + +.character-choice.incorrect { + --my-color: red; +} + +.character-choice.chosen { + border-color: var(--my-color); + bottom: 5px; +} + +.character-choice.not-chosen { + bottom: -5px; + opacity: 0.6; +} + +.character-choice.correct.not-chosen { + border: 2px dashed var(--my-color); +} + +#game:not(.correct) #correct { + display: none; +} + +#game:not(.incorrect) #incorrect { + display: none; +} + +#correct span { + color: green; +} + +#incorrect span:first-child { + color: red; +} + +#incorrect span:last-child { + color: green; +} + +#scorekeeper { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 30px; + display: flex; +} + +#scorekeeper .marker { + flex-basis: 0; + flex-grow: 1; + height: 100%; + opacity: 0.5; + border-top: 1px solid rgba(255, 255, 255, 0.5); + transition: background-color 0.5s; +} + +#scorekeeper .marker:not(:last-child) { + border-right: 1px solid rgba(255, 255, 255, 0.5); +} + +#scorekeeper .marker img { + object-fit: contain; + height: calc(100% - 4px); + margin-top: 2px; + background: black; +} + +#scorekeeper .marker.unset { + background-color: #111; +} + +#scorekeeper .marker.correct { + background-color: green; +} + +#scorekeeper .marker.incorrect { + background-color: red; +} + +body, html { + width: 100%; + height: 100%; + padding: 0; + margin: 0; +} + +body { + background-color: #080808; + color: white; + font-family: DTM-Mono; + text-align: center; + + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + padding: 10px; + box-sizing: border-box; +} + +h1 { + letter-spacing: 1pt; +} + +p { + width: 40em; +} + +a { + color: yellow; + text-decoration: none; + border-bottom: 1px dotted yellow; +} -- cgit 1.3.0-6-gf8a5