Ask Your Question

How do I go about editing the css?

asked 2015-08-03 14:27:50 -0500

dharrah's avatar

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-07 11:26:49 -0500

Evgeny's avatar

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.

edit flag offensive delete link more


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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-08-03 14:27:50 -0500

Seen: 1,153 times

Last updated: Aug 07 '15