Skip to content

Commit

Permalink
Backport changes from inyokaproject/inyoka#1379
Browse files Browse the repository at this point in the history
  • Loading branch information
chris34 committed Jan 19, 2025
1 parent 8158f9e commit 9fa5b6b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
8 changes: 4 additions & 4 deletions inyoka_theme_ubuntuusers/jinja2/portal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ <h3>Neuigkeiten rund um Ubuntu, Linux und Open Source {{ feed_button(href('porta
<h4><a href="{{ article|url }}">{{ article.subject|e }}</a></h4>

<div class="meta">
{%- if article.pub_datetime == article.updated %}
<a href="{{ article|url }}">{{ article.updated|datetime }}</a>
{%- else %}
{%- if article.is_updated %}
<a href="{{ article|url }}" title="{% trans %}Last update:{% endtrans %} {{ article.updated|datetime
}} / {% trans %}Created:{% endtrans %} {{ article.pub_datetime|datetime }}">{{ article.updated|datetime }}</a>
}} / {% trans %}Created:{% endtrans %} {{ article.publication_datetime|datetime }}">{{ article.updated|datetime }}</a>
{%- else %}
<a href="{{ article|url }}">{{ article.publication_datetime|datetime }}</a>
{%- endif %}
{%- if article.comments_enabled %}
<a href="{{ article|url('comments') }}" class="comments">
Expand Down
30 changes: 28 additions & 2 deletions inyoka_theme_ubuntuusers/static/style/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ html:not(.reduce-motion) {
}
}

:root {
--paragraph-margin: 0.7em 0;
}

body {
font-family: @font-content;
color: black;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -535,7 +561,7 @@ span.highlight {
color: #641A1A;
font-weight: bold;
}
.note {
.note, .helptext {
font-size: 0.9em;
padding-left: 1.0em;
color: #444;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9fa5b6b

Please sign in to comment.