summaryrefslogtreecommitdiff
path: root/client/simple/src/less
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2025-09-10 16:10:42 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2025-09-20 10:56:46 +0200
commit7eedd44f5f9965cf2fbff14d276f96944b5c6a98 (patch)
treeaf9e32c177fb8de237b605b1fc4160157707c862 /client/simple/src/less
parent57ef342ad11eae84629b9c1e889d2b9aa212efeb (diff)
[mod] typification of SearXNG: add new result type Paper
This patch adds a new result type: Paper - Python class: searx/result_types/paper.py - Jinja template: searx/templates/simple/result_templates/paper.html - CSS (less) client/simple/src/less/result_types/paper.less Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'client/simple/src/less')
-rw-r--r--client/simple/src/less/result_types/paper.less72
-rw-r--r--client/simple/src/less/style.less10
2 files changed, 74 insertions, 8 deletions
diff --git a/client/simple/src/less/result_types/paper.less b/client/simple/src/less/result_types/paper.less
new file mode 100644
index 000000000..0a83ef224
--- /dev/null
+++ b/client/simple/src/less/result_types/paper.less
@@ -0,0 +1,72 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+/*
+ Layout of the Paper result class
+*/
+
+.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;
+ }
+}
+
+@media screen and (max-width: @phone) {
+ .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/client/simple/src/less/style.less b/client/simple/src/less/style.less
index 3cac7a265..258c45a0e 100644
--- a/client/simple/src/less/style.less
+++ b/client/simple/src/less/style.less
@@ -309,11 +309,11 @@ article[data-vim-selected].category-social {
}
}
-.result-paper,
.result-packages {
.attributes {
display: table;
border-spacing: 0.125rem;
+ margin-top: 0.3rem;
div {
display: table-row;
@@ -353,12 +353,6 @@ article[data-vim-selected].category-social {
}
}
-.result-packages {
- .attributes {
- margin-top: 0.3rem;
- }
-}
-
.template_group_images {
display: flex;
flex-wrap: wrap;
@@ -1118,7 +1112,6 @@ summary.title {
display: none;
}
- .result-paper,
.result-packages {
.attributes {
display: block;
@@ -1164,3 +1157,4 @@ pre code {
// import layouts of the Result types
@import "result_types/keyvalue.less";
+@import "result_types/paper.less";