mdBook/src/theme
Roy Wellington Ⅳ fa6aa2ced8 Default the sidebar to visible in large screens
The code here leads me to believe that the intention is for the sidebar
to be default visible on large screens (where `clientWidth` > 1080) and
hidden otherwise.

However, as previously written, if the `localStorage.getItem` call fails
(for example, if the user agent is not accepting cookies), then we fall
back to `sidebar = sidebar || 'visible';` — but `sidebar` is already set
to `hidden`, so the `|| 'visible'` never happens.

This results in the sidebar hiding itself on every navigation through an
mdBook, meaning if you're just switching between sections trying to find
something that you keep needing to re-open the sidebar.
2023-02-11 18:04:58 -05:00
..
css Add some comments about overflow-x 2023-02-08 15:25:14 -08:00
FontAwesome Update FontAwesome version to 4.7.0 2018-10-15 20:01:36 +01:00
fonts Remove local version from @font-face 2020-09-06 10:34:11 -07:00
playground_editor Rename playpen to playground. (#1241) 2020-06-22 16:34:25 +02:00
searcher Merge pull request #1426 from ehuss/search-mark-words 2021-01-14 17:01:52 -08:00
ayu-highlight.css Adjust overlap of code buttons with code blocks. 2022-05-16 19:27:46 -07:00
book.js update for hidden only on clipboard 2022-12-14 06:54:45 -08:00
clipboard.min.js When the Copy button is pressed, focus is lost and scrolling the page 2019-04-23 09:29:22 +02:00
favicon.png Add default favicon.png 2016-02-22 16:59:53 +01:00
favicon.svg Add SVG favicon. 2020-06-23 10:58:10 -07:00
head.hbs Allow to define own HTML <head> attributes 2020-05-10 08:42:53 -07:00
header.hbs Adding a header partial integration #453 2017-11-30 21:48:29 -08:00
highlight.css Adjust overlap of code buttons with code blocks. 2022-05-16 19:27:46 -07:00
highlight.js Revert #1597 - Update to highlight.js 11.0. 2021-08-02 08:02:13 -07:00
index.hbs Default the sidebar to visible in large screens 2023-02-11 18:04:58 -05:00
mod.rs Make fonts part of the theme. 2023-01-15 11:42:46 -08:00
redirect.hbs State canonical URL using <link> not <meta>. 2022-11-12 14:54:28 -06:00
tomorrow-night.css Adjust overlap of code buttons with code blocks. 2022-05-16 19:27:46 -07:00