Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
728 views
in Q2A Core by
Hello. How I can generate a custom css style for qa-main?. Eg
 
If I am on page "Questions" is generated css class: qa-main-questions
If I am on page "Hot" is generated css class: qa-main-hot
unanswered...
ask....
 
Thx!!!
Q2A version: Last

1 Answer

+2 votes
by
selected by
 
Best answer

Check on <body> tag. Eveery page has own body class so target qa-main using body class.. for example

for home page ( qa ) body class is qa-template-qa so you can target qa-main like 

.qa-template-qa .qa-main{

//your css for home page (qa)

}

.qa-template-hot .qa-main{

//your css for hot page

}

by
I did not check. Thank you!!
by
you are welcome :)
...