diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 11d2ef58d..dd8e8a596 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -302,6 +302,49 @@ article[data-vim-selected].category-social { } } +.result-paper { + .attributes { + display: table; + border-spacing: 0.125rem; + + div { + display: table-row; + + span { + font-size: 0.9rem; + margin-top: 0.25rem; + display: table-cell; + + time { + font-size: 0.9rem; + } + } + + span:first-child { + color: var(--color-base-font); + min-width: 10rem; + } + + span:nth-child(2) { + color: var(--color-result-publishdate-font); + } + } + } + + .content { + margin-top: 0.25rem; + } + + .comments { + font-size: 0.9rem; + margin: 0.25rem 0 0 0; + padding: 0; + word-wrap: break-word; + line-height: 1.24; + font-style: italic; + } +} + .template_group_images { display: flex; flex-wrap: wrap; @@ -955,6 +998,28 @@ article[data-vim-selected].category-social { border: none !important; background-color: var(--color-sidebar-background); } + + .result-paper { + .attributes { + display: block; + + div { + display: block; + + span { + display: inline; + } + + span:first-child { + font-weight: bold; + } + + span:nth-child(2) { + .ltr-margin-left(0.5rem); + } + } + } + } } /* diff --git a/searx/templates/simple/result_templates/paper.html b/searx/templates/simple/result_templates/paper.html new file mode 100644 index 000000000..3ede1b250 --- /dev/null +++ b/searx/templates/simple/result_templates/paper.html @@ -0,0 +1,44 @@ +{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context %} + +{{ result_header(result, favicons, image_proxify) -}} +
{{- result.content | safe -}}
{%- endif -%} +{%- if result.comments -%}{{- result.comments -}}
{%- endif -%} ++ {%- if result.pdf_url -%} + {{ _('PDF') }} + {%- endif -%} + {%- if result.html_url -%} + {{ _('HTML') }} + {%- endif -%} + {%- if result.doi %} + Altmetric + {% endif -%} +
+{{- result_sub_footer(result, proxify) -}} +{{- result_footer(result) }}