doc/book/en/B1130-css.en.txt
author sylvain.thenault@logilab.fr
Thu, 30 Apr 2009 10:33:49 +0200
branchtls-sprint
changeset 1572 469787f6ea2b
parent 293 a21688a55d21
permissions -rw-r--r--
delete-trailing-whitespaces
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
293
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     1
.. -*- coding: utf-8 -*-
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     2
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     3
CSS changes
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     4
===========
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     5
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     6
XXX FIXME explain CSS used by cubciweb
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     7
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     8
We cannot modify the order in which the application is reading the CSS. In
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
     9
the case we want to create new CSS style, the best is to define it a in a new
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
    10
CSS located under ``myapp/data/`` and use those new styles while writing
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
    11
customized views and templates.
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
    12
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
    13
If you want to modify an existing CSS styling property, you will have to use
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
    14
``!important`` declaration to override the existing property. The application
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
    15
apply a higher priority on the default CSS and you can not change that. 
a21688a55d21 [doc] Move out from tutoriel RSS and CSS to make it independant chapters. Adds a conclusion to the tutorial.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff changeset
    16
Customized CSS will not be read first.