made TOC togling script more generic
Instead of a dedicated function to toggle the TOC we now have a function that allows to use this functionality everywhere. This will be used to toggle the sidebar in the mobile view (in an upcoming patch). Note, this required some changes to the CSS (to make it more generic). The CSS is still located in the TOC sections but should probably be moved into its own section instead.
Showing
- lib/scripts/page.js 37 additions, 20 deletionslib/scripts/page.js
- lib/tpl/default/design.css 6 additions, 4 deletionslib/tpl/default/design.css
- lib/tpl/default/rtl.css 2 additions, 1 deletionlib/tpl/default/rtl.css
- lib/tpl/dokuwiki/css/_toc.css 4 additions, 2 deletionslib/tpl/dokuwiki/css/_toc.css
- lib/tpl/dokuwiki/css/design.css 5 additions, 3 deletionslib/tpl/dokuwiki/css/design.css
- lib/tpl/dokuwiki/main.php 7 additions, 4 deletionslib/tpl/dokuwiki/main.php
Please register or sign in to comment