Commit graph

408 commits

Author SHA1 Message Date
Simon Legner
7e0dacb92b Settings: disable autofocus of search input
Fixes #1856.
2022-11-04 21:54:01 +01:00
Simon Legner
61ab7f6cec Remove FastClick library
From https://github.com/ftlabs/fastclick/blob/main/README.md
> Note: As of late 2015 most mobile browsers - notably Chrome and Safari - no longer have a 300ms touch delay, so fastclick offers no benefit on newer browsers, and risks introducing bugs into your application. Consider carefully whether you really need to use it.
2021-12-05 22:12:39 +01:00
Shashank Jain
a2a1733fcc Applied seconds input settings patch 2021-06-18 17:13:58 +05:30
Shashank Jain
7932a457af Added a checkbox to enable scroll by space 2021-06-14 21:15:33 +05:30
Simon Legner
c0ddcf3469 Shortcut to copy URL of original page (alt + C)
Fixes #1199.
2021-04-29 23:07:19 +02:00
Enoc
2824f75cd5 Fix sidebar when the mouse leave the window 2021-03-02 20:54:33 -06:00
Jed Fox
2beb46db42 Add mobile override mode
Fixes #1157
2020-01-13 22:30:39 -05:00
Jed Fox
e8b1359665 Switch to radio buttons for theme picker, only allow auto setting where supported 2020-01-13 16:20:11 -05:00
Simon Legner
0700f2d833 Add support for prefers-color-scheme media query 2019-09-11 21:50:21 +02:00
Stefan Selent
ea57487453 Extract the right target for clicks on nested elements 2019-08-22 21:57:41 -07:00
Jasper van Merle
22094f7dcf Fix #1049 2019-08-12 13:10:41 +02:00
Jasper van Merle
be0b8190e4 Merge branch 'master' into dynamic-favicon 2019-08-04 01:26:57 +02:00
Jasper van Merle
8aa8ae1035 Fix merge conflicts 2019-07-20 03:00:52 +02:00
Jasper van Merle
5438143cf8 Fix merge conflicts 2019-07-20 02:36:21 +02:00
Jasper van Merle
1c007d8826 Fix merge conflicts 2019-07-20 02:18:11 +02:00
Jasper van Merle
e684e8cb75
Merge pull request #831 from jmerle/fix-829
Hide sidebar when mouse is outside the window
2019-07-20 02:06:32 +02:00
Jasper van Merle
6138f05bd7
Merge pull request #1022 from jmerle/service-worker
Replace the App Cache with a Service Worker
2019-07-19 22:59:39 +02:00
Jasper van Merle
c28305b0b7 Implement review suggestions 2019-07-12 03:06:04 +02:00
Jasper van Merle
576f32dae1 Make service worker opt-in in development 2019-07-10 19:48:36 +02:00
Jasper van Merle
0e9aa8847b Add preference to bypass service worker cache 2019-07-07 14:11:39 +02:00
Jasper van Merle
8ed1f4ace1 Replace AppCache with a service worker 2019-07-07 00:55:58 +02:00
Jasper van Merle
d63487d973 Simplify layouts array 2019-06-18 23:46:24 +02:00
Jasper van Merle
35f6f719e3 Load layout preferences client-side from cookies 2019-05-26 19:48:53 +02:00
Jasper van Merle
6893ac9514
Merge branch 'master' into fix-829 2019-02-14 10:51:57 +01:00
Jasper van Merle
66a0b82e3c Ask for consent before enabling Google Analytics and Gauges 2019-02-05 01:21:45 +01:00
Jasper van Merle
c36478ce82 Set favicon to the icon of the currently shown docs 2019-02-01 09:30:19 +01:00
Jasper van Merle
d640a8ee22 Set favicon to documentation icon on open 2019-01-28 17:51:28 +01:00
Jasper van Merle
c6f0f1693f Limit new event listener to Chrome for Android 2018-12-04 00:10:28 +01:00
Jasper van Merle
c27868debc Simplify re-triggering search after scope change 2018-12-03 23:00:06 +01:00
Jasper van Merle
8039610888 Remove scope by clicking on it or by backspacing into it 2018-11-25 01:22:15 +01:00
Jasper van Merle
504f95e4f4 Fix single documentation search on Android 2018-11-25 00:28:36 +01:00
Thibaut Courouble
e64cfcfb64 Add confirmation to "Uninstall all" action
Closes #913.
2018-11-04 17:02:35 -05:00
Thibaut Courouble
a8a97e0198 Preserve path when reloading the app
Fixes #849.
2018-11-04 17:02:35 -05:00
Thibaut Courouble
e8d52c9cfd Fix app cache not updating when changing the app's color theme
This is needed because the index page is part of the app cache, and the <html> tag has a different class depending on the theme.
2018-10-10 10:10:19 -04:00
Jed Fox
a30fcf9d9a Switch from SASS variables to CSS variables
* Switch from SASS variables to CSS variables for most styling
  These are the simple cases, and the more complex ones will be covered by future commits. I’ve also replaced $fooZ ± 1 with the appropriate variable to avoid a runtime `calc()`.

