summaryrefslogtreecommitdiff
path: root/searx/static/themes
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-02-13 14:10:49 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-02-18 19:00:02 +0100
commitf5e8cfade200fb7b7b2aace255d90c72dcc5bc37 (patch)
treee06360ebb5d1dbe2c06632b57bab48b2a9e0c89f /searx/static/themes
parent50ee7bcac6aa51f39668f4532f579e3c26510b7b (diff)
downloadsearxng-f5e8cfade200fb7b7b2aace255d90c72dcc5bc37.tar.gz
searxng-f5e8cfade200fb7b7b2aace255d90c72dcc5bc37.zip
[fix] simple theme: support browsers which do not have aspect-ratio
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#discussion_r805187303 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes')
-rw-r--r--searx/static/themes/simple/src/less/style.less8
1 files changed, 8 insertions, 0 deletions
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less
index 43f5e8994..3a3777587 100644
--- a/searx/static/themes/simple/src/less/style.less
+++ b/searx/static/themes/simple/src/less/style.less
@@ -316,6 +316,14 @@ article[data-vim-selected].category-social {
padding: 10px 0 0 0;
}
+@supports not (aspect-ratio: 1 / 1) {
+ // support older browsers which do not have aspect-ratio
+ // https://caniuse.com/?search=aspect-ratio
+ .result-videos .embedded-video iframe {
+ height: calc(@results-width * 9 / 16);
+ }
+}
+
.engines {
.ltr-float-right();
color: var(--color-result-engines-font);