jakevdp / PythonicPerambulations

Old source for jakevdp.github.io. New source at http://github.com/jakevdp/jakevdp.github.io-source
89 stars 72 forks source link

Mobile friendlyness. #5

Open Carreau opened 9 years ago

Carreau commented 9 years ago

I guess you might have to change things in the pelican plugin, but it would be nice to remove the hardcoded hbox css class on .cell and apply it through css, and switch to vbox on mobile via media-query. That way the code prompt are does not take with on mobile view, so the code is more readable. That's what nbviewer do.

Side note, as I'm sure you are using IPython master and python 3 you can also use \beta<tab> in notebook to get your unicode symbol to have even shorter code snippet. But most people code in ascii so that would make you a hipster, right ? ;-)

jakevdp commented 9 years ago

Good point!

Actually, I'm still using IPython 1.1 in the blog build process. I haven't managed to catch the Pelican plugin up with all the CSS changes that happened in IPython 2.0. It's a really hard thing to do well... perhaps if I ever get to changing that, I'll change the hbox as well.