impossible to find how to config table of comments managment view
jerome-diver opened this issue · 2 comments
I do generate views for be able to manage design of views for the_comments gem (have the_comments.scss in asset/stylsheet directory).
But (from named element shown from firebug), on the_comments.scss, it is not possible (or show me an example...), for example, to change the background-color of the table of the manage view page.
this manage view page CSS show by firebug on view is:
.comments > .comment > .panel > .panel-body > .comment_body, .table
and do change background-color for tr, th, td and all of them through these named elements/class has no effect on the view.
It is a problem and i not find any information on your doc on that.
Please, tell me how to resolve that ? my text color is white, my pages views are black... how to change the background-color of the table in the view page of manage view of the_comment ?
@jerome-diver Hello! I see many ways to customize your views with assets, for example
- copy content of css/js files from repo to your project with names like
my_custom_comments.css.sass
. Change css code as you witsh and require new css files to your app instead default files of the_comments - To write new one css file, require it after default the_comments css, and use
!important
for required selectors
Hello @the_teacher, thanks for your answer...
for resolve it, the part "2)" of your answer helped me: i forgot (and doesn't knew) to do a @import in my application.sass file (it should be "require" if application.css file). After that, the the_comments.css.scss file information put last time works now: table background color is black.
I not read it in the doc (maybe it is inside, but i not show it).
Thank you for your help and thank you for this nice gem, it is perfect.