Skin settings.
71
lms/askbot/skins/README
Normal file
@@ -0,0 +1,71 @@
|
||||
=============================
|
||||
Customization of Askbot skins
|
||||
=============================
|
||||
|
||||
The default skin at the moment is in the development, however
|
||||
it is already possible to start customizing your site without
|
||||
incurring much maintenance overhead.
|
||||
|
||||
Current status of templates
|
||||
===========================
|
||||
The two busiest templates are - the "main" page and the "question" page,
|
||||
the main page is more or less complete. "Question" page will be significantly
|
||||
refactored in the near future.
|
||||
|
||||
How skins work in Askbot
|
||||
========================
|
||||
|
||||
The skins reside in up to two directories:
|
||||
|
||||
* `askbot/skins` in the source code (contains any stock skins)
|
||||
* directory pointed to by a ASKBOT_EXTRA_SKINS_DIR in your settings.py
|
||||
with any other skins
|
||||
|
||||
Currently, the skin is selected by the site administrator in the live settings.
|
||||
Also, at the moment skin default is special - it serves any resources
|
||||
absent in other skins. In a way - all other skins inherit from the "default".
|
||||
|
||||
Templates and media are resolved in the following way:
|
||||
* check in skin named as in settings.ASKBOT_DEFAULT_SKIN
|
||||
* then skin named 'default'
|
||||
|
||||
How to customize a skin
|
||||
=======================
|
||||
|
||||
There are three options:
|
||||
|
||||
* edit custom css via the settings interface - good for small tweaks
|
||||
(no need to directly log in to the server)
|
||||
* create a new skin in separate files (need direct access to the server
|
||||
files, more maintenance overhead)
|
||||
* directly modify the "default" skin (as in the previous option - need
|
||||
direct access to the server, less maintenance overhead, some
|
||||
knowledge of git system is required)
|
||||
|
||||
The first option only allows to modify css and add custom javascript.
|
||||
The latter two options allow changing the templates as well.
|
||||
|
||||
If you wish to follow the second option, create a directory named the same
|
||||
way as the skin you are building and start adding files with the same names
|
||||
and relative locations as those in the "default" skin.
|
||||
|
||||
NO NEED TO CREATE ALL TEMPLATES/MEDIA FILES AT ONCE as your skin will inherit
|
||||
pieces from the "default".
|
||||
|
||||
The disadvantage of thil second approach is that you will be on your own maintaining
|
||||
the synchrony of your template, stylesheet and the core code.
|
||||
|
||||
Third approach is the best, but it requires (the most basic) use of
|
||||
git source code management software. With git you will easily merge the updates
|
||||
from the development repository.
|
||||
|
||||
Structure of the skin directories
|
||||
=================================
|
||||
Todo.
|
||||
|
||||
To simplify maintenance of the css as the skin is being developed,
|
||||
populate css file `media/style/extra.css` with any rules that will
|
||||
override those in the `media/style/style.css` file. If you do that
|
||||
|
||||
media does not have to be composed of files named the same way as in default skin
|
||||
whatever media you link to from your templates - will be in operation
|
||||
0
lms/askbot/skins/__init__.py
Normal file
BIN
lms/askbot/skins/common/media/images/anon.png
Normal file
|
After Width: | Height: | Size: 687 B |
BIN
lms/askbot/skins/common/media/images/bigbutton.png
Normal file
|
After Width: | Height: | Size: 263 B |
BIN
lms/askbot/skins/common/media/images/bigbuttonhover.png
Normal file
|
After Width: | Height: | Size: 236 B |
BIN
lms/askbot/skins/common/media/images/blue-up-arrow-h18px.png
Executable file
|
After Width: | Height: | Size: 593 B |
BIN
lms/askbot/skins/common/media/images/box-arrow.gif
Executable file
|
After Width: | Height: | Size: 69 B |
BIN
lms/askbot/skins/common/media/images/bullet_green.gif
Executable file
|
After Width: | Height: | Size: 64 B |
BIN
lms/askbot/skins/common/media/images/cc-88x31.png
Executable file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
lms/askbot/skins/common/media/images/cc-by-sa.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
lms/askbot/skins/common/media/images/close-small-dark.png
Executable file
|
After Width: | Height: | Size: 226 B |
BIN
lms/askbot/skins/common/media/images/close-small-hover.png
Executable file
|
After Width: | Height: | Size: 337 B |
BIN
lms/askbot/skins/common/media/images/close-small.png
Executable file
|
After Width: | Height: | Size: 293 B |
BIN
lms/askbot/skins/common/media/images/contributorsback.png
Normal file
|
After Width: | Height: | Size: 714 B |
BIN
lms/askbot/skins/common/media/images/dash.gif
Executable file
|
After Width: | Height: | Size: 44 B |
BIN
lms/askbot/skins/common/media/images/dialog-warning-off.png
Normal file
|
After Width: | Height: | Size: 419 B |
BIN
lms/askbot/skins/common/media/images/dialog-warning.png
Normal file
|
After Width: | Height: | Size: 603 B |
BIN
lms/askbot/skins/common/media/images/djangomade124x25_grey.gif
Executable file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
lms/askbot/skins/common/media/images/dot-g.gif
Executable file
|
After Width: | Height: | Size: 61 B |
BIN
lms/askbot/skins/common/media/images/dot-list.gif
Executable file
|
After Width: | Height: | Size: 56 B |
BIN
lms/askbot/skins/common/media/images/edit.png
Executable file
|
After Width: | Height: | Size: 758 B |
BIN
lms/askbot/skins/common/media/images/expander-arrow-hide.gif
Executable file
|
After Width: | Height: | Size: 126 B |
BIN
lms/askbot/skins/common/media/images/expander-arrow-show.gif
Executable file
|
After Width: | Height: | Size: 135 B |
BIN
lms/askbot/skins/common/media/images/favicon.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
lms/askbot/skins/common/media/images/favicon.ico
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
lms/askbot/skins/common/media/images/feed-icon-small.png
Normal file
|
After Width: | Height: | Size: 669 B |
BIN
lms/askbot/skins/common/media/images/flags/ad.gif
Executable file
|
After Width: | Height: | Size: 371 B |
BIN
lms/askbot/skins/common/media/images/flags/ae.gif
Executable file
|
After Width: | Height: | Size: 361 B |
BIN
lms/askbot/skins/common/media/images/flags/af.gif
Executable file
|
After Width: | Height: | Size: 369 B |
BIN
lms/askbot/skins/common/media/images/flags/ag.gif
Executable file
|
After Width: | Height: | Size: 361 B |
BIN
lms/askbot/skins/common/media/images/flags/ai.gif
Executable file
|
After Width: | Height: | Size: 369 B |
BIN
lms/askbot/skins/common/media/images/flags/al.gif
Executable file
|
After Width: | Height: | Size: 370 B |
BIN
lms/askbot/skins/common/media/images/flags/am.gif
Executable file
|
After Width: | Height: | Size: 363 B |
BIN
lms/askbot/skins/common/media/images/flags/an.gif
Executable file
|
After Width: | Height: | Size: 368 B |
BIN
lms/askbot/skins/common/media/images/flags/ao.gif
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
lms/askbot/skins/common/media/images/flags/ar.gif
Executable file
|
After Width: | Height: | Size: 366 B |
BIN
lms/askbot/skins/common/media/images/flags/as.gif
Executable file
|
After Width: | Height: | Size: 365 B |
BIN
lms/askbot/skins/common/media/images/flags/at.gif
Executable file
|
After Width: | Height: | Size: 361 B |
BIN
lms/askbot/skins/common/media/images/flags/au.gif
Executable file
|
After Width: | Height: | Size: 378 B |
BIN
lms/askbot/skins/common/media/images/flags/aw.gif
Executable file
|
After Width: | Height: | Size: 365 B |
BIN
lms/askbot/skins/common/media/images/flags/ax.gif
Executable file
|
After Width: | Height: | Size: 376 B |
BIN
lms/askbot/skins/common/media/images/flags/az.gif
Executable file
|
After Width: | Height: | Size: 370 B |
BIN
lms/askbot/skins/common/media/images/flags/ba.gif
Executable file
|
After Width: | Height: | Size: 363 B |
BIN
lms/askbot/skins/common/media/images/flags/bb.gif
Executable file
|
After Width: | Height: | Size: 368 B |
BIN
lms/askbot/skins/common/media/images/flags/bd.gif
Executable file
|
After Width: | Height: | Size: 361 B |
BIN
lms/askbot/skins/common/media/images/flags/be.gif
Executable file
|
After Width: | Height: | Size: 359 B |
BIN
lms/askbot/skins/common/media/images/flags/bf.gif
Executable file
|
After Width: | Height: | Size: 358 B |
BIN
lms/askbot/skins/common/media/images/flags/bg.gif
Executable file
|
After Width: | Height: | Size: 360 B |
BIN
lms/askbot/skins/common/media/images/flags/bh.gif
Executable file
|
After Width: | Height: | Size: 367 B |
BIN
lms/askbot/skins/common/media/images/flags/bi.gif
Executable file
|
After Width: | Height: | Size: 374 B |
BIN
lms/askbot/skins/common/media/images/flags/bj.gif
Executable file
|
After Width: | Height: | Size: 368 B |
BIN
lms/askbot/skins/common/media/images/flags/bm.gif
Executable file
|
After Width: | Height: | Size: 367 B |
BIN
lms/askbot/skins/common/media/images/flags/bn.gif
Executable file
|
After Width: | Height: | Size: 373 B |
BIN
lms/askbot/skins/common/media/images/flags/bo.gif
Executable file
|
After Width: | Height: | Size: 359 B |
BIN
lms/askbot/skins/common/media/images/flags/br.gif
Executable file
|
After Width: | Height: | Size: 367 B |
BIN
lms/askbot/skins/common/media/images/flags/bs.gif
Executable file
|
After Width: | Height: | Size: 351 B |
BIN
lms/askbot/skins/common/media/images/flags/bt.gif
Executable file
|
After Width: | Height: | Size: 377 B |
BIN
lms/askbot/skins/common/media/images/flags/bv.gif
Executable file
|
After Width: | Height: | Size: 376 B |
BIN
lms/askbot/skins/common/media/images/flags/bw.gif
Executable file
|
After Width: | Height: | Size: 364 B |
BIN
lms/askbot/skins/common/media/images/flags/by.gif
Executable file
|
After Width: | Height: | Size: 361 B |
BIN
lms/askbot/skins/common/media/images/flags/bz.gif
Executable file
|
After Width: | Height: | Size: 368 B |
BIN
lms/askbot/skins/common/media/images/flags/ca.gif
Executable file
|
After Width: | Height: | Size: 376 B |
BIN
lms/askbot/skins/common/media/images/flags/catalonia.gif
Normal file
|
After Width: | Height: | Size: 238 B |
BIN
lms/askbot/skins/common/media/images/flags/cc.gif
Executable file
|
After Width: | Height: | Size: 371 B |
BIN
lms/askbot/skins/common/media/images/flags/cd.gif
Normal file
|
After Width: | Height: | Size: 243 B |
BIN
lms/askbot/skins/common/media/images/flags/cf.gif
Executable file
|
After Width: | Height: | Size: 364 B |
BIN
lms/askbot/skins/common/media/images/flags/cg.gif
Executable file
|
After Width: | Height: | Size: 359 B |
BIN
lms/askbot/skins/common/media/images/flags/ch.gif
Executable file
|
After Width: | Height: | Size: 332 B |
BIN
lms/askbot/skins/common/media/images/flags/ci.gif
Executable file
|
After Width: | Height: | Size: 368 B |
BIN
lms/askbot/skins/common/media/images/flags/ck.gif
Executable file
|
After Width: | Height: | Size: 362 B |
BIN
lms/askbot/skins/common/media/images/flags/cl.gif
Executable file
|
After Width: | Height: | Size: 364 B |
BIN
lms/askbot/skins/common/media/images/flags/cm.gif
Executable file
|
After Width: | Height: | Size: 369 B |
BIN
lms/askbot/skins/common/media/images/flags/cn.gif
Executable file
|
After Width: | Height: | Size: 366 B |
BIN
lms/askbot/skins/common/media/images/flags/co.gif
Executable file
|
After Width: | Height: | Size: 353 B |
BIN
lms/askbot/skins/common/media/images/flags/cr.gif
Executable file
|
After Width: | Height: | Size: 359 B |
BIN
lms/askbot/skins/common/media/images/flags/cs.gif
Executable file
|
After Width: | Height: | Size: 364 B |
BIN
lms/askbot/skins/common/media/images/flags/cu.gif
Executable file
|
After Width: | Height: | Size: 367 B |
BIN
lms/askbot/skins/common/media/images/flags/cv.gif
Executable file
|
After Width: | Height: | Size: 367 B |
BIN
lms/askbot/skins/common/media/images/flags/cx.gif
Executable file
|
After Width: | Height: | Size: 363 B |
BIN
lms/askbot/skins/common/media/images/flags/cy.gif
Executable file
|
After Width: | Height: | Size: 365 B |
BIN
lms/askbot/skins/common/media/images/flags/cz.gif
Executable file
|
After Width: | Height: | Size: 362 B |
BIN
lms/askbot/skins/common/media/images/flags/de.gif
Executable file
|
After Width: | Height: | Size: 362 B |
BIN
lms/askbot/skins/common/media/images/flags/dj.gif
Executable file
|
After Width: | Height: | Size: 369 B |
BIN
lms/askbot/skins/common/media/images/flags/dk.gif
Executable file
|
After Width: | Height: | Size: 374 B |
BIN
lms/askbot/skins/common/media/images/flags/dm.gif
Executable file
|
After Width: | Height: | Size: 368 B |
BIN
lms/askbot/skins/common/media/images/flags/do.gif
Executable file
|
After Width: | Height: | Size: 362 B |
BIN
lms/askbot/skins/common/media/images/flags/dz.gif
Executable file
|
After Width: | Height: | Size: 370 B |
BIN
lms/askbot/skins/common/media/images/flags/ec.gif
Executable file
|
After Width: | Height: | Size: 362 B |
BIN
lms/askbot/skins/common/media/images/flags/ee.gif
Executable file
|
After Width: | Height: | Size: 364 B |
BIN
lms/askbot/skins/common/media/images/flags/eg.gif
Executable file
|
After Width: | Height: | Size: 363 B |
BIN
lms/askbot/skins/common/media/images/flags/eh.gif
Executable file
|
After Width: | Height: | Size: 359 B |
BIN
lms/askbot/skins/common/media/images/flags/england.gif
Executable file
|
After Width: | Height: | Size: 367 B |
BIN
lms/askbot/skins/common/media/images/flags/er.gif
Executable file
|
After Width: | Height: | Size: 361 B |
BIN
lms/askbot/skins/common/media/images/flags/es.gif
Executable file
|
After Width: | Height: | Size: 360 B |
BIN
lms/askbot/skins/common/media/images/flags/et.gif
Executable file
|
After Width: | Height: | Size: 364 B |
BIN
lms/askbot/skins/common/media/images/flags/europeanunion.gif
Normal file
|
After Width: | Height: | Size: 171 B |
BIN
lms/askbot/skins/common/media/images/flags/fam.gif
Executable file
|
After Width: | Height: | Size: 370 B |
BIN
lms/askbot/skins/common/media/images/flags/fi.gif
Executable file
|
After Width: | Height: | Size: 371 B |
BIN
lms/askbot/skins/common/media/images/flags/fj.gif
Executable file
|
After Width: | Height: | Size: 370 B |
BIN
lms/askbot/skins/common/media/images/flags/fk.gif
Executable file
|
After Width: | Height: | Size: 372 B |