Is the themecreator file supposed to be used additional to the normal datatables.css?
Is the themecreator file supposed to be used additional to the normal datatables.css?
Chrom
Posts: 44Questions: 15Answers: 1
I am wondering if the theme creator css or scss should be used additionally to the normal .css or just alone.
Also if I have several datatables with minor differences in styling, woud it be a good practice to use one theme file and write the changes in there or use several theme files? Or write the css changes in an entirely different file e.g. the main style file for the project?
Answers
Alone. Basically the theme creator takes our standard style file and sets some SCSS variables, then builds the CSS file from that.
It should also be noted that if you are using any of the styling integration frameworks (Bootstrap, Fomantic, etc) then the theme creator won't be of any use.
For tables with minor styling differences, what I would do myself is add a different class to designate each type of style you want. e.g.
<table class="display addresses"
and then usetable.addresses
as a selector in CSS to customise the table a bit.Allan