web/data/uiprops.py
author Rémi Cardona <remi.cardona@logilab.fr>
Tue, 17 Mar 2015 12:34:07 +0100
changeset 10278 90aab6ddf6d8
parent 10121 23af005426bf
permissions -rw-r--r--
[web/views] Fix PropertyKeyField widget (closes #5087413) CWProperties don't have unittests, this will likely break again.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
"""define default ui properties"""
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
# CSS stylesheets to include systematically in HTML headers
5482
8c8c6d3f3b3a [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
     4
# use the following line if you *need* to keep the old stylesheet
10121
23af005426bf [web] everything old is new again
Julien Cristau <julien.cristau@logilab.fr>
parents: 9661
diff changeset
     5
STYLESHEETS =       [data('cubicweb.css'), ]
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
     6
STYLESHEETS_IE =    [data('cubicweb.ie.css')]
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
     7
STYLESHEETS_PRINT = [data('cubicweb.print.css')]
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     8
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     9
# Javascripts files to include systematically in HTML headers
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    10
JAVASCRIPTS = [data('jquery.js'),
9388
4c34a63bd113 update jquery to 1.10 (closes #2786674)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9379
diff changeset
    11
               data('jquery-migrate.js'),
5658
7b9553a9db65 [ajax] refactor/cleanup low-level ajax functions
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 5483
diff changeset
    12
               data('cubicweb.js'),
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    13
               data('cubicweb.compat.js'),
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    14
               data('cubicweb.python.js'),
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    15
               data('cubicweb.htmlhelpers.js')]
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    16
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    17
# where is installed fckeditor
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    18
FCKEDITOR_PATH = '/usr/share/fckeditor/'
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    19
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    20
# favicon and logo for the instance
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    21
FAVICON = data('favicon.ico')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    22
LOGO = data('logo.png')
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    23
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    24
# rss logo (link to get the rss view of a selection)
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    25
RSS_LOGO = data('rss.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    26
RSS_LOGO_16 = data('feed-icon16x16.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    27
RSS_LOGO_32 = data('feed-icon32x32.png')
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    28
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    29
# XXX cleanup resources below, some of them are probably not used
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    30
# (at least entity types icons...)
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    31
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    32
# images
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    33
HELP = data('help.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    34
SEARCH_GO = data('go.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    35
PUCE_UP = data('puce_up.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    36
PUCE_DOWN = data('puce_down.png')
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    37
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    38
# button icons
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    39
OK_ICON = data('ok.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    40
CANCEL_ICON = data('cancel.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    41
APPLY_ICON = data('plus.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    42
TRASH_ICON = data('trash_can_small.png')
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    43
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    44
# icons for entity types
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    45
BOOKMARK_ICON = data('icon_bookmark.gif')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    46
EMAILADDRESS_ICON = data('icon_emailaddress.gif')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    47
EUSER_ICON = data('icon_euser.gif')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    48
STATE_ICON = data('icon_state.gif')
5444
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    49
f7fdb5dd82f6 [webconfig] introduce property sheets. Use them to replace external_resources
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    50
# other icons
5445
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    51
CALENDAR_ICON = data('calendar.gif')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    52
CANCEL_EMAIL_ICON = data('sendcancel.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    53
SEND_EMAIL_ICON = data('sendok.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    54
DOWNLOAD_ICON = data('download.gif')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    55
UPLOAD_ICON = data('upload.gif')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    56
GMARKER_ICON = data('gmap_blue_marker.png')
4467ed43d97d [web] use uiprops value to compile css transparently, handlig cache and reloading in debug mode
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5444
diff changeset
    57
UP_ICON = data('up.gif')
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    58
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    59
# colors, fonts, etc
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    60
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    61
# default (body, html)
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    62
defaultColor = '#000'
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
    63
defaultFontFamily = "'Bitstream Vera Sans','Lucida Grande','Lucida Sans Unicode','Geneva','Verdana',sans-serif"
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    64
defaultSize = '12px'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    65
defaultLineHeight = '1.5'
5939
a33402c1aa79 [uiprops] use lazystr and update some variables usage in css
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5853
diff changeset
    66
defaultLineHeightEm = lazystr('%(defaultLineHeight)sem')
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    67
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
    68
inputHeight = '1.3em'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
    69
inputPadding = 'O.2em'
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    70
# XXX
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    71
defaultLayoutMargin = '8px'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    72
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    73
# header
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    74
headerBgColor = '#ff7700'
7102
0b7966f7bbcd [uiprops, css] make header background actually modifiable through uiprops
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6663
diff changeset
    75
headerBg = lazystr('%(headerBgColor)s url("banner.png") repeat-x top left')
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    76
7799
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    77
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    78
# scale 3:5 stranded
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    79
# h1 { font-size:2em; }
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    80
# h2 { font-size:1.61538em; }
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    81
# h3 { font-size:1.23077em; }
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    82
#
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    83
# scale le corbusier */
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    84
# h1 { font-size:2.11538em; }
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    85
# h2 { font-size:1.61538em; }
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    86
# h3 { font-size:1.30769em; }
6f84279e0718 [css] use h* title properties from uiprops in cubicweb.old.css (closes #1931476)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7174
diff changeset
    87
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    88
# h
8334
20e38436395f [css] change `h3` and `h4` styles(closes #893244)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 8104
diff changeset
    89
h1FontSize = '2.3em' # 25.3833px
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    90
h1Padding = '0 0 0.14em 0 '
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    91
h1Margin = '0.8em 0 0.5em'
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
    92
h1Color = '#000'
5939
a33402c1aa79 [uiprops] use lazystr and update some variables usage in css
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5853
diff changeset
    93
h1BorderBottomStyle = lazystr('0.06em solid %(h1Color)s')
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    94
8334
20e38436395f [css] change `h3` and `h4` styles(closes #893244)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 8104
diff changeset
    95
h2FontSize = '2em' #
20e38436395f [css] change `h3` and `h4` styles(closes #893244)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 8104
diff changeset
    96
h2Padding = '0.4em 0 0.35em 0' # 22.0667px
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    97
h2Margin = '0'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
    98
8334
20e38436395f [css] change `h3` and `h4` styles(closes #893244)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 8104
diff changeset
    99
h3FontSize = '1.7em' #18.75px
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   100
h3Padding = '0.5em 0 0.57em 0'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   101
h3Margin = '0'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   102
8334
20e38436395f [css] change `h3` and `h4` styles(closes #893244)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 8104
diff changeset
   103
h4FontSize = '1.4em' # 15.45px
20e38436395f [css] change `h3` and `h4` styles(closes #893244)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 8104
diff changeset
   104
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   105
# links
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   106
aColor = '#e6820e'
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   107
5853
89ad81d6972d [css] make body bg color configurable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5819
diff changeset
   108
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   109
# page frame
5853
89ad81d6972d [css] make body bg color configurable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5819
diff changeset
   110
pageBgColor = '#e2e2e2'
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   111
pageContentBorderColor = '#ccc'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   112
pageContentBgColor = '#fff'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   113
pageContentPadding = '1em'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   114
pageMinHeight = '800px'
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   115
6140
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   116
# boxes ########################################################################
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   117
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   118
# title of contextFree / contextual boxes
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   119
contextFreeBoxTitleBgColor = '#CFCEB7'
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   120
contextFreeBoxTitleBg = lazystr('%(contextFreeBoxTitleBgColor)s url("contextFreeBoxHeader.png") repeat-x 50%% 50%%')
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   121
contextFreeBoxTitleColor = '#000'
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   122
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   123
contextualBoxTitleBgColor = '#FF9900'
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   124
contextualBoxTitleBg = lazystr('%(contextualBoxTitleBgColor)s url("contextualBoxHeader.png") repeat-x 50%% 50%%')
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   125
contextualBoxTitleColor = '#FFF'
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   126
6663
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6523
diff changeset
   127
# title of 'incontext' boxes (eg displayed inside the primary view)
6140
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   128
incontextBoxTitleBgColor = lazystr('%(contextFreeBoxTitleBgColor)s')
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   129
incontextBoxTitleBg = lazystr('%(incontextBoxTitleBgColor)s url("incontextBoxHeader.png") repeat-x 50%% 50%%')
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   130
incontextBoxTitleColor = '#000'
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   131
6140
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   132
# body of boxes in the left or right column (whatever contextFree / contextual)
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   133
leftrightBoxBodyBgColor = '#FFF'
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   134
leftrightBoxBodyBg = lazystr('%(leftrightBoxBodyBgColor)s')
6523
67bff8734a5b [css] typo
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6140
diff changeset
   135
leftrightBoxBodyColor = 'black'
6140
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   136
leftrightBoxBodyHoverBgColor = '#EEEDD9'
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   137
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   138
# body of 'incontext' boxes (eg displayed insinde the primary view)
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   139
incontextBoxBodyBgColor = '#f8f8ee'
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   140
incontextBoxBodyBg = lazystr('%(incontextBoxBodyBgColor)s')
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   141
incontextBoxBodyColor = '#555544'
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   142
incontextBoxBodyHoverBgColor = lazystr('%(incontextBoxBodyBgColor)s')
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   143
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   144
65a619eb31c4 [boxes] introduce new boxes system
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5939
diff changeset
   145
# table listing & co ###########################################################
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   146
listingBorderColor = '#ccc'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   147
listingHeaderBgColor = '#efefef'
8138
86da196640ae [css] fix typo in uiprops/css
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 8104
diff changeset
   148
listingHighlightedBgColor = '#fbfbfb'
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   149
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   150
# puce
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   151
bulletDownImg = 'url("puce_down.png") 98% 6px no-repeat'
5479
6ba3587c5cda [css] start using uiprops in cubicweb.css
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5445
diff changeset
   152
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   153
#forms
5939
a33402c1aa79 [uiprops] use lazystr and update some variables usage in css
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5853
diff changeset
   154
formHeaderBgColor = lazystr('%(listingHeaderBgColor)s')
5819
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   155
helperColor = '#555'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   156
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   157
# button
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   158
buttonBorderColor = '#edecd2'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   159
buttonBgColor = '#fffff8'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   160
buttonBgImg = 'url("button.png") repeat-x 50% 50%'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   161
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   162
# messages
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   163
msgBgColor = '#f8f8ee'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   164
infoMsgBgImg = 'url("information.png") 5px center no-repeat'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   165
errorMsgBgImg = 'url("error.png") 100% 50% no-repeat'
1017163825c7 [css] more css rework, need visual test in compat/new modes
katia
parents: 5658
diff changeset
   166
errorMsgColor = '#ed0d0d'
7849
7937cf60f2ce [facets] fix height computation (incorporates and/or element if present, use css value to compute likely maximum height, kill wdg_stack_size) (closes #1954077)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 7799
diff changeset
   167
7937cf60f2ce [facets] fix height computation (incorporates and/or element if present, use css value to compute likely maximum height, kill wdg_stack_size) (closes #1954077)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 7799
diff changeset
   168
# facets
7943
ad0581296e2c [facets] try to get rid of arbitrary constants, be prettier and eat less space (closes #1988706)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 7849
diff changeset
   169
facet_titleFont = 'bold SansSerif'
8093
3efb83e4e8f3 [facets] do no stretch to the right when there are many facets; instead use a floating layout (closes #2093160)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 7943
diff changeset
   170
facet_Padding = '.4em'
3efb83e4e8f3 [facets] do no stretch to the right when there are many facets; instead use a floating layout (closes #2093160)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 7943
diff changeset
   171
facet_MarginBottom = '.4em'
8104
71d9fb78b772 [facets] forcing a fixed height to the group is a bad idea: the container will not properly overflow
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 8093
diff changeset
   172
facet_vocabMaxHeight = '12em' # ensure < FACET_GROUP_HEIGHT by some const. factor (e.g 3em)