Alexandre Flament
c4caa52989
fix PR #535
...
Use the "empty_element" CSS class.
2021-11-23 18:59:50 +01:00
Markus Heiser
f57a9f425d
[simple template] format default string 'italic'
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-23 15:28:08 +01:00
mrpaulblack
047d0ac6d6
[simple template] return a default string if there is no description
2021-11-23 14:13:36 +01:00
mrpaulblack
f3aff26086
[simple theme] rework select; add safesearch to search and replace / with › in article url
...
* rework selection UI in pref (fix based on: 78643e9f43
)
* moved search filters underneath categories
* cut params from url and replace / with ›
* make h3 and url in article bigger
* add safe search select to search filter (this will not override settings and only be valid while on result page in a session)
* make search form button not overlap each other when js is disabled
* 1rem padding around preview image and thumbnail in default article template
2021-11-21 21:38:00 +01:00
Alexandre Flament
ec5a82fccd
[enh] simple theme: add "simple-style" preferences
2021-11-19 16:45:50 +01:00
Markus Heiser
3c05530518
[build] /static
2021-11-15 14:54:32 +01:00
Alexandre Flament
dfbbc3b471
[fix] simple theme: /preferences: add tokens field
...
include changes to display input text field in the preferences
2021-11-13 17:12:28 +01:00
Markus Heiser
a364e54859
[fix] delete trailing whitespace
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-13 15:40:00 +01:00
MrPaulBlack
566dfe3330
[simple theme] update to ion icons 5 and drop webfont
...
* update from ionicons-npm to ionicons ver.5
* drop the webfont built by grunt for icons
* built icons.html template for inlining icons with jinja2 into html
* update icon to use mostly the outline version
* add icons to categories and do not display them on mobile to save space
* remove all legacy ion icon font files from simple theme
* icons.html is added in this commit since make statc.build.restore requires git to know the file already
* cleanup error-dialog
2021-11-13 10:42:07 +01:00
Markus Heiser
9bf53ab974
[build] /static
2021-11-13 09:06:33 +01:00
Markus Heiser
ee67a65180
[simple theme] replace old searx logo by searxng-wordmark.min.svg
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/473#issuecomment-962476683
Suggested-by: @MrPaulBlack https://github.com/searxng/searxng/pull/473#issuecomment-962579826
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-13 09:05:20 +01:00
Markus Heiser
bf52353a5c
[enh] minify searxng-wordmark.svg (HTMLMinifier)
...
Command::
./node_modules/.bin/html-minifier \
--remove-comments \
--collapse-whitespace \
src/svg/searxng-wordmark.svg \
-o ../../../templates/__common__/searxng-wordmark.min.svg
- html-minifier: https://github.com/kangax/html-minifier
- onilne: https://kangax.github.io/html-minifier
- grunt: https://www.npmjs.com/package/grunt-contrib-htmlmin
- grunt-contrib-htmlmin: https://github.com/gruntjs/grunt-contrib-htmlmin
- npm: https://www.npmjs.com/package/html-minifier
To test, rebuild your node environment::
make node.env
Alternatives:
- pretty-data: https://github.com/vkiryukhin/pretty-data
- grunt: https://www.npmjs.com/package/grunt-xmlmin
- grunt-xmlming: https://github.com/dtrunk90/grunt-xmlmin
- npm: https://www.npmjs.com/package/grunt-xmlmin
- minify-xml: https://github.com/kristian/minify-xml
- no grunt package available
- npm: https://www.npmjs.com/package/minify-xml
src/svg/searxng-wordmark.svg':
'../../../templates/__common__/searxng-wordmark.min.svg'
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-13 09:05:20 +01:00
MrPaulBlack
a80b5dc110
[fix] scaling of result page on small screens by @ZetaTom
...
* thanks to https://github.com/ZetaTom for the fix!
* set the width of the input#q element to 100% of the 1fr space of the grid layout
* change the viewport meta tag to th recommended value (see: https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag#viewport_basics )
* add a new @ultra-small-phone width of 20rem; when a device is smaller than that the search logo does not get displayed on the result page anymore
2021-11-11 22:26:26 +01:00
Alexandre Flament
d1c09c84e2
[fix] simple theme: disable hotkeys when they are not enabled in the preferences
2021-11-05 12:42:44 +01:00
Alexandre Flament
3167d645e8
[fix] simple theme: fix open in a new tab preference
2021-11-05 09:36:19 +01:00
Alexandre Flament
0650e73b12
[mod] simple theme: SearXNG logo
2021-10-29 20:24:04 +02:00
Alexandre Flament
fd374d6322
[enh] simple theme: image detail
...
When an image is selected, the detail with the full size image is displayed
on the right side of the screen (or full screen on tablet and phone).
When Javascript is disabled, the thumbnail is a linked to the full size image,
as it was before.
When the image proxy is enabled, the full size image is also proxied,
in consequence this commit increases the bandwidth usage of instances.
The detail can be closed by the close button or the Esc key.
It is possible to go to the next and previous images using the j and k keys
or the button on the top right of the screen.
2021-10-28 08:28:21 +02:00
MrPaulBlack
1723726361
[simple theme] make url clickable and cleanup result article header
...
* url in article head is clickable
* url is bigger now 0.96em font
* url is now left floating on tablet and phone
* there is a 8px top and bottom margin on h3 result heading
2021-10-27 06:17:37 +00:00
MrPaulBlack
bcc313bcf8
[simple theme] add logo to search form on result page
...
* rework search form as grid layout
* remove various paddings and margins
* add logo and link to index to search form
* make categories bigger on phone
2021-10-27 05:47:25 +00:00
Markus Heiser
9730371199
[fix] typos reported from weblate translators
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-10-15 19:20:11 +00:00
Alexandre Flament
988910d451
[fix] templates: lang attribute of html uses hyphen
...
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-lang
https://www.w3.org/TR/REC-xml/#sec-lang-tag
2021-10-12 21:06:20 +02:00
MrPaulBlack
09324f3492
[template] move result url to top of article
2021-10-09 16:00:56 +02:00
Alexandre Flament
e39a03cc61
Merge pull request #367 from dalf/searxng-github
...
SearXNG: .github, searxng-docker
2021-10-02 07:57:49 +02:00
Alexandre Flament
74b0830362
SearXNG: simple theme
2021-10-01 18:06:55 +02:00
Alexandre Flament
499c7b3cce
SearXNG: .github, searxng-docker
2021-10-01 09:48:53 +02:00
Alexandre Flament
df06dddc04
SearXNG: oscar theme
2021-09-30 18:50:21 +02:00
Alexandre Flament
2f1384f198
[enh] themes: display the engine descriptions
2021-09-24 20:38:05 +02:00
MrPaulBlack
3017227c14
[preferences] remove checkbox class from query section
2021-09-24 19:14:35 +02:00
MrPaulBlack
d24bcbb6f0
[preferences] reorder tabs in simple to match oscar theme
2021-09-24 16:21:43 +02:00
MrPaulBlack
45eb2b5637
[preferences] cleanup whitespaces
2021-09-24 16:15:26 +02:00
MrPaulBlack
2d26ace265
[preferences] add special queries tab to preferences
2021-09-24 16:04:10 +02:00
MrPaulBlack
575483ad2a
[theme] add newline at the end of the file
2021-09-21 00:12:39 +02:00
MrPaulBlack
880fe67172
[theme] remove categories, language and time range from index
2021-09-21 00:10:12 +02:00
MrPaulBlack
644ccf16be
[theme] make engine stats clickable
2021-09-12 10:52:15 +02:00
MrPaulBlack
48d4296caa
[theme] link to engine stats in footer
2021-09-12 10:37:21 +02:00
Alexandre Flament
70c9bb6f2c
[fix] remove references to transifex
2021-09-09 21:29:55 +02:00
Markus Heiser
0240ca9567
[fix] oscar template - merge the two class attributes into one
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703337237
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 16:46:49 +02:00
Markus Heiser
bd830f7449
[fix] simple theme - preferences: fix tooltip overflow
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703370358
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 16:46:49 +02:00
Markus Heiser
9068a72c6a
[fix] oscar theme - preferences: rename col-checkbox/col-stat
...
[1] https://github.com/searxng/searxng/pull/295#discussion_r703318053
[2] https://github.com/searxng/searxng/pull/295#discussion_r703337237
Suggested-by: @dalf [1] [2]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 12:26:07 +02:00
Markus Heiser
222031e975
[fix] make oscar theme more CSP compliant - col-checkbox
...
Add col-checkbox in::
searx/static/themes/oscar/src/less/preferences.less
Replaced style in file::
searx/templates/oscar/preferences.html
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 08:24:48 +02:00
Markus Heiser
9d106ae972
[fix] make oscar theme more CSP compliant - default-image-style
...
Add default-image-style in::
searx/static/themes/oscar/src/less/result_templates.less
Replaced style= in files::
./oscar/result_templates/default.html:19: <img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
./oscar/result_templates/files.html:24:<img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 08:20:30 +02:00
Markus Heiser
e564cef0fe
[fix] make /preferences more CSP compliant - simple & oscar theme
...
In simple & oscar theme remove ``style=`` properties which violates CSP but seem
not to have a magnification in GUI (UX).
Fixed files::
./oscar/preferences.html:25:<td class="{{ label }}" style="padding: 2px">{{- "" -}}
./simple/preferences.html:39:<td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}}
./simple/preferences.html:77: <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability">
./simple/preferences.html:258: <p class="text-muted" style="margin:20px 0;">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 08:20:30 +02:00
Markus Heiser
ad528c706e
[fix] make result template map more CSP compliant - simple & oscar
...
Add osm-map-box in::
searx/static/themes/__common__/less/result_templates.less
Replaced sty= in files::
./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06 11:08:50 +02:00
Markus Heiser
48c806954e
[fix] make /preferences more CSP compliant - simple & oscar theme
...
in simple & oscar theme replace bar-graph's *styles* by CSP compliant
implementation in::
searx/static/themes/__common__/less/stats.less
Fixed files::
./oscar/preferences.html:29: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
./oscar/preferences.html:30: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
./oscar/preferences.html:31: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
./simple/preferences.html:43: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
./simple/preferences.html:44: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
./simple/preferences.html:45: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06 11:08:50 +02:00
Markus Heiser
37b3d8c33b
Merge pull request #276 from dalf/simple_eslint
...
Simple theme: eslint and bug fix
2021-08-31 16:13:47 +00:00
Alexandre Flament
f77f797f8c
[mod] simple theme: fix eslint errors, fix VIM keys
...
* VIM keys: fix the next page and previous pages (n, p keys)
* Map: Enable the wikipedia map (the layer was initialized but not included)
2021-08-31 15:41:31 +02:00
Alexandre Flament
7dc370efe9
[enh] new issue: include information from searx.version
2021-08-31 11:45:33 +02:00
Alexandre Flament
4b43775c91
version based on the git repository
...
This commit remove the need to update the brand for GIT_URL and GIT_BRANCH:
there are read from the git repository.
It is possible to call python -m searx.version freeze to freeze the current version.
Useful when the code is installed outside git (distro package, docker, etc...)
2021-07-30 14:40:09 +02:00
Markus Heiser
3f638ed196
[mod] drop usage of the searx.brand namespace (templates & /config)
...
In the templates and the /config (JSON) the usage of the 'brand.*' name
space is replaced by 'searx.get_setting' function.
- new_issue_url --> get_setting('brand.new_issue_url')
- brand.GIT_URL --> get_setting('brand.git_url')
- brand.PUBLIC_INSTANCES --> get_setting('brand.public_instances')
- brand.DOCS_URL --> get_setting('brand.docs_url')
- brand.ISSUE_URL --> get_setting('brand.issue_url')
- brand.CONTACT_URL --> get_setting('general.contact_url', '')
The macro 'new_issue' from searx/templates/*/messages/no_results.html
is now imported with context::
{% from '__common__/new_issue.html' import new_issue with context %}
To get *public instances URL* from context's 'get_setting()' function::
get_setting('brand.public_instances','')
Macro's prototype does no longer need the 'new_issue_url' argument and has been
changed to::
macro new_issue(engine_name, engine_reliability)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-21 13:38:28 +02:00
Alexandre Flament
881659ca9d
[mod] oscar theme: /preferences : HTML detail order match visual tabs
...
First details about the general tab, then detail about UI tab, etc...
No functionnal change
2021-06-17 15:29:07 +02:00