Commit Graph

43 Commits

Author SHA1 Message Date
hryxl
35cc1242d2
Update header.css 2022-03-21 12:59:53 +03:00
hryxl
551c06ec6a
Update header.css 2022-03-21 12:56:44 +03:00
hryxl
4ffa997ca8
Update header.css 2022-03-21 12:53:34 +03:00
hryxl
2a9341fde9
Update header.css 2022-03-21 12:52:11 +03:00
hryxl
dc0b1eda68
Update header.css 2022-03-21 12:49:05 +03:00
hryxl
6376664766
Update header.css 2022-03-21 12:47:14 +03:00
hryxl
04f87e3c68
Update header.css 2022-03-21 12:45:05 +03:00
hryxl
ddeb4fd4af
Update header.css 2022-03-21 12:44:01 +03:00
hryxl
138995a04d
Update header.css 2022-03-21 12:42:10 +03:00
hryxl
5170451f5e
Update header.css 2022-03-21 12:39:17 +03:00
hryxl
86d71cdc6d
Update header.css 2022-03-21 12:36:17 +03:00
hryxl
f532a83d6e
Update header.css 2022-03-21 12:33:38 +03:00
hryxl
4cab2c394c
Update header.css 2022-03-21 12:31:02 +03:00
hryxl
3ad773de20
Update header.css 2022-03-21 12:09:22 +03:00
hryxl
0f1e347749
Update header.css 2022-03-21 12:06:01 +03:00
hryxl
0dedf8812a
Update header.css 2022-03-21 12:03:58 +03:00
hryxl
3913b6b601
Update header.css 2022-03-21 11:56:40 +03:00
hryxl
039169062b
Update header.css 2022-03-21 11:45:36 +03:00
hryxl
1375fa670a
Update header.css 2022-03-21 11:30:20 +03:00
hryxl
e2f7e408bd
Update header.css 2022-03-21 11:04:43 +03:00
hryxl
40b2633983
Update header.css 2022-03-21 11:03:48 +03:00
hryxl
ab3865f0a0
Update header.css 2022-03-21 11:01:16 +03:00
hryxl
05b347e150
Update header.css 2022-03-21 10:58:29 +03:00
hryxl
c5c22824af
Update header.css 2022-03-21 10:56:04 +03:00
hryxl
d1598d895b
Update header.css 2022-03-21 10:53:44 +03:00
hryxl
e77693230d
Update header.css 2022-03-21 10:51:34 +03:00
hryxl
44ff8bb3b7
Update header.css 2022-03-21 10:49:59 +03:00
hryxl
63c1431823
Update header.css 2022-03-21 10:48:28 +03:00
hryxl
ef08decee4
Update header.css 2022-03-21 10:46:33 +03:00
hryxl
ac13b27bb3
Update header.css 2022-03-21 10:44:24 +03:00
hryxl
89ac610a7c
Update header.css 2022-03-21 10:42:36 +03:00
hryxl
c05726973a
Update header.css 2022-03-21 10:40:43 +03:00
hryxl
f0dc6d1646
Update header.css 2022-03-21 10:35:57 +03:00
hryxl
51b4b3bcd5
Update header.css 2022-03-21 10:32:40 +03:00
hryxl
41b35ae6c8
Update header.css 2022-03-21 10:21:24 +03:00
hryxl
cabf61ed5c
Update header.css 2022-03-21 10:18:18 +03:00
hryxl
cf2212105b
Update header.css 2022-03-21 10:15:39 +03:00
Joao A. Candido Ramos
11099f7b1d
Use consistent header for all result types (#535)
Introduces a header for switching between result types (i.e. "All", "News",
etc) that is consistent between the different result types. Previously, image
results had a tab header that was formatted in a drastically different manner,
which was jarring when switching from a different result page to the Images
page.

Created a G class enum to reference class names returned in search
results. As noted in the class doc, this should only be used/updated as
a last resort, as class names change frequently. For some instances,
such as replacing the tbm tab, it's a lot easier to just replace by
header name than attempting to replace it based on how the element is
structured.

Also updated a few styles to revert the latest styling changes being
applied by Google.

Co-authored-by: jacr13 <ramos.joao@protonmail.com>
Co-authored-by: Ben Busby <contact@benbusby.com>
2022-02-07 10:47:25 -07:00
Ben Busby
c41e0fc239
Allow theme to mirror user system settings
Introduces a new config element and environment variable
(WHOOGLE_CONFIG_THEME) for setting the theme of the app. Rather than
just having either light or dark, this allows a user to have their
instance use their current system light/dark preference to determine the
theme to use.

As a result, the dark mode setting (and WHOOGLE_CONFIG_DARK) have been
deprecated, but will still work as expected until a system theme has
been chosen.
2021-06-28 10:26:51 -04:00
Ben Busby
f56e913521
Remove gap between input and result types
Enforces 0 margin for the search input form on the result page, which
removes the weird gap that is seen by default.

Also made minor changes to the border styling. Desktop searches now have
a single bottom border in dark mode rather than an all around border,
and the border around the mobile search result input was removed
entirely.
2021-04-22 16:24:43 -04:00
Tomasz Borychowski
5538ac862e add basic keyboard support 2021-04-05 11:00:56 -04:00
Ben Busby
2bbc649903
Add support for UPS/USPS/FedEx tracking queries
Introduces a new javascript "utils" file, which includes a check for
matching the query against a set of tracking number regexes on page
load. If a match is found, the script prepends a link to the
(presumably) appropriate tracking page.

Referenced in #98
2020-12-27 18:00:35 -05:00
Ben Busby
21012f5265
Feature: autocomplete/search suggestions (#72)
Basic autocomplete/search suggestion functionality added

* Adds new GET and POST routes for '/autocomplete' that accept a string query and returns an array of suggestions

* Adds new autoscript.js file for handling queries on the main page and results view

* Updated requests class to include autocomplete method

* Updated opensearch template to handle search suggestions

* Added header template to allow for autocomplete on results view

* Updated readme to mention autocomplete feature
2020-05-24 14:03:11 -06:00