summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src
AgeCommit message (Collapse)Author
2023-01-23[fix] use input elements for pagination requestsmrpaulblack
* use html input elements instead of buttons for the pagination forms at the bottom of the result page * move the less section that hides the pagination number widget on mobile to the mobile section * clean up the less code for styling the numbers of the pagination widget * fix: add the margin for box results (like in news category) to the bottom of the result to have a margin between pagination widget and article result
2023-01-23Feature: Pagination Widget with list of numbers.llmII
Adds to the navigation widget, preserving forward/backward nav, and inserting a list of clickable page numbers between them. Phone sized devices continue without this widget as deterministic display under small screen sizes has not been solved. The widget is agnostic to the actual amount of pages there are that one can navigate to and as such shows all plausible, albeit not necessarilly valid, possibilities. This widget does not interfere with infinite scroll in any fashion.
2023-01-08Fix #2083llmII
This changes the Suggestions to be a single column, not a wrapping row, changing the input to be incapable of overflowing into visually adjacent elements.
2023-01-07Add flex-wrap to the list of enginesahmad-alkadri
2023-01-06[build] /staticMarkus Heiser
2022-09-23Add paper.html result templateAlexandre FLAMENT
2022-08-27Theme: fix autocompletion with the POST methodAlexandre FLAMENT
With the POST method, autocomplete.js does not URL encode the values. For example "1+1" is sent as "1+1" which is read as "1 1" since space are URL encoded with a plus. There is no clean way to fix the bug since autocomplete.js seems abandoned. The commit monkey patches the ajax function of autocomplete.js Related to #1695
2022-08-19make pygments.lessMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-07-08Submit GH bug: ask the user to do some checks before submitting a new issueAlexandre Flament
2022-07-04[fix] style.less: move <dl> from infobox.attributes to .attributes classMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-07-02Theme: all top right icons have labels including "Preferences"Alexandre Flament
2022-06-25Theme: add Help and Donate links in all pagesAlexandre Flament
Close https://github.com/searxng/searxng/issues/931
2022-06-18Theme: add a preference to center the results (Oscar) (2nd edition)Alexandre Flament
related to * #1169 * #1281 * #1286
2022-06-14[fix] keyboard.js - highlightResult: don't steal focus on click eventMarkus Heiser
For keyboard navigation the highlightResult() function in keyboard.js steals the focus. On a mouse click event (non keyboard action) the focus should resist where it is, otherwise a marked region gets lost. This is the reason why text can't be selected when using simple theme with JS enabled. Closes: https://github.com/searxng/searxng/issues/794 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-06-13UX fix: when the user clicks on the search input, don't move the cursor at ↵Alexandre Flament
the end Related to https://github.com/searxng/searxng/pull/1153#issuecomment-1154247988
2022-06-05Revert "Theme: add a preference to center the results (Oscar)"Alexandre Flament
This reverts commit 4237f5fd50c2dc0e91513056d885f25038ef6787.
2022-06-05Theme: add a preference to center the results (Oscar)Alexandre Flament
related to #1169
2022-06-02Theme: enable autofocus of #q only on the index page and when the width > 50emAlexandre FLAMENT
Related to #1270
2022-05-11[simple theme] add products.html templatemrpaulblack
2022-05-10[fix] loading of external resources in JS client toolkitmrpaulblack
2022-05-10[mod] simple theme: colors, autocomplete, borderMonty
* change colors, autocomplete, delete border in some places
2022-05-07theme: remove __common__Alexandre Flament
2022-05-07[mod] add setting: search.autocomplete_minMarkus Heiser
Minimun characters to type before autocompleter starts. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-05-07[mod] client_settings: pass settings from server to JS clientMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-04-30[upd] ./manage pyenv.cmd searxng_extra/update/update_pygments.pyMarkus Heiser
After each update of the pygments version, we (or github action) should [1] 1. update less files: ./manage pyenv.cmd searxng_extra/update/update_pygments.py update: static/themes/oscar/src/generated/pygments-logicodev.less update: static/themes/oscar/src/generated/pygments-pointhi.less update: static/themes/simple/src/generated/pygments.less 2. rebuild the static files of each themes: make static.build.commit [1] https://github.com/searxng/searxng/pull/2#issuecomment-826958666 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-04-19[fix] add missing result.length and result.author to simple themeMarkus Heiser
Closes: https://github.com/searxng/searxng/issues/1027 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-04-06[simple theme] add netloc to image result articlesmrpaulblack
2022-03-28Fix answer box bugMonty
Fix bug of too long words.
2022-03-25[fix] revert changes from #997mrpaulblack
* in #997 there was a bug introduced: #1002 -> for now we just revert the change to make the image detail modal usable again
2022-03-24[simple theme] refactor search formMonty
* update search input form params; inspiried by whoogle * remove autofocus from result page input form (JS impl. as well as input param) -> autofocus on landing page still works only on desktop and tablet with JS impl. * update landing page margins on mobile * rework border and radius for search form to 0.8rem and outline * remove positioning from autocomplete JS lib and use CSS impl. * match search box and autocomplete width * rework search form to a google like design on mobile * fix settings icon display withg RTL on mobile on result page when search input is empty
2022-03-20[fix] Text can't be selected when using simple theme with JS enabledMarkus Heiser
Closes: https://github.com/searxng/searxng/issues/794 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-03-19simple theme: JS version: the reset button clear the textAlexandre Flament
The <input type="reset"> introduced in the PR 894, restores the default value. It works in the index page, but it doesn't work in the /search page: the reset button restore the initial query. This PR: * fix the JS version: the reset button clear the text * keep the clear button in the / page * hide the clear button in the /search page
2022-03-19[fix] naming of id for prefs in cssmrpaulblack
2022-03-16[simple theme] use default font and font-size in info pagemrpaulblack
2022-03-12[simple] add CSS for /info pagesMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-03-04[simple] switch to the tablet layout at 79.75emAlexandre FLAMENT
The previous value was 80em (1280px). Some desktop screens have this resolution, and tablet layout takes too much space in this configuration This PR switch to the table layout for screen width strictly below 1280px. Close https://github.com/searxng/searxng/issues/874
2022-03-02[simple] checkboxes can get the focusableAlexandre Flament
Do note that checkboxes in the engine tab are displayed reversed. See: https://github.com/searxng/searxng/blob/3408d061aab9abc6168fec9bbc6deab71b236dac/searx/templates/simple/preferences.html#L313 A checkbox for an engine is checked when the engine is disabled.
2022-02-27[fix] simple: display "Click on the magnifier..." only the mouse over the ↵Alexandre Flament
categories
2022-02-27[fix] simple: detect touch screen using media queryAlexandre Flament
related to https://github.com/searxng/searxng/issues/928
2022-02-26[simple theme] replace Image_layout.js with flexbox CS impl.mrpaulblack
* drop image_layout.js from simple theme * move image_layout.js to oscar theme and delete common js dir (since its empty now) * align top position of image detail modal with bottom position of search header * use flexbox to display images; row height can be set via @results-image-row-height in defenitions.less * display span title underneath each image with a max width of 12rem * increase margin and padding around image article on desktop and tablet * make article height smaller on phone layout (height of 6rem) to display more content on current view * remove content from result, if the title and content matches * use a group that cotains the flex image article, if images are mixed with other categories * fix pylint issues in webapp.py * use the default.html result template in unit tests (thanks @return42)
2022-02-26Search filters changesMonty
Better search filters view on mobile.
2022-02-21[fix] genius: add player an avoid exceptional programmingMarkus Heiser
Add player: - The players are just playing 30sec from the title. Some of the player will be blocked because of a cross-origin request and some players will link to apple when you press the play button. Avoid exceptions and (and BTW improve results) - ERROR searx.engines.genius : list index out of range Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-20[mod] infinite_scroll as preferenceAlexandre Flament
* oscar theme: code from searx/plugins/infinite_scroll.py * simple theme: new implementation Co-authored-by: Markus Heiser <markus.heiser@darmarIT.de>
2022-02-19[mod] simple theme: define a '.show-content-button'Markus Heiser
With LESS function '.show-content-button' all the *Show-Media* links becomes bottons. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18[fix] bandcamp: fix itemtype (album|track) and exceptionsMarkus Heiser
BTW: polish implementation and show tracklist for albums Closes: https://github.com/searxng/searxng/issues/883 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18[mod] simple theme: set height of embedded content (iframe)Markus Heiser
This commit sets appropriate height of the (embedded) player from: - soundcloud - mixcloud - deezer Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18[fix] simple theme: support browsers which do not have aspect-ratioMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#discussion_r805187303 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-13[mod] result_templates/default.html replace embedded HTML by data_src audio_srcMarkus Heiser
Embedded HTML breaks SearXNG architecture. To modularize, HTML is generated in the templates (oscar & simple) and result parameter 'embedded' is replaced by 'data_src' (and 'audio_src'), an URL for embedded content (<iframe>). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-13[mod] result_templates/videos.html: replace embedded HTML by data_srcMarkus Heiser
Embedded HTML breaks SearXNG architecture. To modularize, HTML is generated in the templates (oscar & simple) and result parameter 'embedded' is replaced by 'data_src', an URL for embedded content (<iframe>). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-01[simple] allow .tabs to be used for help pagesMartin Fischer