Mercurial > personal > weather-server
view weather_server/static/style.css @ 29:27217790dc04
add web manifest
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 19 May 2020 10:11:28 -0400 |
parents | 7def5611895b |
children |
line wrap: on
line source
html { margin: 0; padding: 0; height: 100%; width: 100%; font-family: Roboto, sans-serif; background: var(--root-background); color: var(--root-color); --root-background: #263238; --root-color: white; --temp-background: #0d47a1; --temp-text: white; --dewpoint-background: #5472d3; --dewpoint-text: white; } body { margin: 0; padding: 0; } body.location { display: flex; flex-flow: column nowrap; width: 100%; height: 100%; } h1 { /* Reset. */ margin: 0; padding: 0; font: inherit; flex: none; background: var(--root-background); color: var(--root-color); padding: 12px 24px; font-size: 24px; display: flex; flex-direction: column; justify-content: center; } h1 a { color: inherit; } h1 span { display: block; } .location p { margin: 0; padding: 0; font: inherit; flex: auto; line-height: 1; } .location.plain p { box-sizing: border-box; flex: 1; position: relative; display: flex; flex-direction: column; align-items: baseline; padding: 24px; } .location.plain p.important .key { display: block; opacity: 75%; font-size: 18px; } .location.plain p.important .value { margin-top: 0; font-size: 150px; display: flex; flex-flow: row nowrap; } .location.plain p.important .value .unit { font-size: 33%; font-weight: bold; opacity: 66%; padding-top: 0.25em; } .location.fancy p.important { position: relative; flex: 1; height: 200px; } .location.fancy p.important canvas { display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; } .location.fancy p.important .key { display: block; position: absolute; top: 24px; left: 24px; margin: -4px; padding: 4px; background-color: inherit; font-size: 18px; opacity: 75%; } .location.fancy p.important .value { display: none; } .location #temp { background: var(--temp-background); color: var(--temp-text); } .location #dewpoint { background: var(--dewpoint-background); color: var(--dewpoint-text); } .location #timestamp { flex: none; background: #263238; color: white; height: 48px; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; } .location #timestamp > span { display: block; } .home a { color: inherit; } .home ul, .home li { list-style: none; margin: 0; padding: 0; } .home li:nth-child(odd) { background: var(--temp-background); color: var(--temp-text); } .home li:nth-child(even) { background: var(--dewpoint-background); color: var(--dewpoint-text); } .home li a { display: block; justify-content: space-between; padding: 15px 24px; font-size: 18px; display: flex; flex-flow: row wrap; } .home li a b { display: block; } .home li a span { display: block; }