First time here? Check out the FAQ!
1

How do I go about editing the css?
 

I understand that AskBot utilizes lesscss to compile the css. However, I'm having a hard time wrapping my head around the process by which to edit the various css files. I have enabled/disabled the ASKBOT_CSS_DEVEL setting and changed my STATIC_URL to point to /static/ (just trying to give me anything to play with) but the site remains with the stock look.

I've never played around with lesscss and I'm just not "getting it" with what I'm finding on the web.

Any help from you folks would be appreciated!

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
dharrah's avatar
21
dharrah
asked 9 years ago

Comments

see more comments

1 Answer

0

You can edit file /askbot/media/style/style.less then use lessc to compile it into /askbot/media/style/style.css.

Better would be to create a theme as described in the documentation.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 9 years ago
link

Comments

Does that depend on the ASKBOT_CSS_DEVEL setting to be 'True' or 'False'?

dharrah's avatar dharrah (9 years ago)

This setting is not used, just edit the .less file, recompile into .css and then run `collectstatic`. It might also be better to create `extra.css` in your theme as described in the documentation and place css overrides there.

Evgeny's avatar Evgeny (9 years ago)
see more comments