Commit Graph

18 Commits

Author SHA1 Message Date
Sheogorath 6f4841dcd2
Fix hidden MathJax output
In order to have a better experience when linking to headlines based on
their ID, a patch[1] introduced a new CSS construct to add some space in
front of HTML tags with an id field. Therefore they would no longer be
hidden by a visible navbar.

This cause a regression bug by moving the rendered mathjax out of its
visible area. This patch fixes the problem by restricting the previous
change to headlines only.

[1]: commit c9af13cf34

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-30 13:26:24 +02:00
Sheogorath c9af13cf34
Fix hidden header on link
When people link a section or use the ToC to scroll to it upwards, it
happens that those become hidden behind the navbar.

This patch adds a little hack from StackOverflow[1] in order to fix this
problem. By adding a pseudo element in front of any field that contains
an id, it's possible to add the needed space.

There was no negative impact found except of marking around the header
areas in the rendered view requires a bit preciser work. This needs some
more detailed testing.

[1]: https://stackoverflow.com/a/24298427

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-24 15:00:41 +02:00
Sheogorath df05bff82a
ToC: Some HTML improvements and style fixes
The ToC generated broken HTML with unclosed `<li>` tags. This got fixed
as well as some minor optimisation and adding list elements for the
subentries so the elements appear in the ToC while scrolling.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-04 21:09:06 +02:00
Edoardo Odorico 6fc2c39eda Implemented dark theme.
Signed-off-by: Edoardo Odorico <edoubuntu@gmail.com>
2018-01-05 00:15:13 +01:00
Wu Cheng-Han 3d6baa47ac Fix to hide duplicated MathML elements in static HTML exporting 2016-10-29 23:33:48 +08:00
Wu Cheng-Han 152585f96b Update markdown styles, follow github styles and font family 2016-08-14 18:27:20 +08:00
Wu Cheng-Han e08152ed03 Update toc styles to make toc menu always accessible without scrolling 2016-08-14 11:24:04 +08:00
Wu Cheng-Han b6aa045997 Update to add expand and collapse toggle for TOC, keep showing second level TOC if there is only one first level TOC 2016-08-02 10:54:03 +08:00
Wu Cheng-Han 8791447ef9 Update to support slide preview in both mode 2016-07-30 11:07:08 +08:00
Wu Cheng-Han d39f1fc700 Update to make slide mode support all extra syntax and change it's rendering engine 2016-07-02 16:09:26 +08:00
Cheng-Han, Wu b40bf3aef7 Update to support octicon and change header anchor styles 2016-04-20 18:22:18 +08:00
Cheng-Han, Wu dcebc75d39 Updated to support ja, zh-TW, zh-CN font and removed non-latin font in all default styles to allow font fallbacks 2016-01-31 21:19:47 -06:00
Wu Cheng-Han 5c0a36f4d9 Updated external media layouts, too keep its ratio and enlarge to 100% width 2016-01-17 09:55:12 -06:00
Wu Cheng-Han 2ecec3b59a Support show last change user with profile and support YAML config inside the note with robots, lang, dir, breaks options 2016-01-12 08:01:42 -06:00
Wu Cheng-Han 98ca5cb3df Updated toc-dropdown margin-top 2015-09-25 18:59:15 +08:00
Wu Cheng-Han bb8a0da71f Added support of print and unselectable styles, updated vimeo and youtube parsing method for this 2015-09-25 18:55:56 +08:00
Wu Cheng-Han 10c9811fc5 Jump to 0.3.1 2015-07-02 00:10:20 +08:00
Wu Cheng-Han 4b0ca55eb7 First commit, version 0.2.7 2015-05-04 15:53:29 +08:00