doc/book/en/devweb/css.rst
branchstable
changeset 5394 105011657405
parent 4442 7bc0e4ed4109
child 5400 b7ab099b128a
equal deleted inserted replaced
5393:875bdc0fe8ce 5394:105011657405
       
     1 .. -*- coding: utf-8 -*-
       
     2 
       
     3 CSS Stylesheet
       
     4 ---------------
       
     5 Conventions
       
     6 ~~~~~~~~~~~
       
     7 
       
     8 XXX external_resources variable
       
     9     naming convention
       
    10     request.add_css
       
    11 
       
    12 
       
    13 Extending / overriding existing styles
       
    14 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
    15 
       
    16 We cannot modify the order in which the application is reading the CSS. In
       
    17 the case we want to create new CSS style, the best is to define it a in a new
       
    18 CSS located under ``myapp/data/`` and use those new styles while writing
       
    19 customized views and templates.
       
    20 
       
    21 If you want to modify an existing CSS styling property, you will have to use
       
    22 ``!important`` declaration to override the existing property. The application
       
    23 apply a higher priority on the default CSS and you can not change that.
       
    24 Customized CSS will not be read first.
       
    25 
       
    26 
       
    27 CubicWeb stylesheets
       
    28 ~~~~~~~~~~~~~~~~~~~~
       
    29 XXX explain diffenrent files and main classes