From 9fa5b6b70760ff48f999f10078595ef37d1e0f5a Mon Sep 17 00:00:00 2001 From: Christoph Volkert Date: Sun, 12 Jan 2025 23:14:42 +0100 Subject: [PATCH] Backport changes from https://github.com/inyokaproject/inyoka/pull/1379 --- .../jinja2/portal/index.html | 8 ++--- .../static/style/main.less | 30 +++++++++++++++++-- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/inyoka_theme_ubuntuusers/jinja2/portal/index.html b/inyoka_theme_ubuntuusers/jinja2/portal/index.html index be5ade4a..5da9ce1a 100644 --- a/inyoka_theme_ubuntuusers/jinja2/portal/index.html +++ b/inyoka_theme_ubuntuusers/jinja2/portal/index.html @@ -50,11 +50,11 @@

Neuigkeiten rund um Ubuntu, Linux und Open Source {{ feed_button(href('porta

{{ article.subject|e }}

- {%- if article.pub_datetime == article.updated %} - {{ article.updated|datetime }} - {%- else %} + {%- if article.is_updated %} {{ article.updated|datetime }} + }} / {% trans %}Created:{% endtrans %} {{ article.publication_datetime|datetime }}">{{ article.updated|datetime }} + {%- else %} + {{ article.publication_datetime|datetime }} {%- endif %} {%- if article.comments_enabled %} diff --git a/inyoka_theme_ubuntuusers/static/style/main.less b/inyoka_theme_ubuntuusers/static/style/main.less index e6ec7b90..bee9faff 100644 --- a/inyoka_theme_ubuntuusers/static/style/main.less +++ b/inyoka_theme_ubuntuusers/static/style/main.less @@ -130,6 +130,10 @@ html:not(.reduce-motion) { } } +:root { + --paragraph-margin: 0.7em 0; +} + body { font-family: @font-content; color: black; @@ -182,6 +186,7 @@ input[type="password"], input[type="search"], input[type="tel"], input[type="text"], +input[type="time"], input[type="url"] { border: none; border-bottom: thin solid #AAA; @@ -198,6 +203,13 @@ input[type="url"] { border-bottom: thin solid @input-focus-color; } } + +input[type="date"] + input[type="time"] { + /* for SplitDatetimeWidgets prevent that date and time fields are in the same line. + Instead force a line break for the time input. */ + display: block; +} + /* "buttons" */ input[type="submit"], input[type="button"], input[type="reset"] { @button-shadow-height: 0.3em; @@ -255,6 +267,20 @@ input[type="submit"], input[type="button"], input[type="reset"] { margin-left: 0.5em; } } + +form:not(.-no-bold-label) label { + font-weight: bold; +} +legend { + font-weight: bold; +} +fieldset { + border: none; +} +main form > div { + margin: var(--paragraph-margin); +} + textarea { box-sizing: border-box; border: thin solid #AAA; @@ -535,7 +561,7 @@ span.highlight { color: #641A1A; font-weight: bold; } -.note { +.note, .helptext { font-size: 0.9em; padding-left: 1.0em; color: #444; @@ -707,7 +733,7 @@ table.syntaxtable { margin: 0 @body-innerspace; p { - margin: 0.7em 0.0em; + margin: var(--paragraph-margin); @supports(hyphens: auto) { hyphens: auto;