Jsoneditor: Problem with css code for overriding

Created on 6 Aug 2019  路  8Comments  路  Source: josdejong/jsoneditor

div.jsoneditor

Hello, i found this as hough problem.

Your code start really strange for your application. Our devs used a lot, but we need to change style of this app and hit this css problem. 1st is css not some preprocessor like scss or less (prefer scss).

2nd in your css code on 4th row you make 2 important in beginning of file!! I think this is to much and is really incorrect. Can you improv械 option for overriding by removing !important's and start all styles from one general class name only.

<div class="jsoneditor"> ... </div>

And all inside this div depend on this class name.

Also i strongly suggest you to move it on SCSS. Then the project will be more flexible and good.

question

All 8 comments

Thanks for your input.

The usage of !important is indeed not pretty, though you can still override it for custom styling.

A PR replacing the usage of !important or even move to SCSS would be welcome :)

Ok i will update project :) and move to SCSS

More Q :)

Search box is too complicate with this 2 tables, can i update it and move it to divs. This means also to change display to flex. But you write on website that the tool support IE8+, but if i want to use flex-box model needs to pump version of IE to 10. If this was compromise from your side i will be happy to upgrade. :)

Thanks for your offer! The IE8+ was a leftover, I've changed that to IE11 now (like JSONEdtior itself already mentioned in the readme: https://github.com/josdejong/jsoneditor#json-editor).

A small refactoring to use flexbox here and there would be very welcome! That's also needed for the main menu / navigation bar / contents / status bar. Please be careful not to make a _too_ big PR at once, preferrably one PR addresses one thing, else it's hard to review.

A small refactoring to use flexbox here and there would be very welcome! That's also needed for the main menu / navigation bar / contents / status bar. Please be careful not to make a _too_ big PR at once, preferrably one PR addresses one thing, else it's hard to review.

know ... to late .. movement from css to scss was big changes for files

@ppetkow is your initial concern resolved with the refactoring to SCSS that you did? Can we close this issue?

Yes, definitely! Thank you

:+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sergibondarenko picture sergibondarenko  路  4Comments

fykcz picture fykcz  路  4Comments

champ51 picture champ51  路  6Comments

PeterBurner picture PeterBurner  路  3Comments

CodeVam picture CodeVam  路  3Comments