* Eliminate the `$style` variable 🔥
  I’ve added a `--absolute` variable that’s `white` in dark mode and `black` in regular mode.

* Remove `$inputFocusBorder` 🔥

* Switch the Prism styles to CSS variables

* Convert `$mediumScreen` to a mixin

* 🔥 `$selectionText`

* Eliminate the final uses of SCSS variables
  I’ve dropped the 95% opacity on the background of the method source code overlay in RDoc since the difference isn’t noticeable but it makes implementation a lot easier.

* Misc fixes

* Extract the common variables from the two themes to a new file

* Remove illegal usages of CSS variables in SCSS functions
  This flattens out the buttons on the settings page which makes the styles simpler (and more modern-looking IMO) and removes the box-shadow on the button, which was completely invisible to me.

* Fix usages of SCSS functions in CSS variables

* Use `html._theme-*` selectors

* Eliminate `application-dark.css`; switch themes by toggling classes
  This also means that the Application Cache doesn’t have to get updated when toggling themes, and a new CSS file that’s nearly the same doesn’t need to be downloaded.
2018-10-07 12:27:07 -04:00
Thibaut Courouble
7d3c6bd970 Force HTTPS 2018-10-07 10:28:28 -04:00
Jasper van Merle
85f57fe5d0 Add option to automatically download documentation 2018-10-06 22:05:15 +02:00
Natnael Getahun
1bc380f12d Add DuckDuckGo shortcut
Added an alias ```alt + d``` to be DuckDuckGo shortcut
2018-08-06 18:31:12 -04:00
Grant Bourque
d657377d1c Use document.scrollingElement for mobile scrolls
- Set `document.scrollingElement` as the scrolling element
  for scrolling to anchors when the app is mobile mode
  to enhance support in newer browsers.
  The CSS View Module spec considers `document.documentElement`/`<html>`
  to be the standard scrolling element
  and that is what appears to be used in the latest Firefox and Chrome.
  However, some older browsers and even the current Safari
  use `document.body` as the scrolling element
  which is why I suspect the original code used `document.body`.
  Since some browsers scroll on different elements,
  `document.scrollingElement` exists
  so the browser can tell us what to use
  for scrolling to anchors work for all modern browsers.
  Since `document.scrollingElement` is undefined in older browsers,
  `document.body` is available as fallback mobile scrolling element.
2018-07-08 16:19:15 -04:00
Jasper van Merle
4b12335b19 Fix #829 2018-07-04 15:08:36 +02:00
Jed Fox
a5b6ffb116 Move “DevDocs” in the tab title to after the dynamic portion of the title 2018-06-10 19:11:42 -04:00
Grant Bourque
d5d913fc11 Use browser dimensions for mobile detection
- Use `max-width`/`max-height` mobile detection media queries
  instead of `max-device-width`/`max-device-height`.
  Some browsers inaccurately report the device dimensions
  and get the mobile version of the DevDocs unexpectedly.
  Not depending on the device dimensions also improves the experience
  by displaying the mobile version
  if a desktop browser window is sufficiently small enough.
2018-06-10 19:11:25 -04:00
Thibaut Courouble
d48396de57 DevDocs → freeCodeCamp 2018-03-26 08:19:52 -04:00
Thibaut Courouble
a379b6299d Ask all HTTP users to switch to HTTPS 2018-03-18 21:50:55 -04:00
Thibaut Courouble
76aec2bd95 Don't reset to root page when clearing the search field
Closes #718.
2017-11-17 12:23:12 -05:00
Thibaut Courouble
cbfc73951b Improve Help page
Closes #676.
2017-09-24 12:33:20 -04:00
Thibaut Courouble
9cce390ead Fix alt+o shortcut not preventing default in Firefox 2017-09-17 11:25:05 -04:00
Thibaut Courouble
44e6316100 Add ability export/import preferences
Closes #671.
2017-09-10 09:53:31 -04:00
Thibaut Courouble
64f04305d3 Replace all remaining PNG UI icons with SVGs 2017-09-09 14:57:53 -04:00
Thibaut Courouble
e212f62e89 Fix issue when hitting left-arrow keyboard shortcut on a disabled and unversioned doc 2017-09-09 11:37:26 -04:00