Commit graph

76 commits

Author SHA1 Message Date
Endilie Yacop Sucipto
c8bc00a3a7 Enable using Prism for syntax highlighting (#735)
* Enable user to use prism.js as syntax highlighter

* add package-lock

* if 'usePrism' is true, use prismjs on all languages

* don't get lang by hljs if use prism

* Update api-site-config.md

* Update api-doc-markdown.md

* only load prism css when usePrism is true
2018-06-09 11:38:01 -07:00
Paulus Schoutsen
b3d59f8a0f Disable the padding of the p tag inside the blockquote tag (#711)
* Disable the padding of the p tag inside the blockquote tag

* Make CSS rule more specific.
2018-05-30 20:38:02 -07:00
Paolo Bernardini
2c74d93760 Fix onPageNav not showing on Safari (#687)
Fixes #686 

adding supports ((position: -webkit-sticky) to support Safari
2018-05-22 22:05:41 -07:00
Noam Elboim
67c84c185c Fix sticky footer to work on index page (#674)
* fixing sticky footer not being sticky

* remove unneeded flex rules

* Revert "remove unneeded flex rules"

This reverts commit 9b8d1809ca.

* adding flex-grow to first-child

* adding min-height in 'vh' to .navPusher for it to work on IE11
2018-05-20 22:31:45 -07:00
Endilie Yacop Sucipto
aae106c018 Enable Facebook comments on blog posts (#673)
* Enable comment on blog post

* adjust css

* Tweak
2018-05-19 09:26:57 -07:00
Endilie Yacop Sucipto
f8521c2fe1 Enhance footer with Facebook and Twitter buttons (#666)
* enhance footer with social media buttons

* Update api-site-config.md

* Update Footer.js

* fix minor issue on social-footer

* update facebookAppId description in api-site-config

* rm heading & pad footer social button

* Update api-site-config.md
2018-05-17 21:26:06 -07:00
Ahmad Alfy
e3b4f3945e Fix collapse of sidebar caused by #646 (#653) 2018-05-08 15:25:11 -07:00
Ahmad Alfy
0ea685d455 Fix misalignment of the sidebar and the content (#650) 2018-05-07 17:59:47 -07:00
Ahmad Alfy
432bdffb22 Fix collapse of main content on "Users" page on IE11 (#646) 2018-05-06 15:37:12 -07:00
Ahmad Alfy
5b3f54741e Fix flex children's width not calculated correctly on IE11 (#644)
This is a known issue on IE11 caused by the fact that IE add the padding value to the `flex-basis` leading to increase in the size of the column beyond intended. The block behave as if has `box-sizing` set to `border-box` even if it is set correctly.

Reference: https://github.com/philipwalton/flexbugs#flexbug-7
2018-05-05 22:58:58 -07:00
Ahmad Alfy
17dd6d9c8e Fix font rendering on IE11 (#642)
This is an issue on IE11, it cannot pick the correct system font because the font `-apple-system` makes the value invalid and hence making the whole declaration invalid.

A good solution is to split the shorthand version into separate properties/values and it will work.
2018-05-05 22:42:00 -07:00
Ahmad Alfy
6d77403dc1 Fix navigation collapse on IE11 (#641)
* Fix navigation collapse on IE11
2018-05-05 21:49:06 -07:00
Ahmad Alfy
b220ec2f23 Implement sticky footer using flexbox (#637)
Implemented the solution provided [here](https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/) to allow the footer to stick downward no matter how much content the page contain.
2018-05-05 17:56:43 -07:00
Yangshun Tay
545a053289 Add Facebook copyright headers (#633) 2018-05-04 09:40:07 -07:00
Yangshun Tay
be54c8f035 Fix header anchor alignment (#635) 2018-05-04 08:29:04 -07:00
Amy Lam
7fa0f910ac On mobile, hide title if logo exists (#629)
* On mobile, hide title if logo exists

* Run Prettier, use ternary, reorder

* Rename class for clarity

* Update main.css
2018-05-03 10:54:25 -07:00
Yangshun Tay
ef7f8b061f Reduce redundant css (#621) 2018-04-29 22:24:33 -07:00
Yangshun Tay
812f2be6e3 Sidebar revamp (#617)
* Revamp sidebar

* Change links color

* Tweak for mobile
2018-04-28 18:44:02 -07:00
Yangshun Tay
327d044362 Improve code block appearance (#609) 2018-04-27 06:21:36 -07:00
Yangshun Tay
3a24606887 Improve <table> appearance (#607) 2018-04-26 08:39:26 -07:00
Yangshun Tay
b23b0def1d Fix CSS media queries (#576) 2018-04-17 09:47:04 -07:00
Yangshun Tay
ba024a25c7 Fix search bar width for mobile nav (#575)
* Shorten search bar width for mobile nav

* Remove min-device-width

* Use max-width
2018-04-17 08:17:20 -07:00
Limon Monte
858b6f347f Fix body height by changing CSS height property to min-height (#556) 2018-04-13 08:40:58 -07:00
Elian Ibaj
c437f7be37 Use markdown-toc (#524) 2018-04-04 10:19:03 -07:00
Ujjwal Sharma
d16d2aa4b3 Fix problems with a horizontal scrollbar (#518) 2018-03-19 08:45:53 -07:00
Ujjwal Sharma
a7acc7d794 Make sure the sitemap in footer is left aligned (#509)
* Make sure the sitemap in footer is left align

Fixes: https://github.com/facebook/Docusaurus/issues/485

* Restore original max-width and change width inside media query
2018-03-18 20:40:24 -07:00
Elian Ibaj
56bae1d70c Fix on-page nav height css bug (#505) 2018-03-14 12:42:38 -07:00
Elian Ibaj
48ee457ec9 Add active link classes to site navigation menu (#463) 2018-03-04 08:53:31 -08:00
Elian Ibaj
4ff2fe280e Add separate on-page navigation sidebar (#475) 2018-03-03 21:23:59 -08:00
Maaz Syed Adeeb
0dad6d562f Adding scrollbar to header, only on mobile (#452) 2018-02-14 16:39:41 -08:00
Joel Marcey
69603c968e Revert "Adding scrollbar to header when it overflows (#444)"
This reverts commit 5e39b2e01f.
2018-02-12 07:30:37 -08:00
Maaz Syed Adeeb
5e39b2e01f Adding scrollbar to header when it overflows (#444) 2018-02-11 16:39:10 -08:00
Rick Hanlon II
4c2558e8bd Fix margin for right-aligned images (#398)
Update so imageAlign* has a class for all directions
2018-01-17 19:04:03 -08:00
Joel Marcey
2e17953199 Revert "Issue 254 (#343)"
This reverts commit c921b8a38c.

The search ended up misaligned on Chrome
2018-01-11 21:08:33 -08:00
Richard Zhang
c921b8a38c Issue 254 (#343) 2018-01-11 19:38:54 -08:00
neilsutcliffe
b374391446 Ensured that any H1 elements in content appear correct size (#306) 2017-12-18 10:17:15 -08:00
Richard Zhang
2f860ecfe7 Issue 245 fix (#299)
* without having having to worry about site design.

Let me know if double having is intentional

* sitemap display flex with direction as column on mobile
2017-12-17 16:35:39 -08:00
Joel Marcey
8481791221 Update the Docusaurus help page 2017-12-13 15:26:24 -08:00
Ricky Vetter
c22203523f use faded primaryColor background for inline code snippets instead of link color (#276) 2017-12-12 12:46:52 -08:00
Héctor Ramos
80fc8169b7 Fix background css (#261) 2017-12-05 13:35:15 -08:00
Ricky Vetter
71dec39c3b Change pointer events on language dropdown (#233)
The dropdown positioning makes it overlay the main menu on mobile layout. This means that clicking the language button a second time doesn't close the menu.
2017-11-16 09:23:54 -08:00
Christopher Chedeau
f19bd80d80 Center iframes and make them responsive (#209)
So if you add an image and an iframe (youtube embed), they behave the same at all resolutions.
2017-11-01 13:40:11 -07:00
Ricky Vetter
1ba37f857c More breakpoint consolidation fixes 2017-10-30 22:50:51 -07:00
Ricky Vetter
b59b58af0d
Consolidate break points
These 900 break points were always triggered with the mobile nav. They don't make sense with the desktop navigation. See photo.
2017-10-30 22:37:07 -07:00
Joel Marcey
47c955c7b0
Mobile nav at 736px instead of 1024px (#179)
* Mobile nav at 736px instead of 1024px

I was not totally clear on the issue here, but I assumed is that you wanted normal navigation to begin at 736px instead of 1024px. I think this does it.

Tested 735px was mobile, 736px was normal

Fixes #102

* 735 and 736 in more places
2017-10-30 11:00:04 -07:00
Ricky Vetter
10e8c7cba3 enforce 70% width on mainContainer (#196) 2017-10-30 09:51:44 -07:00
Héctor Ramos
73b9a1128b Switch to GFM-style heading anchors (#164) 2017-10-26 16:12:17 -07:00
Ricky Vetter
3017554616 Delete unused styles (#180) 2017-10-26 12:10:53 -07:00
Héctor Ramos
fb294ab845 [markdown] Remove client-side syntax highlighting (#189)
* Remove client side highlighting

* Update CSS rules to render plain code blocks with expected left border

* Add back codeColor background color config

* Ensure all pre code blocks use Highlight.js classes
2017-10-26 12:07:02 -07:00
Héctor Ramos
b832176dc6 [markdown] Switch to Remarkable (#153)
* Switch to Remarkable
* Clean up references to custom code blocks
* Remove valdiateDOMNesting warning
* Add syntax highlighting
* Add Reason support
* Breaking change: prismColor to codeColor, remove CompLibrary.Prism, expose hljs
* Completely remove Prism and associated CSS rules
* Support loading plugins and scripts
* Remove CSS rules, allowing Highlight.js theme to be used entirely
* Remove unnecessary webplayer script
2017-10-24 09:45:21 -07:00