summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/style.less
diff options
context:
space:
mode:
authorPaul Braeuning <paul@paulgo.io>2022-06-05 23:11:44 +0200
committerGitHub <noreply@github.com>2022-06-05 23:11:44 +0200
commitd633c1c6f1cff35ba740e97a0796bb8b0f315f3f (patch)
tree8cb0e0cf43fb7b28038f7275d5888dbbc8053841 /searx/static/themes/simple/src/less/style.less
parent1b4180df66e5e656e03f3b094fda3ebb322fd22a (diff)
parent06217ef184574c8171205fc681462d9a685fb5bb (diff)
Merge pull request #1286 from searxng/revert-1281-style-center
Revert "Theme: add a preference to center the results"
Diffstat (limited to 'searx/static/themes/simple/src/less/style.less')
-rw-r--r--searx/static/themes/simple/src/less/style.less159
1 files changed, 77 insertions, 82 deletions
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less
index 6777cbadc..45c6eb204 100644
--- a/searx/static/themes/simple/src/less/style.less
+++ b/searx/static/themes/simple/src/less/style.less
@@ -29,9 +29,6 @@
// Search-Field
@import "search.less";
-// to center the results
-@import "style-center.less";
-
// ion-icon
.ion-icon {
display: inline-block;
@@ -463,7 +460,7 @@ article[data-vim-selected].category-social {
margin-bottom: 0;
.ltr-margin-left(@results-offset);
display: grid;
- grid-template-columns: @results-width @results-sidebar-width;
+ grid-template-columns: @results-width 25rem;
grid-template-rows: min-content min-content 1fr min-content;
gap: 0 @results-gap;
grid-template-areas:
@@ -702,105 +699,103 @@ article[data-vim-selected].category-social {
}
@media screen and (max-width: @tablet) {
- .center-aligment-no {
- .page_with_header {
- margin: 2rem 0.5rem;
- width: auto;
- }
+ .page_with_header {
+ margin: 2rem 0.5rem;
+ width: auto;
+ }
- #infoboxes {
- position: inherit;
- max-width: inherit;
-
- .infobox {
- clear: both;
-
- img {
- .ltr-float-left();
- max-width: 10em;
- margin-top: 0.5em;
- .ltr-margin-right(0.5em);
- margin-bottom: 0.5em;
- .ltr-margin-left(0);
- }
- }
- }
+ #infoboxes {
+ position: inherit;
+ max-width: inherit;
- #sidebar {
- margin: 0 @results-tablet-offset @results-margin @results-tablet-offset;
- padding: 0;
- float: none;
- border: none;
- width: auto;
+ .infobox {
+ clear: both;
- input {
- border: 0;
+ img {
+ .ltr-float-left();
+ max-width: 10em;
+ margin-top: 0.5em;
+ .ltr-margin-right(0.5em);
+ margin-bottom: 0.5em;
+ .ltr-margin-left(0);
}
}
+ }
- #apis {
- display: none;
- }
+ #sidebar {
+ margin: 0 @results-tablet-offset @results-margin @results-tablet-offset;
+ padding: 0;
+ float: none;
+ border: none;
+ width: auto;
- #search_url {
- display: none;
+ input {
+ border: 0;
}
+ }
- .result {
- .thumbnail {
- max-width: 98%;
- }
+ #apis {
+ display: none;
+ }
- .url {
- span.url {
- display: block;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- width: 100%;
- }
- }
+ #search_url {
+ display: none;
+ }
- .engines {
- .ltr-float-right();
- padding: 0 0 3px 0;
+ .result {
+ .thumbnail {
+ max-width: 98%;
+ }
+
+ .url {
+ span.url {
+ display: block;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ width: 100%;
}
}
- .result-images {
- border-bottom: none !important;
+ .engines {
+ .ltr-float-right();
+ padding: 0 0 3px 0;
}
+ }
- .image_result {
- max-width: 98%;
+ .result-images {
+ border-bottom: none !important;
+ }
- img {
- max-width: 98%;
- }
- }
+ .image_result {
+ max-width: 98%;
- #backToTop {
- display: none;
+ img {
+ max-width: 98%;
}
+ }
- #pagination {
- margin: 2rem 0 0 0 !important;
- }
+ #backToTop {
+ display: none;
+ }
- #main_results div#results {
- margin: 1rem auto 0 auto;
- justify-content: center;
- display: grid;
- grid-template-columns: @results-width;
- grid-template-rows: min-content min-content min-content 1fr min-content min-content;
- gap: 0;
- grid-template-areas:
- "corrections"
- "answers"
- "sidebar"
- "urls"
- "pagination";
- }
+ #pagination {
+ margin: 2rem 0 0 0 !important;
+ }
+
+ #main_results div#results {
+ margin: 1rem auto 0 auto;
+ justify-content: center;
+ display: grid;
+ grid-template-columns: @results-width;
+ grid-template-rows: min-content min-content min-content 1fr min-content min-content;
+ gap: 0;
+ grid-template-areas:
+ "corrections"
+ "answers"
+ "sidebar"
+ "urls"
+ "pagination";
}
}