<div dir="ltr">Matthias is right - we don't actually have to prefix every name, we can just scope our CSS based on the outer ipython container.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 12:04 PM, Matthias Bussonnier <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Short from my phone:<div><br></div><div>Could we add an .ipython class to body,</div><div>And wrap the all less import in a .ipython{}</div>
<div><br></div><div>CSS will then only apply to elements that are included in a div.ipython ?<span></span><br>
<br>Le jeudi 4 juillet 2013, Brian Granger a écrit :<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There are a couple of factors going on:<br>
<br>
* We are now minimizing the stylesheet which obscures everything.<br>
* We are transitioning to using bootstrap. You may have direct<br>
conflicts with bootstrap classes as well as ours<br>
* Our css classes are horribly named - generic names like "cell" or<br>
"selected". To address this we are planning on renaming our css<br>
classes using the following convention:<br>
<br>
ipy-cell-selected<br>
ipy-notebook-foo<br>
<br>
We probably won't have time to do all of our classes before 1.0, but<br>
we can prioritize the ones you are having problems with. Can you open<br>
an issue for this and provide us with a list of the ones you are<br>
running into?<br>
<br>
Cheers,<br>
<br>
Brian<br>
<br>
<br>
On Thu, Jul 4, 2013 at 9:10 AM, Jacob Vanderplas<br>
<<a>jakevdp@cs.washington.edu</a>> wrote:<br>
> Hi,<br>
> I've been working on adapting the recently-merged nbconvert refactor to work<br>
> with my Pelican blogging plugin, and am having a really difficult time. In<br>
> particular, the header content produced by the new nbconvert (via<br>
> CSSHTMLHeaderTransformer) contains a lot of extra stuff compared to the old<br>
> version. This is conflicting with the default blog theme, and leading to<br>
> some results which are not very pretty.<br>
><br>
> In the old iteration of the notebook plugin, I used about half a dozen<br>
> regular expression replace statements to modify the stylesheet & content and<br>
> make it play well with the blog style. My hope was that the new nbconvert<br>
> would be flexible enough to obviate the need for this sort of text-mangling;<br>
> in reality the required text-mangling in the new version is much more<br>
> extensive. I've been working at it for several hours, and still don't have<br>
> a suitable solution that leads to nicely-formatted notebooks within blog<br>
> posts.<br>
><br>
> For those of you familiar with the new nbconvert: what is the reason for the<br>
> changes in the default CSS styles between nbconvert 1 and 2? Is there a<br>
> good way to recover the old style sheet within the new codebase?<br>
><br>
> Thanks,<br>
> Jake<br>
><br>
> _______________________________________________<br>
> IPython-dev mailing list<br>
> <a>IPython-dev@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
><br>
<br>
<br>
<br>
--<br>
Brian E. Granger<br>
Cal Poly State University, San Luis Obispo<br>
<a>bgranger@calpoly.edu</a> and <a>ellisonbg@gmail.com</a><br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a>IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>