Skip to content

Commit

Permalink
Merge pull request #126 from squalx/124_date_published
Browse files Browse the repository at this point in the history
#124 Date published in results are too large when displayed
  • Loading branch information
m-i-l authored Sep 10, 2023
2 parents 37a782d + 6f82cd8 commit ddf8111
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
<div class="search-result sms-b-72">
<h2 class="sms-h2 sms-b-8">
{% if result['contains_adverts'] %}<img src="/static/images/containsadverts44x24.gif" alt="Page contains adverts" class="float-left" style="margin-right: 4px">{% endif %}
{% if result['published_date'] %}<span id="result-published-date">{{ result['published_date'] }}</span>:{% endif %}
<a href="{{ result['url'] }}" class="result-title">{{ result['short_title'] }}</a>
<a href="{{ result['url'] }}" class="result-title">
{{ result['short_title'] }}
</a>
</h2>
{% if result['published_date'] %}<p id="result-published-date">{{ result['published_date'] }}</p>{% endif %}
<p class="sms-p3"><a href="{{ result['url'] }}" class="result-link">{{ result['id'] }}</a></p>
{% if result['highlight'] %}
<p id="result-hightlight" class="sms-p1">
Expand Down
9 changes: 9 additions & 0 deletions src/web/content/static/css/letterpress.css
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,15 @@ h2.sms-h2 a:visited
display: flex;
}

#result-published-date {
font-size:var(--med-font-size);
font-weight: normal;
font-style: italic;
color: var(--semi-dark-gray);
margin-top: -0.45rem;
margin-bottom: 0.7rem;
}

.page-item.active {
border: 2px solid var(--dark-gray);
border-radius: 50%;
Expand Down

0 comments on commit ddf8111

Please sign in to comment.