First time here? Check out the FAQ!
1

How do I go about editing the css?

  • retag add tags

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!

dharrah's avatar
21
dharrah
asked 2015-08-03 14:27:50 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2015-08-07 11:26:49 -0500
edit flag offensive 0 remove flag delete link

Comments

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

dharrah's avatar dharrah (2015-08-07 11:28:37 -0500) edit

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 (2015-08-07 11:34:36 -0500) edit
add a comment see more comments