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

impossible to find how to config table of comments managment view #53

Open
jerome-diver opened this issue Jul 12, 2016 · 2 comments
Open

Comments

@jerome-diver
Copy link

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 ?

@the-teacher
Copy link
Member

@jerome-diver Hello! I see many ways to customize your views with assets, for example

  1. 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
  2. To write new one css file, require it after default the_comments css, and use !important for required selectors

@jerome-diver
Copy link
Author

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.

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

No branches or pull requests

2 participants