Commit graph

376 commits

Author SHA1 Message Date
Jasper van Merle
35f6f719e3 Load layout preferences client-side from cookies 2019-05-26 19:48:53 +02: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
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
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
Thibaut Courouble
30dd32c1b5 Normalize event.target for old browsers incorrectly handling SVG elements 2017-09-04 11:05:20 -04:00
Thibaut Courouble
53f666a742 Use parentNode instead of parentElement as the latter doesn't work on SVG elements in some browsers 2017-09-04 11:03:40 -04:00
Thibaut Courouble
8d0606d070 Fix OpenJDK entry breaking keyboard navigation in the sidebar 2017-08-07 17:50:39 -04:00
Thibaut Courouble
d7001c2eb5 Optimize DOM query selectors 2017-08-07 17:28:53 -04:00
Thibaut Courouble
581e656fd2 Optimize search autofocus code 2017-08-07 17:24:26 -04:00
Thibaut Courouble
e2ad2e5117 Minor code cleanup 2017-08-07 17:08:05 -04:00
Thibaut Courouble
e7a0101910 Avoid forced style and layout recalculation when clicking entry in the sidebar 2017-08-07 17:00:14 -04:00
Thibaut Courouble
f891e16f39 Optimize scrolling code during page transitions 2017-08-07 16:56:54 -04:00
Thibaut Courouble
6587b7d878 Show/hide the sidebar on hover
Closes #657.
2017-08-07 16:34:37 -04:00
Thibaut Courouble
01afa80686 Improve doc picker UI
Rel: #189
2017-08-07 11:32:09 -04:00
Thibaut Courouble
8d2a2fb298 Improve settings UI
Rel: #189
2017-08-06 12:32:02 -04:00
Thibaut Courouble
6de748ebc2 Add 'Customize' link next to 'Disabled' list title
Rel: #189
2017-08-06 11:59:50 -04:00
Thibaut Courouble
d852bde5f3 Improve "update ready" notification 2017-08-06 11:23:02 -04:00
Thibaut Courouble
bda3290cc6 Use an SVG icon for "dir" and "path" icons 2017-08-06 11:01:52 -04:00
Thibaut Courouble
9b28702e3a Simplify code highlighting 2017-07-23 11:01:54 -04:00
Thibaut Courouble
bd7aec1311 Improve jQuery scraper 2017-07-23 10:54:43 -04:00
Thibaut Courouble
bffabec8a6 Simplify rdoc code highlighting 2017-07-23 10:42:50 -04:00
Thibaut Courouble
384ee20b28 Improve Dojo scraper 2017-07-22 12:38:40 -04:00
Thibaut Courouble
150a4b6ab1 Update RequireJS documentation (2.3.4) 2017-07-22 12:24:18 -04:00
Thibaut Courouble
9d53de6a59 Improve Grunt scraper 2017-07-22 12:16:43 -04:00
Thibaut Courouble
05f2a6628c Update Lua documentation (5.3.4, 5.2.4, 5.1.5) 2017-07-22 12:12:42 -04:00
Thibaut Courouble
85fffdc242 Improve GitHub scraper 2017-07-22 12:05:46 -04:00
Thibaut Courouble
170445c95f Add setting to force native scrollbars on webkit/blink
Closes #601.
2017-06-25 18:02:29 -04:00
Thibaut Courouble
c06d1c4d2d Move the app layout class to the <body> element 2017-06-25 17:55:17 -04:00
Thibaut Courouble
69ffa7babe Improve keyboard navigation on mobile
Rel: #638
2017-06-25 16:19:43 -04:00
Thibaut Courouble
9adf4e2d9f Focus the search field when typing '/' or alphanumeric characters on mobile
Rel: #638
2017-06-25 16:17:08 -04:00
Thibaut Courouble
48d85f1124 Improve behavior of search scope when hitting escape
Closes #639.
2017-06-25 16:01:22 -04:00
Thibaut Courouble
7b20d6d02e Don't open menu on hover
Closes #603.
2017-06-18 10:46:58 -04:00
Thibaut Courouble
61930288b8 Add Electron documentation 2017-06-04 17:36:40 -04:00
Thibaut Courouble
b626a9d574 Improve Erlang documentation
Fixes #626.
2017-05-22 17:13:07 -04:00
Thibaut Courouble
4fabd8bc64 Update Flow documentation (0.46.0) 2017-05-22 11:57:26 -04:00
Thibaut Courouble
7a1ca03397 Add Jasmine documentation 2017-05-14 16:39:59 -04:00