From e8bd366e9056774ef652913c7fdb7097bf9c51f8 Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Wed, 19 Apr 2023 14:28:07 +0530 Subject: [PATCH 1/2] fix fonts --- manage | 2 +- searx/static/themes/etheme/css/etheme.css | 8 ++++---- searx/static/themes/etheme/css/etheme.min.css | Bin 24243 -> 24252 bytes .../themes/etheme/less/etheme/base.less | 3 --- .../themes/etheme/less/etheme/defs.less | 2 +- .../themes/etheme/less/etheme/navbar.less | 4 +++- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/manage b/manage index c88a71684..a93d32b1a 100755 --- a/manage +++ b/manage @@ -155,7 +155,7 @@ webapp.run() { )& ( sleep 3 - xdg-open http://127.0.0.1:8888/ + xdg-open http://127.0.0.1:8080/ )& SEARXNG_DEBUG=1 pyenv.cmd python -m searx.webapp } diff --git a/searx/static/themes/etheme/css/etheme.css b/searx/static/themes/etheme/css/etheme.css index 19a99d4a2..9290f286a 100644 --- a/searx/static/themes/etheme/css/etheme.css +++ b/searx/static/themes/etheme/css/etheme.css @@ -32,7 +32,7 @@ --dropdown-bg-color: #eeeeee; --link-color: #007fff; --color-accent--dark: #2344a2; - --nav-text-color: #868686; + --nav-text-color: #7B7B7B; --nav-background-color: white; --color-main-text: #60686f; --color-primary: #1f6ed7; @@ -373,9 +373,6 @@ body { body.lock { overflow: hidden; } -body * { - font-family: sans-serif, "Cantarell", 'Roboto', Helvetica, Arial; -} input, select { box-shadow: none !important; @@ -510,6 +507,7 @@ nav { display: flex; align-items: center; justify-content: space-between; + font-family: 'Helvetica'; text-transform: capitalize; line-height: 20px; margin-bottom: 24px; @@ -533,6 +531,7 @@ nav .etheme_links > a { right: 0; top: 0; flex-direction: column; + font-family: 'Helvetica'; height: 100%; background-color: var(--nav-background-color); z-index: 1000; @@ -594,6 +593,7 @@ nav .etheme_links > a { } .nav_dark-mode .nav_dark-mode--label label { cursor: pointer; + color: var(--nav-text-color); } .switch { position: relative; diff --git a/searx/static/themes/etheme/css/etheme.min.css b/searx/static/themes/etheme/css/etheme.min.css index 6056a9512643ed0ff0f45b51e930ed53138eed6d..ac6cc4541ec8c6abe358cdda2819160846138e39 100644 GIT binary patch delta 103 zcmdnImvPTt#trY7dCZ+a&{|hFFR^U043p$$VU|lWn^hDY*hSOw^GbBn5_2!^?rX}WP=2Ti0 zC*~FF7N-_vrs+5*=9MHCrRL=51m!2?m*nesq~?^RmSiR;>Nplh4#?Aej>MWZt>Ao@m0JTUe&j0`b diff --git a/searx/static/themes/etheme/less/etheme/base.less b/searx/static/themes/etheme/less/etheme/base.less index ad833adab..053366d66 100644 --- a/searx/static/themes/etheme/less/etheme/base.less +++ b/searx/static/themes/etheme/less/etheme/base.less @@ -16,9 +16,6 @@ body { &.lock { overflow: hidden; } - * { - font-family: sans-serif, "Cantarell", 'Roboto', Helvetica, Arial; - } } input, select { diff --git a/searx/static/themes/etheme/less/etheme/defs.less b/searx/static/themes/etheme/less/etheme/defs.less index 1dbe937cf..6a297e32e 100644 --- a/searx/static/themes/etheme/less/etheme/defs.less +++ b/searx/static/themes/etheme/less/etheme/defs.less @@ -34,7 +34,7 @@ --dropdown-bg-color: #eeeeee; --link-color: #007fff; --color-accent--dark: #2344a2; - --nav-text-color: #868686; + --nav-text-color: #7B7B7B; --nav-background-color: white; // For backwards consistency only diff --git a/searx/static/themes/etheme/less/etheme/navbar.less b/searx/static/themes/etheme/less/etheme/navbar.less index b570fb646..89aa30581 100644 --- a/searx/static/themes/etheme/less/etheme/navbar.less +++ b/searx/static/themes/etheme/less/etheme/navbar.less @@ -5,6 +5,7 @@ nav { display: flex; align-items: center; justify-content: space-between; + font-family: 'Helvetica'; text-transform: capitalize; line-height: 20px; @@ -33,6 +34,7 @@ nav { right: 0; top: 0; flex-direction: column; + font-family: 'Helvetica'; height: 100%; background-color: var(--nav-background-color); z-index: 1000; @@ -82,9 +84,9 @@ nav { color: var(--nav-text-color); .nav_dark-mode--label { margin-right: 0.5rem; - label { cursor: pointer; + color: var(--nav-text-color); } } } -- GitLab From fc4888c8b185129eb5dfdb9af50f4d3334e54aba Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Wed, 19 Apr 2023 15:54:10 +0530 Subject: [PATCH 2/2] add alternative fonts --- searx/static/themes/etheme/css/etheme.css | 4 ++-- searx/static/themes/etheme/css/etheme.min.css | Bin 24252 -> 24320 bytes .../themes/etheme/less/etheme/navbar.less | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/static/themes/etheme/css/etheme.css b/searx/static/themes/etheme/css/etheme.css index 9290f286a..210ebffc4 100644 --- a/searx/static/themes/etheme/css/etheme.css +++ b/searx/static/themes/etheme/css/etheme.css @@ -507,7 +507,7 @@ nav { display: flex; align-items: center; justify-content: space-between; - font-family: 'Helvetica'; + font-family: 'Helvetica', 'Roboto', 'Cantarell', Arial, sans-serif; text-transform: capitalize; line-height: 20px; margin-bottom: 24px; @@ -531,7 +531,7 @@ nav .etheme_links > a { right: 0; top: 0; flex-direction: column; - font-family: 'Helvetica'; + font-family: 'Helvetica', 'Roboto', 'Cantarell', Arial, sans-serif; height: 100%; background-color: var(--nav-background-color); z-index: 1000; diff --git a/searx/static/themes/etheme/css/etheme.min.css b/searx/static/themes/etheme/css/etheme.min.css index ac6cc4541ec8c6abe358cdda2819160846138e39..ac5f081af75176b7e3d34c04025a2422cb974976 100644 GIT binary patch delta 94 zcmdn9m$6|V;|41YWu2h>r2LY69p}WnlEk9aoE#m;qRhk`o#Mp2V%_4@qRcew$rCN5 SHiv3hGAa>Pytz+P&lCV?FCsVq delta 36 scmZqJ$GB%N;|42@%`qAwj6BvEshQ~+C02$82C9=Unn`T_rpaXr0QM^k%K!iX diff --git a/searx/static/themes/etheme/less/etheme/navbar.less b/searx/static/themes/etheme/less/etheme/navbar.less index 89aa30581..7d3e07002 100644 --- a/searx/static/themes/etheme/less/etheme/navbar.less +++ b/searx/static/themes/etheme/less/etheme/navbar.less @@ -5,7 +5,7 @@ nav { display: flex; align-items: center; justify-content: space-between; - font-family: 'Helvetica'; + font-family: 'Helvetica', 'Roboto', 'Cantarell', Arial, sans-serif; text-transform: capitalize; line-height: 20px; @@ -34,7 +34,7 @@ nav { right: 0; top: 0; flex-direction: column; - font-family: 'Helvetica'; + font-family: 'Helvetica', 'Roboto', 'Cantarell', Arial, sans-serif; height: 100%; background-color: var(--nav-background-color); z-index: 1000; -- GitLab