New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Css cleaning #4444
Css cleaning #4444
Conversation
app specific/not app specific
Note that upgrading to less.js 1.4 and recompiling lead to a much cleaner css if we have repetitive import. |
I like moving the hbox / vbox into less classes. Are there any left, or did you get them all? I might reverse the app/style.less logic - add a 'notebook.less' that is only the notebook structure styling, and leave style.less as everything. I'm not sure about that, though. Do you have a preference? |
I agree... Regarding the the app/style.less, I like the logic proposed by this PR, it seems more clear (to me) instead of a style.less as everything... |
There is 1 or left but it is notebook-app specific the vbox that put the celltoolbar on top of the cell IIRC, but as it does not have any other class there is not much to move to less. I can inverse style <-> app I don't have strong feeling. |
|
mainly helpfull for nbviewer responsive css to have the prompt above the code cells, and have the correct width.
|
Ping ? |
It still seems odd to me that |
I will try to look at this one Sent from my iPhone
|
renamed to |
as it already exist in Bootstrap
use baseBorderRadius instead of corner_radius as it already exist in Bootstrap |
Looks good to me now. Thanks! |
I don't like |
I don't love it, but it gets the point across: this is style.less, but without the app-specific bits. |
CSS cleaning - vbox / hbox via classes - adds notebook/style_noapp.less, which excludes body/toolbar/menubar stuff not necessary in embedded contexts
CSS cleaning - vbox / hbox via classes - adds notebook/style_noapp.less, which excludes body/toolbar/menubar stuff not necessary in embedded contexts
Move some
vbox
/hbox
/reverse
classes from js to less (reflect changes in nbconvert html templates also)Split
notebook/style.less
into 2 filesapp.less
/style.less
second one do not contain app-specific css (like menubar, tooltip, celltoolbar).
switch import in master files
style.less
to import fromapp.less
.recompile css.