b_close icon for 3.4 compatible themes
[phpmyadmin-themes.git] / grid / css / theme_left.css.php
blob052387f64d7fe0ced4a2ff5f942765dc5cdbd450
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * navigation css file from theme Grid
6 * @version $Id$
7 * @package phpMyAdmin-theme
8 * @subpackage Grid
9 */
11 define('_NaviGridVersion', 'Grid 08080815 NAVI (pma 2.8+)');
13 // css for navigation.php (former left.php)
14 if (!defined('PMA_MINIMUM_COMMON')) {
15 die('/* ' . _NaviGridVersion . ' illegal execution path */');
18 if (!isset($GLOBALS['cfg']['LeftMarkerEnable'])) {
19 $GLOBALS['cfg']['LeftMarkerEnable'] = $GLOBALS['cfg']['BrowseMarkerEnable'];
22 if ($GLOBALS['cfg']['LeftFrameLight']) {
23 $GLOBALS['cfg']['NaviMarkedColor'] = $GLOBALS['cfg']['NaviLightMarkedColor'];
24 $GLOBALS['cfg']['NaviMarkedBGC'] = $GLOBALS['cfg']['NaviLightMarkedBGC'];
27 if (!$GLOBALS['cfg']['LeftMarkerEnable']) {
28 $GLOBALS['cfg']['NaviMarkedColor'] = $GLOBALS['cfg']['NaviColor'];
29 $GLOBALS['cfg']['NaviMarkedBGC'] = $GLOBALS['cfg']['NaviBackground'];
32 if ('IE' == PMA_USR_BROWSER_AGENT && !empty($GLOBALS['cfg']['NiceCss'])) {
33 define('_NL', chr(13) . chr(10));
34 } else {
35 define('_NL', chr(10));
38 if (empty($GLOBALS['cfg']['NiceCss'])) {
39 define('_S', '{'); //start
40 define('_M', ';'); //mid
41 define('_E', '}' . _NL); //end
42 define('_K', ',');
43 define('_1', '');
44 define('_2', '');
45 define('_3', '');
46 } else {
47 define('_S', ' {' . _NL . "\t");
48 define('_M', ';' . _NL . "\t");
49 define('_E', ';' . _NL . '}' . _NL . _NL );
50 define('_K', ',' . _NL );
51 define('_1', "\t");
52 define('_2', "\t\t");
53 define('_3', "\t\t\t");
56 echo '/* ', _NaviGridVersion, ' */', _NL,
57 // general tags
58 '*',
59 _S, 'color:', _3, '#000', //FF option
60 _M, 'margin:', _3, 0,
61 _M, 'padding:', _2, 0,
62 _M, 'line-height:', _2, 1.25, // "line-spacing"
63 _E;
65 if (version_compare(PMA_VERSION, '3.0', 'ge')) {
66 echo
67 'html',
68 _S, 'font-size:',_2;
69 if (null !== $GLOBALS['PMA_Config']->get('fontsize')) {
70 echo $GLOBALS['PMA_Config']->get('fontsize');
71 } elseif (!empty($_COOKIE['pma_fontsize'])) {
72 echo $_COOKIE['pma_fontsize'];
73 } else echo '82%';
74 echo
75 _E,
77 'input', _K,
78 'select', _K,
79 'textarea',
80 _S, 'font-size:', _2, '1em',
81 _E;
85 if (version_compare(PMA_VERSION, '2.9', 'lt') && !empty($GLOBALS['cfg']['FontSize'])) {
86 echo
87 'html',
88 _S, 'font-size:', _2, $GLOBALS['cfg']['FontSize'],
89 _E;
93 echo
94 'body', _S;
95 if (!empty($GLOBALS['cfg']['FontFamily'])) {
96 echo 'font-family:', _2, $GLOBALS['cfg']['FontFamily'],
97 _M;
100 echo
101 'background:', _2, $GLOBALS['cfg']['NaviBGC'],
102 _M, 'color:', _3, $GLOBALS['cfg']['NaviColor'],
105 'hr',
106 _S, 'border:', _3, 0,
107 _M, 'color:', _3, $GLOBALS['cfg']['NaviColor'],
108 _M, 'background:', _2, $GLOBALS['cfg']['NaviColor'],
109 _M, 'height:', _3, '1px', //mimic border 1px solid
110 _M, 'margin-top:', _2, '.5em',
114 // Links:
115 'a',
116 _S, 'text-decoration:', _1, 'none',
117 _M, 'padding:', _2, '0 2px 1px 2px', //top l? bot r?
118 _M, 'color:', _3, $GLOBALS['cfg']['NaviLinkColor'],
121 'a:hover',
122 _S, 'text-decoration:', _1, 'underline';
123 if ($GLOBALS['cfg']['LeftPointerEnable']) {
124 echo
125 _M, 'background:', _2, $GLOBALS['cfg']['NaviPointerBGC'],
126 _M, 'color:', _3, $GLOBALS['cfg']['NaviPointerColor']; //doesn'work on dbname
128 echo
131 'a:active',
132 _S, 'background:', _2, $GLOBALS['cfg']['NaviActiveBGC'],
135 'a:focus',
136 _S, 'text-decoration:', _1, 'none',
139 'a img',
140 _S, 'border:', _3, 0, //avoid thick link border
142 // end Links
144 'form',
145 _S, 'display:', _2, 'inline',
148 'select',
149 _S, 'margin-top:', _2, '2px',
152 echo version_compare(PMA_VERSION, '2.11', 'lt')
154 'select'
156 '#navidbpageselector' . // here only concat!
157 _S . 'padding-', $left, ':' . _2 . '2px' .
158 _M . 'text-align:' . _2 . 'center' .
159 _E .
161 'select#select_server' . _K .
162 'select#lightm_db';
164 echo
165 _S, 'width:', _3, '100%',
168 'option', // for db paging
169 _S, 'padding-', $left, ':', _2, '5px',
172 // buttons in some browsers (e.g., Konqueror) are block elements, this breaks design:
173 'button',
174 _S, 'display:', _2, 'inline',
178 // classes
180 'ul#databaseList', _K,
181 '#databaseList ul',
182 _S, 'list-style-type:', _1, 'none', // Gecko
185 if (!$GLOBALS['cfg']['LeftMarkerEnable']) {
186 echo
187 'ul#databaseList li.selected a',
188 _S, 'background:', _2, $GLOBALS['cfg']['NaviMarkedBGC'],
189 _M, 'color:', _3, $GLOBALS['cfg']['NaviMarkedColor'],
193 echo
194 '#databaseList li',
195 _S, 'padding-', $left, ':', _2, '4px',
196 _M, 'background:', _2, $GLOBALS['cfg']['NaviDblBGC'],
199 // 2.11+ : <span class="navi_dbName">
200 '.navi_dbName',
201 _S, 'font-weight:', _2, 'bold';
202 if (!empty($GLOBALS['cfg']['NaviDbNameColor'])) {
203 echo _M, 'color:', _3, $GLOBALS['cfg']['NaviDbNameColor'];
205 if (!empty($GLOBALS['cfg']['NaviDbNameBGC'])) {
206 echo _M, 'background:', _2, $GLOBALS['cfg']['NaviDbNameBGC'];
208 echo
211 '.navi_dbName:hover',
212 _S, 'text-decoration:', _1, 'underline',
216 // specific elements
217 '#pmalogo', _K,
218 '#leftframelinks',
219 _S, 'text-align:', _2, 'center',
222 '#pmalogo',
223 _S, 'background-color:', _1, $GLOBALS['cfg']['NaviLogoBGC'],
226 '#leftframelinks', _K,
227 '#navidbpageselector',
228 _S, 'padding-bottom:', _2, '3px',
231 '#leftframelinks',
232 _S, 'padding-top:', _2, '3px',
236 // serverlist
238 if ($GLOBALS['cfg']['LeftDisplayServers']) {
239 echo
240 '#serverinfo',
241 _S, 'margin:', _3, '2px',
244 if ($GLOBALS['cfg']['DisplayServersList']) {
245 echo
246 '#list_server',
247 _S, 'list-style-type:', _1, 'decimal',
248 _M, 'padding-', $left, ':', _2, '1.8em', // .2 if "inside"
253 echo
254 '.icon a', _K,
255 'div#databaseList',
256 _S, 'padding:', _2, '3px',
259 // left_tableList
260 '#left_tableList',
261 _S, 'margin:', _3, '0 2px',
262 _M, 'padding:', _2, '0 2px',
263 _M, 'background:', _2, $GLOBALS['cfg']['Navi2ndBGC'],
266 '#left_tableList li',
267 _S, 'padding-bottom:', _2, '1px', //for "__" spacing
268 _M, 'white-space:', _2, 'nowrap';
270 if ('IE' != PMA_USR_BROWSER_AGENT) {
271 echo
272 _M, 'margin:', _3, '1px 0 0 0';
274 echo
277 if ($GLOBALS['cfg']['LeftMarkerEnable']) { // orig:NaviMarkedColor???
278 // marked items
279 if (!$GLOBALS['cfg']['LeftFrameLight']) {
280 echo
281 '#left_tableList > ul li.marked > a', _K; //4 overiding Link(Color)
283 echo
284 '#left_tableList > ul li.marked',
285 _S, 'background:', _2, $GLOBALS['cfg']['NaviMarkedBGC'],
286 _M, 'color:', _3, $GLOBALS['cfg']['NaviMarkedColor'],
290 echo
291 '#imgpmalogo', _K,
292 '.icon', _K,
293 '#left_tableList img',
294 _S, 'vertical-align:', _2, 'middle', //make a:hover covering the whole img
297 '#left_tableList ul',
298 _S, 'list-style-type:', _1, 'none',
299 _M, 'background:', _2, $GLOBALS['cfg']['Navi2ndBGC'], //for marking selected db&table only
302 '#left_tableList ul ul',
303 _S, 'padding-', $left, ':', _2, '2px',
304 _M, 'border-', $left, ':', _2, '1px solid ', $GLOBALS['cfg']['NaviColor'],
305 _M, 'border-bottom:', _2, '1px solid ', $GLOBALS['cfg']['NaviColor'],
306 _M, 'background:', _2, $GLOBALS['cfg']['NaviTblBGC'],