From 7a0f5e6b1992b475d6ab9df1ba4f663090e39a8e Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Mon, 17 Jan 2022 22:35:02 +0100 Subject: [PATCH] [simple theme] dynamic border radius in CSS --- searx/static/themes/simple/src/less/search.less | 4 ++-- searx/static/themes/simple/src/less/style-ltr.less | 4 ++-- searx/static/themes/simple/src/less/style-rtl.less | 4 ++-- searx/static/themes/simple/src/less/style.less | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less index 282a0980b..ba5745c79 100644 --- a/searx/static/themes/simple/src/less/search.less +++ b/searx/static/themes/simple/src/less/search.less @@ -133,7 +133,7 @@ .ltr-padding-right(0) !important; .ltr-border-right(none); width: @search-width; - .ltr-rounded-left-corners(); + .ltr-rounded-left-corners(10px); } #q::-ms-clear, @@ -143,7 +143,7 @@ #send_search { .ltr-border-left(none); - .ltr-rounded-right-corners(); + .ltr-rounded-right-corners(10px); &:hover { cursor: pointer; diff --git a/searx/static/themes/simple/src/less/style-ltr.less b/searx/static/themes/simple/src/less/style-ltr.less index c20d65bbf..4810d771a 100644 --- a/searx/static/themes/simple/src/less/style-ltr.less +++ b/searx/static/themes/simple/src/less/style-ltr.less @@ -42,11 +42,11 @@ text-align: right; } -.ltr-rounded-left-corners(@radius: 10px) { +.ltr-rounded-left-corners(@radius) { border-radius: @radius 0 0 @radius; } -.ltr-rounded-right-corners(@radius: 10px) { +.ltr-rounded-right-corners(@radius) { border-radius: 0 @radius @radius 0; } diff --git a/searx/static/themes/simple/src/less/style-rtl.less b/searx/static/themes/simple/src/less/style-rtl.less index 92eda0c10..6d3e9f525 100644 --- a/searx/static/themes/simple/src/less/style-rtl.less +++ b/searx/static/themes/simple/src/less/style-rtl.less @@ -42,11 +42,11 @@ text-align: left; } -.ltr-rounded-left-corners(@radius: 10px) { +.ltr-rounded-left-corners(@radius) { border-radius: 0 @radius @radius 0; } -.ltr-rounded-right-corners(@radius: 10px) { +.ltr-rounded-right-corners(@radius) { border-radius: @radius 0 0 @radius; } diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index babe886e8..657e0d3ac 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -141,7 +141,7 @@ a { article[data-vim-selected] { background: var(--color-result-vim-selected); .ltr-border-left(0.2rem solid var(--color-result-vim-arrow)); - .ltr-rounded-right-corners(); + .ltr-rounded-right-corners(10px); } article.result-images[data-vim-selected] {