|
1 """define default ui properties""" |
|
2 |
|
3 # CSS stylesheets to include systematically in HTML headers |
|
4 # use the following line if you *need* to keep the old stylesheet |
|
5 STYLESHEETS = [data('cubicweb.css'), ] |
|
6 STYLESHEETS_IE = [data('cubicweb.ie.css')] |
|
7 STYLESHEETS_PRINT = [data('cubicweb.print.css')] |
|
8 |
|
9 # Javascripts files to include systematically in HTML headers |
|
10 JAVASCRIPTS = [data('jquery.js'), |
|
11 data('jquery-migrate.js'), |
|
12 data('cubicweb.js'), |
|
13 data('cubicweb.compat.js'), |
|
14 data('cubicweb.python.js'), |
|
15 data('cubicweb.htmlhelpers.js')] |
|
16 |
|
17 # where is installed fckeditor |
|
18 FCKEDITOR_PATH = '/usr/share/fckeditor/' |
|
19 |
|
20 # favicon and logo for the instance |
|
21 FAVICON = data('favicon.ico') |
|
22 LOGO = data('logo.png') |
|
23 |
|
24 # rss logo (link to get the rss view of a selection) |
|
25 RSS_LOGO = data('rss.png') |
|
26 RSS_LOGO_16 = data('feed-icon16x16.png') |
|
27 RSS_LOGO_32 = data('feed-icon32x32.png') |
|
28 |
|
29 # XXX cleanup resources below, some of them are probably not used |
|
30 # (at least entity types icons...) |
|
31 |
|
32 # images |
|
33 HELP = data('help.png') |
|
34 SEARCH_GO = data('go.png') |
|
35 PUCE_UP = data('puce_up.png') |
|
36 PUCE_DOWN = data('puce_down.png') |
|
37 |
|
38 # button icons |
|
39 OK_ICON = data('ok.png') |
|
40 CANCEL_ICON = data('cancel.png') |
|
41 APPLY_ICON = data('plus.png') |
|
42 TRASH_ICON = data('trash_can_small.png') |
|
43 |
|
44 # icons for entity types |
|
45 BOOKMARK_ICON = data('icon_bookmark.gif') |
|
46 EMAILADDRESS_ICON = data('icon_emailaddress.gif') |
|
47 EUSER_ICON = data('icon_euser.gif') |
|
48 STATE_ICON = data('icon_state.gif') |
|
49 |
|
50 # other icons |
|
51 CALENDAR_ICON = data('calendar.gif') |
|
52 CANCEL_EMAIL_ICON = data('sendcancel.png') |
|
53 SEND_EMAIL_ICON = data('sendok.png') |
|
54 DOWNLOAD_ICON = data('download.gif') |
|
55 UPLOAD_ICON = data('upload.gif') |
|
56 GMARKER_ICON = data('gmap_blue_marker.png') |
|
57 UP_ICON = data('up.gif') |
|
58 |
|
59 # colors, fonts, etc |
|
60 |
|
61 # default (body, html) |
|
62 defaultColor = '#000' |
|
63 defaultFontFamily = "'Bitstream Vera Sans','Lucida Grande','Lucida Sans Unicode','Geneva','Verdana',sans-serif" |
|
64 defaultSize = '12px' |
|
65 defaultLineHeight = '1.5' |
|
66 defaultLineHeightEm = lazystr('%(defaultLineHeight)sem') |
|
67 |
|
68 inputHeight = '1.3em' |
|
69 inputPadding = 'O.2em' |
|
70 # XXX |
|
71 defaultLayoutMargin = '8px' |
|
72 |
|
73 # header |
|
74 headerBgColor = '#ff7700' |
|
75 headerBg = lazystr('%(headerBgColor)s url("banner.png") repeat-x top left') |
|
76 |
|
77 |
|
78 # scale 3:5 stranded |
|
79 # h1 { font-size:2em; } |
|
80 # h2 { font-size:1.61538em; } |
|
81 # h3 { font-size:1.23077em; } |
|
82 # |
|
83 # scale le corbusier */ |
|
84 # h1 { font-size:2.11538em; } |
|
85 # h2 { font-size:1.61538em; } |
|
86 # h3 { font-size:1.30769em; } |
|
87 |
|
88 # h |
|
89 h1FontSize = '2.3em' # 25.3833px |
|
90 h1Padding = '0 0 0.14em 0 ' |
|
91 h1Margin = '0.8em 0 0.5em' |
|
92 h1Color = '#000' |
|
93 h1BorderBottomStyle = lazystr('0.06em solid %(h1Color)s') |
|
94 |
|
95 h2FontSize = '2em' # |
|
96 h2Padding = '0.4em 0 0.35em 0' # 22.0667px |
|
97 h2Margin = '0' |
|
98 |
|
99 h3FontSize = '1.7em' #18.75px |
|
100 h3Padding = '0.5em 0 0.57em 0' |
|
101 h3Margin = '0' |
|
102 |
|
103 h4FontSize = '1.4em' # 15.45px |
|
104 |
|
105 # links |
|
106 aColor = '#e6820e' |
|
107 |
|
108 |
|
109 # page frame |
|
110 pageBgColor = '#e2e2e2' |
|
111 pageContentBorderColor = '#ccc' |
|
112 pageContentBgColor = '#fff' |
|
113 pageContentPadding = '1em' |
|
114 pageMinHeight = '800px' |
|
115 |
|
116 # boxes ######################################################################## |
|
117 |
|
118 # title of contextFree / contextual boxes |
|
119 contextFreeBoxTitleBgColor = '#CFCEB7' |
|
120 contextFreeBoxTitleBg = lazystr('%(contextFreeBoxTitleBgColor)s url("contextFreeBoxHeader.png") repeat-x 50%% 50%%') |
|
121 contextFreeBoxTitleColor = '#000' |
|
122 |
|
123 contextualBoxTitleBgColor = '#FF9900' |
|
124 contextualBoxTitleBg = lazystr('%(contextualBoxTitleBgColor)s url("contextualBoxHeader.png") repeat-x 50%% 50%%') |
|
125 contextualBoxTitleColor = '#FFF' |
|
126 |
|
127 # title of 'incontext' boxes (eg displayed inside the primary view) |
|
128 incontextBoxTitleBgColor = lazystr('%(contextFreeBoxTitleBgColor)s') |
|
129 incontextBoxTitleBg = lazystr('%(incontextBoxTitleBgColor)s url("incontextBoxHeader.png") repeat-x 50%% 50%%') |
|
130 incontextBoxTitleColor = '#000' |
|
131 |
|
132 # body of boxes in the left or right column (whatever contextFree / contextual) |
|
133 leftrightBoxBodyBgColor = '#FFF' |
|
134 leftrightBoxBodyBg = lazystr('%(leftrightBoxBodyBgColor)s') |
|
135 leftrightBoxBodyColor = 'black' |
|
136 leftrightBoxBodyHoverBgColor = '#EEEDD9' |
|
137 |
|
138 # body of 'incontext' boxes (eg displayed insinde the primary view) |
|
139 incontextBoxBodyBgColor = '#f8f8ee' |
|
140 incontextBoxBodyBg = lazystr('%(incontextBoxBodyBgColor)s') |
|
141 incontextBoxBodyColor = '#555544' |
|
142 incontextBoxBodyHoverBgColor = lazystr('%(incontextBoxBodyBgColor)s') |
|
143 |
|
144 |
|
145 # table listing & co ########################################################### |
|
146 listingBorderColor = '#ccc' |
|
147 listingHeaderBgColor = '#efefef' |
|
148 listingHighlightedBgColor = '#fbfbfb' |
|
149 |
|
150 # puce |
|
151 bulletDownImg = 'url("puce_down.png") 98% 6px no-repeat' |
|
152 |
|
153 #forms |
|
154 formHeaderBgColor = lazystr('%(listingHeaderBgColor)s') |
|
155 helperColor = '#555' |
|
156 |
|
157 # button |
|
158 buttonBorderColor = '#edecd2' |
|
159 buttonBgColor = '#fffff8' |
|
160 buttonBgImg = 'url("button.png") repeat-x 50% 50%' |
|
161 |
|
162 # messages |
|
163 msgBgColor = '#f8f8ee' |
|
164 infoMsgBgImg = 'url("information.png") 5px center no-repeat' |
|
165 errorMsgBgImg = 'url("error.png") 100% 50% no-repeat' |
|
166 errorMsgColor = '#ed0d0d' |
|
167 |
|
168 # facets |
|
169 facet_titleFont = 'bold SansSerif' |
|
170 facet_Padding = '.4em' |
|
171 facet_MarginBottom = '.4em' |
|
172 facet_vocabMaxHeight = '12em' # ensure < FACET_GROUP_HEIGHT by some const. factor (e.g 3em) |