2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * navigation css file from theme Grid
7 * @package phpMyAdmin-theme
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));
35 define('_NL', chr(10));
38 if (empty($GLOBALS['cfg']['NiceCss'])) {
39 define('_S', '{'); //start
40 define('_M', ';'); //mid
41 define('_E', '}' . _NL
); //end
47 define('_S', ' {' . _NL
. "\t");
48 define('_M', ';' . _NL
. "\t");
49 define('_E', ';' . _NL
. '}' . _NL
. _NL
);
50 define('_K', ',' . _NL
);
53 define('_3', "\t\t\t");
56 echo '/* ', _NaviGridVersion
, ' */', _NL
,
59 _S
, 'color:', _3
, '#000', //FF option
61 _M
, 'padding:', _2
, 0,
62 _M
, 'line-height:', _2
, 1.25, // "line-spacing"
65 if (version_compare(PMA_VERSION
, '3.0', 'ge')) {
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'];
80 _S
, 'font-size:', _2
, '1em',
85 if (version_compare(PMA_VERSION
, '2.9', 'lt') && !empty($GLOBALS['cfg']['FontSize'])) {
88 _S
, 'font-size:', _2
, $GLOBALS['cfg']['FontSize'],
95 if (!empty($GLOBALS['cfg']['FontFamily'])) {
96 echo 'font-family:', _2
, $GLOBALS['cfg']['FontFamily'],
101 'background:', _2
, $GLOBALS['cfg']['NaviBGC'],
102 _M
, 'color:', _3
, $GLOBALS['cfg']['NaviColor'],
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',
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'],
122 _S
, 'text-decoration:', _1
, 'underline';
123 if ($GLOBALS['cfg']['LeftPointerEnable']) {
125 _M
, 'background:', _2
, $GLOBALS['cfg']['NaviPointerBGC'],
126 _M
, 'color:', _3
, $GLOBALS['cfg']['NaviPointerColor']; //doesn'work on dbname
132 _S
, 'background:', _2
, $GLOBALS['cfg']['NaviActiveBGC'],
136 _S
, 'text-decoration:', _1
, 'none',
140 _S
, 'border:', _3
, 0, //avoid thick link border
145 _S
, 'display:', _2
, 'inline',
149 _S
, 'margin-top:', _2
, '2px',
152 echo version_compare(PMA_VERSION
, '2.11', 'lt')
156 '#navidbpageselector' . // here only concat!
157 _S
. 'padding-', $left, ':' . _2
. '2px' .
158 _M
. 'text-align:' . _2
. 'center' .
161 'select#select_server' . _K
.
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:
174 _S
, 'display:', _2
, 'inline',
180 'ul#databaseList', _K
,
182 _S
, 'list-style-type:', _1
, 'none', // Gecko
185 if (!$GLOBALS['cfg']['LeftMarkerEnable']) {
187 'ul#databaseList li.selected a',
188 _S
, 'background:', _2
, $GLOBALS['cfg']['NaviMarkedBGC'],
189 _M
, 'color:', _3
, $GLOBALS['cfg']['NaviMarkedColor'],
195 _S
, 'padding-', $left, ':', _2
, '4px',
196 _M
, 'background:', _2
, $GLOBALS['cfg']['NaviDblBGC'],
199 // 2.11+ : <span class="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'];
211 '.navi_dbName:hover',
212 _S
, 'text-decoration:', _1
, 'underline',
219 _S
, 'text-align:', _2
, 'center',
223 _S
, 'background-color:', _1
, $GLOBALS['cfg']['NaviLogoBGC'],
226 '#leftframelinks', _K
,
227 '#navidbpageselector',
228 _S
, 'padding-bottom:', _2
, '3px',
232 _S
, 'padding-top:', _2
, '3px',
238 if ($GLOBALS['cfg']['LeftDisplayServers']) {
241 _S
, 'margin:', _3
, '2px',
244 if ($GLOBALS['cfg']['DisplayServersList']) {
247 _S
, 'list-style-type:', _1
, 'decimal',
248 _M
, 'padding-', $left, ':', _2
, '1.8em', // .2 if "inside"
256 _S
, 'padding:', _2
, '3px',
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
) {
272 _M
, 'margin:', _3
, '1px 0 0 0';
277 if ($GLOBALS['cfg']['LeftMarkerEnable']) { // orig:NaviMarkedColor???
279 if (!$GLOBALS['cfg']['LeftFrameLight']) {
281 '#left_tableList > ul li.marked > a', _K
; //4 overiding Link(Color)
284 '#left_tableList > ul li.marked',
285 _S
, 'background:', _2
, $GLOBALS['cfg']['NaviMarkedBGC'],
286 _M
, 'color:', _3
, $GLOBALS['cfg']['NaviMarkedColor'],
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'],