Commit Graph

145 Commits

Author SHA1 Message Date
Ludwig Schubert 4adbf9dcd2 Scope footer styles to avoid leaking them in pre-rendered mode 2019-02-18 11:43:45 -08:00
Ludwig Schubert cdfa045a36 Header prerendering now adds markup directly and adds distill-prerendered tag which TEMPLATE webcomponents now respect 2019-02-15 17:35:48 -08:00
Ludwig Schubert e9df166db9 Fix #101 by special casing bibtex author name strings without spaces or commas 2019-02-06 20:37:07 -08:00
Ludwig Schubert 37cc1f3157 Fix d-cite tags that are dynamically added (such as in footnotes) + eliminate inline-block extra whitespace 2019-01-31 17:20:56 -08:00
Ludwig Schubert 9ead1f6f01 Remove stray console.log(frontmatter) call 2019-01-31 17:20:56 -08:00
Ludwig Schubert ebe56d2329 Render d-math in all body (not just article) and remove contain: content optimizations in favor of contain: style 2019-01-31 17:20:56 -08:00
Ludwig Schubert c3ff605777 Move Runlevel reporting to console.debug calls, fix logic flaw when to complain about Controller initialization 2019-01-31 17:20:42 -08:00
Ludwig Schubert ecfd28bdf9 Allow any tag type in parseFrontMatter. <script> is still recommended where possible. 2019-01-06 20:33:19 -08:00
Ludwig Schubert 86ca6f72f4 Merge branch 'master' of github.com:distillpub/template 2019-01-03 14:42:54 -08:00
Ludwig Schubert d0f5824e0c Support specifying DOI in frontMatter (meant to be used for self-publishing; not for pre-rendered distill publishing) 2019-01-03 14:42:45 -08:00
Shan Carter 37c7483cb0 Trim whitespace
Trimming whitespace on keys.
2018-12-20 14:01:30 -08:00
Ludwig Schubert bb19b13467 Fixes #80 by switching a div tag inside a p tag to a span tag.
Thanks, humbertaco!
2018-12-17 13:26:33 -08:00
Ludwig Schubert 7e240ddf4f Work around wrong baseline for math tags resulting from an overzealous contain optimization that became active in Chrome 71. Fixes #96. 2018-12-17 13:17:53 -08:00
Ludwig Schubert 84c400184d Render math tags in all elements under body, not just in d-article.
Should fix #97, but still in testing.
2018-12-17 13:06:18 -08:00
Ludwig Schubert cc6b6bf595 Fix #95 in Chrome 69+, Safari, Firefox by reverting to JS based tooltip positioning. Also DRYs some styles 2018-12-17 12:59:38 -08:00
Ludwig Schubert 3c2f782e74 Fix scope typo 2018-08-30 15:36:55 -07:00
Ludwig Schubert a5f663c249 Disable converting ligatures during pre-rendering due to Chrome bug 862648 2018-07-11 13:59:54 -07:00
Ludwig Schubert 5217fd9943 Allow multiple affiliations for authors 2018-06-22 11:56:47 -07:00
Ludwig Schubert a06cb5794c Add Apache License 2018-03-30 10:51:26 -07:00
Ludwig Schubert 7ff8796266 Improve interstitial behavior
Remove if no password during pre-render
Remove if no password during onFrontMatterChanged
Remove self if on production host
2018-03-06 16:13:05 -08:00
Ludwig Schubert 0bc2ce69da Remove hover-box padding. Add footnote-container with padding. 2018-03-06 14:31:42 -08:00
Ludwig Schubert 4fac022efc Merge pull request #74 from distillpub/hoverboxPadding
Restore padding for d-hover-box
2018-03-06 09:09:46 -08:00
Shan Carter dcf01cbc0f Update styles-layout.css 2018-02-27 16:10:15 -08:00
Arvind Satyanarayan c6cd820bc3 Restore padding for d-hover-box
Fixes #73.
2018-02-07 14:23:42 -08:00
Ludwig Schubert 6941ba780d Front matter only writes derived publish dates to data when publishedDate is available. 2017-12-05 11:42:50 -08:00
Ludwig Schubert 71450e9ba8 Fix crash when a citation has no authors in Meta tags transform 2017-12-04 16:50:39 -08:00
Shan Carter b4c8fdc56a No authors bugfix 2017-12-01 15:38:04 -08:00
Ludwig Schubert 000fa088db Special case citations without authors 2017-12-01 15:09:23 -08:00
Shan Carter 6f95c37c2c Update d-title.css 2017-11-22 16:33:48 -08:00
Shan Carter db3af262f2 Update d-title.css 2017-11-22 16:27:13 -08:00
Shan Carter 184e094ae9 Update d-title.css 2017-11-22 16:26:35 -08:00
Shan Carter 350b6c6f67 Update styles-base.css 2017-11-22 14:42:07 -08:00
Shan Carter 0f8f0f5962 Merge 2017-11-21 14:53:38 -08:00
Shan Carter cd4594f320 Fixing NaN !== NaN problem in d-slider.js 2017-11-21 14:51:35 -08:00
Ludwig Schubert b25fd66fd7 Remove stray comment in CSS 2017-11-14 22:52:36 -08:00
Ludwig Schubert 3a643ab7ad Style fixes; moving away from contain: content to avoid cutting off hover boxes. 2017-11-14 12:52:34 -08:00
Ludwig Schubert 3bccc25805 Register Controller listeners before tags customElements get registered. 2017-11-08 14:37:48 -08:00
Ludwig Schubert 2ab9a24a79 explicitly trigger controller load event 2017-11-08 10:16:10 -08:00
Ludwig Schubert e18d011fa8 Move controller registration to components; out of article tag as we now can have e.g. citations outside of article in title 2017-11-08 09:43:29 -08:00
Ludwig Schubert 70d8507938 Make polyfills link absolute. Release 2.2.7 2017-11-07 15:46:54 -08:00
Ludwig Schubert 315e888810 Add DOI to bibtex citation; minor style fix 2017-11-07 15:13:04 -08:00
Ludwig Schubert ebffcb4416 Fix typo 2017-10-24 17:02:03 -07:00
Ludwig Schubert f355ff6894 ONly remove script tag if we find it in polyfills 2017-10-24 16:51:17 -07:00
Ludwig Schubert f388c39553 WIP switch to webcomponents loader async polyfills; multiple small fixes for Firefox and generally more defensive coding 2017-10-24 16:48:48 -07:00
Shan Carter b8d26a4dac Fixing nasty firefox/polyfill bug 2017-10-24 15:33:37 -07:00
Shan Carter 94bba88924 Adding hover box element 2017-10-24 13:59:48 -07:00
Shan Carter 4c9c387760 Fixing hoverbox bug on safari 2017-10-24 11:35:13 -07:00
Shan Carter 33714c9ca4 Tweaking mobile styles 2017-10-24 10:57:05 -07:00
Shan Carter a43db020b1 Article style tweaks 2017-10-24 09:31:37 -07:00
Ludwig Schubert ac5a18a7d4 Merge branch 'v2' of github.com:distillpub/template into v2 2017-10-23 15:50:20 -07:00