From f5e8cfade200fb7b7b2aace255d90c72dcc5bc37 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 13 Feb 2022 14:10:49 +0100 Subject: [PATCH] [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 --- searx/static/themes/simple/src/less/style.less | 8 ++++++++ 1 file changed, 8 insertions(+) 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);