Commit graph

107 commits

Author SHA1 Message Date
Jasper van Merle
4a088caf7c Remove redundant server-side rendering 2019-07-08 02:02:58 +02:00
Jasper van Merle
dd23a6c7b7 Move all styling configuration to the client 2019-07-08 01:42:34 +02:00
Jasper van Merle
aaf9904cb3 Remove redundant server-side styling 2019-07-07 15:21:29 +02:00
Jasper van Merle
35dd78f191 Refactoring 2019-07-07 14:30:31 +02:00
Jasper van Merle
7af10a020d Cache debug.js when not running in production 2019-07-07 14:19:04 +02:00
Jasper van Merle
0e9aa8847b Add preference to bypass service worker cache 2019-07-07 14:11:39 +02:00
Jasper van Merle
ec8616e289 Service worker refactoring 2019-07-07 03:25:42 +02:00
Jasper van Merle
8ed1f4ace1 Replace AppCache with a service worker 2019-07-07 00:55:58 +02:00
Thibaut Courouble
b6358992d5 Copy changes to reflect that DevDocs is now operated by freeCodeCamp 2018-12-18 15:02:15 -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
Thibaut Courouble
847cfbb682 Update browser requirements 2018-10-08 18:08:23 -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
cbfc73951b Improve Help page
Closes #676.
2017-09-24 12:33:20 -04:00
Thibaut Courouble
6aaba67b11 SEO and social sharing tweaks 2017-09-23 12:55:04 -04:00
Thibaut Courouble
0330f89b36 Fix <body> class attribute 2017-09-10 18:33:29 -04:00
Thibaut Courouble
8ddc08ca9b Serve web app manifest from canonical origin 2017-09-10 18:16:52 -04:00
Thibaut Courouble
7428645dc1 Improve app loading sequence 2017-09-09 18:16:16 -04:00
Thibaut Courouble
9e97357524 Add web app manifest 2017-09-09 18:16:16 -04:00
Thibaut Courouble
64f04305d3 Replace all remaining PNG UI icons with SVGs 2017-09-09 14:57:53 -04:00
Thibaut Courouble
4e1b61e82c Minor SEO 2017-08-08 08:12:53 -04:00
Thibaut Courouble
d3927c27da Fix disappearing icons on some pages 2017-08-07 17:52:03 -04:00
Thibaut Courouble
8d2a2fb298 Improve settings UI
Rel: #189
2017-08-06 12:32: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
c06d1c4d2d Move the app layout class to the <body> element 2017-06-25 17:55:17 -04:00
Thibaut Courouble
2246c22820 Improve app backend performance 2017-05-22 17:42:00 -04:00
Thibaut Courouble
c13877f833 Split doc icon sprite 2017-05-14 15:41:00 -04:00
Thibaut Courouble
a8073b3a12 Fix and improve doc picker tab navigation
Rel #609.
2017-04-15 12:27:43 -04:00
Thibaut Courouble
29b839589c Use <button> instead of <a> for mobile settings tabs 2017-03-05 11:51:27 -05:00
Thibaut Courouble
4298c60816 Improve sidebar UI 2017-02-26 17:18:27 -05:00
Thibaut Courouble
062480b464 Fix SVG warnings 2017-02-26 16:40:22 -05:00
Rhys Powell
bde3a70480 Added mask icon for Safari
This is used for pinned tabs and the touchbar on the new MacBook Pro
2017-02-26 14:53:01 -05:00
Thibaut Courouble
29ec9db263 UI tweaks 2017-02-26 14:53:00 -05:00
Thibaut Courouble
e94af979d9 Add settings page 2017-02-26 09:59:43 -05:00
Thibaut Courouble
ce8079fff3 Fix tabindex attribute breaking default text cursor in Firefox 2017-02-26 09:59:43 -05:00
Thibaut Courouble
0f238609da UI improvements 2017-02-26 09:59:43 -05:00
Thibaut Courouble
ad044f85d3 Fix keyword search in Firefox and URL search via query param
Fixes #577.
2017-02-19 09:34:59 -05:00
Thibaut Courouble
f333f44111 Tweak title tags 2017-02-05 17:00:16 -05:00
Thibaut Courouble
7e0d60a241 Add application-name meta tag 2017-01-02 13:47:23 -05:00
Thibaut Courouble
d6823d823a Make hardcoded refs to devdocs.io and cdn.devdocs.io config vars 2016-10-16 10:45:43 -04:00
Thibaut Courouble
41faea4b26 Remove autofocus attribute on search field
It causes the keyboard to pop up on iOS when the app is added to the homescreen.
2016-09-18 14:48:07 -04:00
Thomas Weber
14e85a641e Autofocus search input when opening page 2016-09-05 17:12:11 -04:00
Thibaut Courouble
4149604960 Copy changes 2016-07-30 18:33:43 -04:00
Thibaut Courouble
39b9846d78 Improve tab navigation
Closes #396.
2016-06-26 18:20:30 -04:00
Thibaut Courouble
dd86527da5 Improve markup and accessibility
Ref #305
2016-06-26 16:46:53 -04:00
Thibaut Courouble
7303212dd2 Add back/forward buttons on mobile
Closes #221.
2016-06-26 16:46:53 -04:00
Thibaut Courouble
7a1591f68c Split icon sprite 2016-06-19 17:49:39 -04:00
Thibaut Courouble
fd6683f3b2 Move tracking scripts inside the JS bundle 2016-06-04 10:14:28 -04:00
Thibaut Courouble
a59786be2e Change single-doc setup to use data-attribute instead of inline script 2016-06-04 10:09:01 -04:00
Thibaut Courouble
4468f65dd8 Add content security policy 2016-05-01 18:09:01 -04:00
Thibaut Courouble
31495ff5a9 Tweak dbclick-to-toggle-sidebar code 2016-04-17 14:37:03 -04:00