Mercurial > personal > weather-server
view weather_server/static/style.css @ 24:20c8ec56e447
logfile: Pull logfile thread out of Logger.
This enables automatic garbage collection of Logger instances,
since a running thread no longer has a reference to a Logger's self.
It separates exclusive management of logfile state into the
_writer_thread function, which now opens the file and writes it until
it is told to stop by receiving the poison pill.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 10 Nov 2019 23:07:11 -0500 |
parents | 47987502bf4c |
children | 7def5611895b |
line wrap: on
line source
html { margin: 0; padding: 0; height: 100%; width: 100%; font-family: Roboto, sans-serif; --temp-background: #0d47a1; --temp-text: white; --dewpoint-background: #5472d3; --dewpoint-text: white; } body { margin: 0; padding: 0; display: flex; flex-flow: column nowrap; width: 100%; height: 100%; } h1 { /* Reset. */ margin: 0; padding: 0; font: inherit; flex: none; background: #263238; color: white; padding: 12px 24px; font-size: 24px; display: flex; flex-direction: column; justify-content: center; } h1 span { display: block; } p { margin: 0; padding: 0; font: inherit; flex: auto; line-height: 1; } .plain p { box-sizing: border-box; flex: 1; position: relative; display: flex; flex-direction: column; align-items: baseline; padding: 24px; } .plain p.important .key { display: block; opacity: 75%; font-size: 18px; } .plain p.important .value { margin-top: 0; font-size: 150px; display: flex; flex-flow: row nowrap; } .plain p.important .value .unit { font-size: 33%; font-weight: bold; opacity: 66%; padding-top: 0.25em; } .fancy p.important { position: relative; flex: 1; height: 200px; } .fancy p.important canvas { display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; } .fancy p.important .key { display: block; position: absolute; top: 24px; left: 24px; margin: -4px; padding: 4px; background-color: inherit; font-size: 18px; opacity: 75%; } .fancy p.important .value { display: none; } #temp { background: var(--temp-background); color: var(--temp-text); } #dewpoint { background: var(--dewpoint-background); color: var(--dewpoint-text); } #timestamp { flex: none; background: #263238; color: white; height: 48px; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; } #timestamp > span { display: block; }