CSS
All this changes is applied to widget_css:
Insert variables
------------------------------------------------
With a php similar sintaxis, you can insert some predefined variables in css
(field widget_css) like
Example:
#search_buttton { background-image: url(images/$language/search.png); }
body { background-image: url(images/$view/body.png) ;...)
There are three predefined variables: $site, $view and $language. No echo or
markup is required.
Only $ and variable name.
Create own variables
----------------------
You can create your own variables using a declarations block;
example
(declarations(
$w = 500 /* coment is allowed using css style)
$col_w = ($w/2)
$title_color= #red;
$basefont= 12
$linefont = ($basefont*1.2) /* expression must be surrounde by () */
)declarations)
Expression
----------
You can insert expression, always delimited by (), in css:
div.col {
width: ($width/3) }
A css for each view / language
-------------------------------
You can filter css block by view/language (language is optional):
(css( bluemarine:
body { background-color: bluemarine)
)css)
(css( */arabic
body { text-direction:...
)css)
You can make this combination
(css( bluemarine dark :... )css) ->one or more condition. Only one must
match (or)
(css( */en : all view in english
(css( */!ru )css) all excepts russion
You can nested (css( and include declarations blocks;
(css(tablet:
(declarations( *:
$width:600
)declartions)
(css(bluemarine: ..)css)
(css(dark: ..)css))
in few words:
================
Operators allowed: + - * / \ (integer division) % (module), parentesis (),
Variables: begin with $, then one letter or underscore then more letters,
underscore or numbers.
declarations blocks contains:
- one declaration (var = something) by line. Not ending ";"
- not nested
- can be conditional (declaration( bluemarine : ..... )declarations)
css conditional:
- can be nested
- can contain declarations block, o text block.
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp