summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMrPaulBlack <paul@paulgo.io>2021-11-03 21:58:07 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-04 00:04:57 +0100
commite05bcd431178398e3d374cc719151e4c43b64365 (patch)
treeeb5a4081d341c99c55c4ee6bf22c121a8c819be6 /searx
parent4887c25e7ff45d082f3406abaec7c08ad29479d3 (diff)
downloadsearxng-e05bcd431178398e3d374cc719151e4c43b64365.tar.gz
searxng-e05bcd431178398e3d374cc719151e4c43b64365.zip
[simple theme] result layout suggestions
Diffstat (limited to 'searx')
-rw-r--r--searx/static/themes/simple/src/less/definitions.less2
-rw-r--r--searx/static/themes/simple/src/less/style.less42
2 files changed, 28 insertions, 16 deletions
diff --git a/searx/static/themes/simple/src/less/definitions.less b/searx/static/themes/simple/src/less/definitions.less
index a3f6db9ae..a09735c5e 100644
--- a/searx/static/themes/simple/src/less/definitions.less
+++ b/searx/static/themes/simple/src/less/definitions.less
@@ -93,7 +93,7 @@
--color-toolkit-select-border-hover: #bbb;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-background: #3050ff;
- --color-toolkit-checkbox-onoff-checked-background: #ddd;
+ --color-toolkit-checkbox-onoff-checked-background: #aaa;
--color-toolkit-checkbox-label-background: #fff;
--color-toolkit-checkbox-label-border: #ddd;
--color-toolkit-checkbox-input-border: #3050ff;
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less
index 2a273d49d..2c08c5d31 100644
--- a/searx/static/themes/simple/src/less/style.less
+++ b/searx/static/themes/simple/src/less/style.less
@@ -140,6 +140,16 @@ article.result-images[data-vim-selected] {
}
}
+article[data-vim-selected].category-videos,
+article[data-vim-selected].category-news,
+article[data-vim-selected].category-map,
+article[data-vim-selected].category-music,
+article[data-vim-selected].category-files,
+article[data-vim-selected].category-social {
+ border: 1px solid var(--color-result-vim-arrow);
+ .rounded-corners;
+}
+
.result {
margin: @results-margin 0;
padding: @result-padding;
@@ -237,6 +247,17 @@ article.result-images[data-vim-selected] {
}
}
+.category-videos,
+.category-news,
+.category-map,
+.category-music,
+.category-files,
+.category-social {
+ border: 1px solid var(--color-result-border);
+ margin: 1rem 0;
+ .rounded-corners;
+}
+
.category-social .image {
width: auto !important;
min-width: 48px;
@@ -273,7 +294,7 @@ article.result-images[data-vim-selected] {
padding: 0;
position: relative;
max-height: 200px;
- border: none;
+ border: none !important;
img {
float: inherit;
@@ -666,10 +687,6 @@ article.result-images[data-vim-selected] {
"urls"
"pagination";
}
-
- article[data-vim-selected]::before {
- left: calc(((100% - @results-width) / 2) - 20px);
- }
}
#main_results div#results.only_template_images {
@@ -703,12 +720,7 @@ article.result-images[data-vim-selected] {
@media screen and (max-width: @phone) {
#main_results div#results {
grid-template-columns: 100%;
- margin: 2rem 0 0 0;
- }
-
- article[data-vim-selected]::before {
- display: none;
- content: "";
+ margin: 2rem @results-tablet-offset 0 @results-tablet-offset;
}
#linkto_preferences {
@@ -718,10 +730,6 @@ article.result-images[data-vim-selected] {
right: 0;
}
- #sidebar {
- margin: 0 5px 2px 5px;
- }
-
#results {
margin: 0;
padding: 0;
@@ -731,10 +739,14 @@ article.result-images[data-vim-selected] {
margin: 2rem 1rem 0 1rem !important;
}
+ article[data-vim-selected] {
+ border: 1px solid var(--color-result-vim-arrow);
.rounded-corners;
}
+ .result {
border: 1px solid var(--color-result-border);
+ margin: 1rem 0;
.rounded-corners;
}