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

nestable.css is overly onerous #81

Open
jh-orange opened this issue Aug 31, 2017 · 9 comments
Open

nestable.css is overly onerous #81

jh-orange opened this issue Aug 31, 2017 · 9 comments

Comments

@jh-orange
Copy link

How about reducing nestable.css to what's needed to actually function? I mean really .dd { max-width: 600px; }?

Even the requirement to add the dd, dd-list, and dd-item (I can see dd-handle, but even that could have a default) is unnecessary: you can figure out who gets what class assigned upon the initial nestable call.

My initial code didn't use the included CSS (from the nestable 1 days). I used jquery to assign the classes and just styled what I needed. Worked great. Until I dragged the cursor out of the nestable div. THen, all by LIs disappeared. Still don't know why. Ended up removing all my custom CSS and included nestable.css and it worked. Nothing in my structure changed.

@pjona
Copy link
Collaborator

pjona commented Sep 6, 2017

@jh-orange check this commit, I added SASS version of our CSS file, so you can change default classes. Example of your .scss file:

$nestable-list-class: "dd-list-custom";

@import "jquery.nestable.scss";

Maybe we can also move some default colors to variables.

@pjona
Copy link
Collaborator

pjona commented Sep 7, 2017

@jh-orange we are open for discussion if you have some proposition how to slim down our CSS, right now there are only needed stuff but maybe you see it differently.

@jh-orange
Copy link
Author

jh-orange commented Sep 7, 2017 via email

@RamonSmit
Copy link
Owner

Welk, sad to hear you didn't like it. We're going to take your input in our consideration. Thanks for the feedback.

@jh-orange
Copy link
Author

jh-orange commented Sep 7, 2017 via email

@pjona
Copy link
Collaborator

pjona commented Sep 8, 2017

The worst is what happens when you start dragging something, because everything the user
defines is lost.

@jh-orange Can you provide your styles or example where it reset user styles?

Maybe we can find common parts and try to make base theme and all what not fit as base put it in another theme.

@jh-orange
Copy link
Author

jh-orange commented Sep 8, 2017 via email

@GertjanRoke
Copy link

@jh-orange could you give a use case for why you would use div's instead of a ordered list?
Because I can't see the reason for using div's instead of ordered list, this package is mostly used for sorting menu items of some sorts.

@jh-orange
Copy link
Author

jh-orange commented Sep 11, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants