Commit Graph

10 Commits

Author SHA1 Message Date
derv82
4919cf0817 Fixing over-styling in search-results.css
* Right-padding to account for scrollbar when showing search results.
* No 'max-width' anymore -- width adjusts to popup width.
* Description uses ellilpsis on overflow.
  * Still needs info/expando (and need to remove title-text)
* Screenshots have 'object-fit:cover' to fill the space.

Unrelated: Hack for search category 'userstyles' (should be userstyles.org)
2017-12-04 00:30:06 -08:00
derv82
58f003392a Scroll up when search results options are clicked (find/next/prev) 2017-12-03 23:27:55 -08:00
derv82
b3cd06bedd "inline" checkbox opens search results within popup.
Unchecked => opens new tab for search page.

Checkbox hidden if inline results are shown (still shows link to "find styles" which opens a new tab by-default).
2017-12-03 20:24:39 -08:00
derv82
8ae669bd12 Detects Customization. Prefetches "category" when popup is loaded.
* Fetches 'category' for the current URL when popup is first loaded.
* Customizable styles have "Customize" button next to "Install"
* "Customize" button opens a new tab to the style page.
* Removed all console.log() statements (except when `catch()`ing errors).
2017-12-02 23:12:27 -08:00
derv82
02260ff65d Show rating & install counts in results. Remove artifical delays. 2017-12-02 17:25:01 -08:00
derv82
b16ee42deb Only one "find styles" link. Hides result after installing.
* "Find more styles for this site" renamed to "Search on userstyles.org".
  * Only appears below search results after "Find more styles" is clicked.
* When style is installed from serach results, it no longer appears in the results.
* "Install" uses already-fetched .JSON data. Avoiding useless call to download().
2017-12-02 04:34:37 -08:00
derv82
1daa12b59f Search userstyles by-category. Fetch only when needed.
* Discovers category via userstyles request.
* Disables navigation while loading results.
* Navigation above search results
* Handles styles without screenshots (blank img).
2017-12-02 03:29:12 -08:00
derv82
696b6f97c3 Hides installed styles from search results.
Also:
1. Dims search result during installation.
2. Removes the search result after installation.
2017-11-24 01:57:42 -08:00
derv82
98c9024eb9 It works! "Install" installs the style.
Added an 'error' container for search-related errors.
2017-11-20 01:11:32 -08:00
derv82
c9e894f670 Rename searchResults -> search-results, replaced double quotes with single-quotes 2017-11-19 22:28:54 -08:00