From ff206e967993bd2e7aa6597b03d0affee20948b9 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 29 May 2025 11:38:34 +0200 Subject: [mod] weather results: add types, i18n/l10n, symbols & unit conversions The types necessary for weather information such as GeoLocation, DateTime, Temperature,Pressure, WindSpeed, RelativeHumidity, Compass (wind direction) and symbols for the weather have been implemented. There are unit conversions and translations for weather property labels. Signed-off-by: Markus Heiser --- client/simple/src/less/style.less | 1 + client/simple/src/less/weather.less | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 client/simple/src/less/weather.less (limited to 'client/simple/src') diff --git a/client/simple/src/less/style.less b/client/simple/src/less/style.less index 4725f7db8..df7710b83 100644 --- a/client/simple/src/less/style.less +++ b/client/simple/src/less/style.less @@ -19,6 +19,7 @@ @import "new_issue.less"; @import "stats.less"; @import "result_templates.less"; +@import "weather.less"; // for index.html template @import "index.less"; diff --git a/client/simple/src/less/weather.less b/client/simple/src/less/weather.less new file mode 100644 index 000000000..b77747a96 --- /dev/null +++ b/client/simple/src/less/weather.less @@ -0,0 +1,38 @@ +#answers .weather { + summary { + display: block; + list-style: none; + } + + div.summary { + margin: 0; + padding: 0.5rem 1rem; + background-color: var(--color-header-background); + .rounded-corners-tiny; + } + + table { + font-size: 0.9rem; + table-layout: fixed; + margin-top: 0.5rem; + margin-bottom: 0.5rem; + } + + td { + padding: 0; + } + + img.symbol { + width: 5rem; + margin: auto; + display: block; + } + + .title { + // background-color: var(--color-result-keyvalue-even); + } + + .measured { + // background-color: var(--color-result-keyvalue-odd); + } +} -- cgit v1.2.3