Alexandre Flament
715c445e9b
[build] /static
3 years ago
Alexandre Flament
a53a4d5012
[build] /static
3 years ago
Alexandre Flament
74b0830362
SearXNG: simple theme
3 years ago
Alexandre Flament
1dfac73a64
[build] /static
3 years ago
Alexandre Flament
df06dddc04
SearXNG: oscar theme
3 years ago
MrPaulBlack
43fc136207
[build] /static
3 years ago
MrPaulBlack
57f58f85bd
[fix] position of engine description tooltip
3 years ago
Markus Heiser
73cb80e71d
[build] /static
3 years ago
Markus Heiser
8ac776765c
[theme] simple: do not prefer arial over user's sans-serif font
...
The default *sans-serif* font from the browsers most often renders much better
compared to Arial font.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
MrPaulBlack
e8ed56251a
[build] /static
3 years ago
MrPaulBlack
f81afed60b
[fix] backtotop and pagination on image result page
3 years ago
MrPaulBlack
8268873701
[fix] several issues in the simple theme
...
- using more rem in style and definitions
- mobile width in preferences.less fix max-width: 75em to 80em (normalized with
style.less and other)
- do not display #backToTop position on tablet (when max-width: 80em)
- fix answer box on mobile (when max-width: 50em)
3 years ago
MrPaulBlack
b6ae1f1c7a
[theme] margin around checkboxes is bigger now, index centers the search more and the pref, stats and about page have a max-width now
3 years ago
MrPaulBlack
859179f0c9
[theme] optimize switching between different device types
3 years ago
MrPaulBlack
385dce213b
[theme] cleanup grid layout and remove various margins and paddings from elements
3 years ago
Alexandre Flament
cc3c54f4cd
simple theme: update
3 years ago
MrPaulBlack
88c17d106d
[fix] make selected tabs not change wifth anymore compared to not being selected
3 years ago
Alexandre Flament
39876d9f14
[build] /static
3 years ago
Alexandre Flament
2f1384f198
[enh] themes: display the engine descriptions
3 years ago
MrPaulBlack
30a9146bdc
[build] /static
3 years ago
MrPaulBlack
7cb5099c88
[preferences] make elements in query selecter align left
3 years ago
MrPaulBlack
fa95cd91a8
[build] /static
3 years ago
MrPaulBlack
79351c2e4d
[fix] searx.js null pointer exception when category div is missing
3 years ago
Alexandre Flament
e8e81c7432
[build] /static
3 years ago
Alexandre Flament
2cc6301c98
[fix] Oscar theme: fix input field on Safari
...
close #323
3 years ago
Markus Heiser
b0623ac9f6
[build] /static
3 years ago
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>
3 years ago
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>
3 years ago
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>
3 years ago
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>
3 years ago
Markus Heiser
0d070fde92
[build] /static
3 years ago
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>
3 years ago
Markus Heiser
37b3d8c33b
Merge pull request #276 from dalf/simple_eslint
...
Simple theme: eslint and bug fix
3 years ago
Alexandre Flament
d246679dbe
[build] /static
3 years ago
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)
3 years ago
Alexandre Flament
0ee316f3d1
eslint: grunt integration
3 years ago
Markus Heiser
2948a99b6e
[mod] simple theme - add ESLint
...
[1] https://eslint.org/
[2] https://eslint.org/docs/user-guide/configuring/
[3] https://eslint.org/docs/user-guide/command-line-interface
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
d29094579b
[build] /static
3 years ago
Markus Heiser
76a066d4a3
[mod] themes: remove banner generated by grunt
...
The banner is useless and responsible for unwanted diff.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
a3f58a3a3d
[emacs] .dir-locals.el: add setup for js-mode
...
- move jshint option from gruntfile to .jshintrc
- remove trailing-whitespace from gruntfile and
- add jshint esversion: 6
- .dir-locals.el add locals for js-mode to use JSHint from the simple theme
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
f73a00dcee
[stylelint] disable role 'no-descending-specificity'
...
This patch disables role 'no-descending-specificity'. IMO it is better to have
this rule active (see below [1]), but it is hard to rewrite the less files to
pass this rule, so for the first I chose to disable this rule.
---
Source order is important in CSS, and when two selectors have the same
specificity, the one that occurs last will take priority. However, the situation
is different when one of the selectors has a higher specificity. In that case,
source order does not matter: the selector with higher specificity will win out
even if it comes first.
The clashes of these two mechanisms for prioritization, source order and
specificity, can cause some confusion when reading stylesheets. If a selector
with higher specificity comes before the selector it overrides, we have to think
harder to understand it, because it violates the source order
expectation. Stylesheets are most legible when overriding selectors always come
after the selectors they override. That way both mechanisms, source order and
specificity, work together nicely.
This rule enforces that practice as best it can, reporting fewer errors than it
should. It cannot catch every actual overriding selector, but it can catch
certain common mistakes.
[1] https://stylelint.io/user-guide/rules/list/no-descending-specificity/
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
0b7d03c694
[stylelint] simple theme: fix some errors reported by stylelint
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
14b09c15c4
[fix] simple theme: use stylint to fix common lint errors
...
This fix was autogenerated by::
npx stylelint -f unix --fix 'searx/static/themes/simple/src/less/**/*.less'
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
dfc5c3bc15
[mod] add stylelint process to target themes.simple
...
Before build, do lint the LESS files using stylelint [1]. The configuration
'stylelint-config-standard' [2] is added to the root of the simple theme [3].
[1] https://stylelint.io/
[2] https://github.com/stylelint/stylelint-config-standard
[3] https://stylelint.io/user-guide/configure
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
04492b76de
[themes] ignore packages-lock.json
3 years ago
Alexandre Flament
2bc9b00cd7
Static build
3 years ago
Alexandre Flament
dca3bcca9e
[mod] simple theme: include fonts
...
"npm run webfont" to build the fonts directory.
It requires fontforge and ttfautohint distro packages.
partial revert of commit 7137d2893f
3 years ago
Alexandre Flament
d20f6a1f19
[mod] make themes.all update pygments*.less
...
Add a searx/static/themes/*/src/generated empty folder
3 years ago
Alexandre Flament
bb3e67f72b
[mod] simple theme: normalize.css becomes a packages.json dependency
3 years ago
Alexandre Flament
14ba56fd1a
[mod] make node.clean: call the "clean" script from the packages.json
...
The dependencies and build process are described in the gruntfiles.js and packages.json files.
It makes sense to move the clean up to these files too.
3 years ago