Skip to content
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

Merged
merged 7 commits into from Nov 11, 2013
Merged

Css cleaning #4444

merged 7 commits into from Nov 11, 2013

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Oct 27, 2013

Move some vbox/hbox/reverse classes from js to less (reflect changes in nbconvert html templates also)

Split notebook/style.less into 2 files app.less / style.less
second one do not contain app-specific css (like menubar, tooltip, celltoolbar).

switch import in master files style.less to import from app.less.

recompile css.

@Carreau
Copy link
Member Author

Carreau commented Oct 27, 2013

Note that upgrading to less.js 1.4 and recompiling lead to a much cleaner css if we have repetitive import.
Which would again simplify our css a lot by having style.less just importing ipython.less.

@minrk
Copy link
Member

minrk commented Oct 28, 2013

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?

@damianavila
Copy link
Member

I like moving the hbox / vbox into less classes.

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...

@Carreau
Copy link
Member Author

Carreau commented Oct 29, 2013

I like moving the hbox / vbox into less classes. Are there any left, or did you get them all?

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.

@Carreau
Copy link
Member Author

Carreau commented Nov 2, 2013

notebook.less already exist so i've just inverted style.less and app.less

mainly helpfull for nbviewer responsive css to have the prompt
above the code cells, and have the correct width.
@Carreau
Copy link
Member Author

Carreau commented Nov 5, 2013

.prompt width->min-width`; mainly for nbviewer where I want hbox instead of vbox on phones.

@Carreau
Copy link
Member Author

Carreau commented Nov 10, 2013

Ping ?

@minrk
Copy link
Member

minrk commented Nov 10, 2013

It still seems odd to me that app.less has the styling for just the notebook document when it is not the app, rather than the other way around. Other than that, everything looks good. notebook.less seems the obvious name to me, but as you pointed out that's taken. Maybe style_noapp.less?

@ellisonbg
Copy link
Member

I will try to look at this one

Sent from my iPhone

On Nov 10, 2013, at 2:52 PM, Min RK notifications@github.com wrote:

It still seems odd to me that app.less has the styling for just the notebook document when it is not the app, rather than the other way around. Other than that, everything looks good. notebook.less seems the obvious name to me, but as you pointed out that's taken. Maybe style_noapp.less?


Reply to this email directly or view it on GitHub.

@Carreau
Copy link
Member Author

Carreau commented Nov 11, 2013

renamed to style_noapp.less.

as it already exist in Bootstrap
@Carreau
Copy link
Member Author

Carreau commented Nov 11, 2013

use baseBorderRadius instead of corner_radius as it already exist in Bootstrap

@minrk
Copy link
Member

minrk commented Nov 11, 2013

Looks good to me now. Thanks!

@damianavila
Copy link
Member

I don't like style_noapp name, but I don't have a better one to propose... and, at the end, it is just a name... so +1 to merge it.

@minrk
Copy link
Member

minrk commented Nov 11, 2013

I don't love it, but it gets the point across: this is style.less, but without the app-specific bits.
Merging away, then.

minrk added a commit that referenced this pull request Nov 11, 2013
CSS cleaning

- vbox / hbox via classes
- adds notebook/style_noapp.less, which excludes body/toolbar/menubar stuff not necessary in embedded contexts
@minrk minrk merged commit 89dd354 into ipython:master Nov 11, 2013
@Carreau Carreau deleted the css-cleaning branch June 4, 2014 12:50
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
CSS cleaning

- vbox / hbox via classes
- adds notebook/style_noapp.less, which excludes body/toolbar/menubar stuff not necessary in embedded contexts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants