This commit is contained in:
Marc Delisle
2006-09-17 13:01:52 +00:00
parent d7dd710dff
commit 68dd93c95f
4 changed files with 1457 additions and 0 deletions

168
grid/css/theme_left.css.php Normal file
View File

@@ -0,0 +1,168 @@
<?php /*jw <-- diff from original */
// 2do: hover background in Gecko not fitting the img size , a hint somebody?
// unplanned execution path
if (!defined('PMA_MINIMUM_COMMON')) {
exit();
}
$VER = substr(PMA_VERSION,0,3); /*jw for use with older versions: */
if (('2.7'==$VER)or('2.8'==$VER)) echo "/*$VER*/
html {
font-size: ", $GLOBALS['cfg']['FontSize'], ';
}
';
?>
/** Navi general v.2.0 for pma2.7+ windkiel 20060917 **/
* { <?php /*jw general reset and corrected later, if needed (f.e. hr) */ ?>
margin: 0;
padding: 0
}
body {
<?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?>
font-family: <?php echo $GLOBALS['cfg']['FontFamily']; ?>;
<?php } ?>
background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
padding: .2em;
}
hr {
margin: 5px 0 5px
}
a img {
border: 0;
}
form {
display: inline;
}
select {
width: 100%;
}
/* buttons in some browsers (eg. Konqueror) are block elements,
this breaks design */
button {
display: inline;
}
<?php /* * * * * * * * * * * * * * * * * */ ?>
/* classes */
/* leave some space between icons and text */
.icon {
vertical-align: middle;
margin: 0 .3em 0 .3em;
}
<?php /* * * * * * * * * * * * * * * * * */ ?>
/* specific elements */
div#pmalogo,
div#leftframelinks {
text-align: center;
}
div#pmalogo,
div#leftframelinks,
div#databaseList {
<?php if ($GLOBALS['cfg']['ServerLeft']) {
echo 'text-align: left'; // looks nicer if leftserver=true
}; ?>
border-bottom: 1px solid <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
margin-bottom: .5em;
padding-bottom: .5em;
}
div#leftframelinks a img.icon {
padding: .2em;
border: 1px solid <?php echo $GLOBALS['cfg']['NaviColor']; //top links ?>;
}
div#leftframelinks a:hover {
background: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
}
/* serverlist */
#body_leftFrame #list_server {
list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_host.png);
list-style-position: inside;
list-style-type: none;
}
#body_leftFrame #list_server li {
font-size: <?php echo $GLOBALS['cfg']['NaviFontPercentage']; ?>;
}
/* leftdatabaselist */
div#left_tableList ul {
list-style-type: none;
list-style-position:outside;
font-size: <?php echo $GLOBALS['cfg']['NaviFontPercentage']; ?>;
background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>;
}
div#left_tableList ul ul {
font-size: 100%;
}
/*jw*/
div#left_tableList a {
text-decoration: none;
color: <?php echo $GLOBALS['cfg']['NaviLinkColor']; ?>;
<?php
// echo background: ',$GLOBALS['cfg']['NaviLinkBackground'];
// makes marking impossibel
?>
}
a,
div#left_tableList a {
padding: 0 2px 0 2px;
}
<?php if ( $GLOBALS['cfg']['LeftPointerEnable'] ) { ?>
a:hover,
div#left_tableList a:hover {
background: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
text-decoration: underline;
}
<?php } else { ?>
div#left_tableList a:hover {
/*
background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>;
color: red <?php #echo $GLOBALS['cfg']['NaviColor']; ?>;
*/
text-decoration: underline;
}
<?php } ?>
<?php if ($GLOBALS['cfg']['NaviMarkedColor']) { ?>
/* marked items */
div#left_tableList ul li.marked {
background: <?php echo $GLOBALS['cfg']['NaviMarkedBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['NaviMarkedColor']; ?>;
}
<?php } ?>
div#left_tableList img {
vertical-align: middle;
}
div#left_tableList ul ul {
padding-left: 1px;
border-left: 1px solid <?php echo $GLOBALS['cfg']['NaviColor']; // ab__cd ?>;
padding-bottom: 1px;
border-bottom: 1px solid <?php echo $GLOBALS['cfg']['NaviColor']; //2do ltr rtl ?>;
}

1114
grid/css/theme_right.css.php Normal file

File diff suppressed because it is too large Load Diff

19
grid/info.inc.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
/* info.inc.php 2006/06/19 cybot_tm / 2006/09/17 windkiel */
/**
*
* original/img/ reused , resulting in 7kB .zip file
* successfully tested with pma >= 2.9
* border-rounding only working in Geckos like Firefox 1.5 ( -moz...),
* IE6 ( left pointer/marker working with links ),
* Opera 7 ~ 9.01 ( switching cursor on hover not supported )
* ( Opera 9.01 needs a Ctrl F5 or restart to show theme/fontsize changes ! )
* pma < 2.9 support only experimental !
*
*/
/* Theme information */
$theme_name = 'Grid';
$theme_full_version = '2.9';
?>

156
grid/layout.inc.php Normal file
View File

@@ -0,0 +1,156 @@
<?php
/**
* derived from original layout cvs60811
* modifications by windkiel 20060819/0917 marked with "*jw"
* works with pma >= 2.7
* no '' allowed, except for Font.. ..Link.. ..Marke...
* reuse original pics if img folder lacking
* for detailed layout configuration please refer to the css files
*/
/**
* navi frame
*/
// navi frame width
$GLOBALS['cfg']['NaviWidth'] = 200;
//backword compatibility for index.php <pma2.9
#$cfg['LeftWidth'] = $GLOBALS['cfg']['NaviWidth'];
$GLOBALS['cfg']['LeftWidth'] = $GLOBALS['cfg']['NaviWidth'];
// foreground (text) color for the navi frame
$GLOBALS['cfg']['NaviColor'] = '#000';
// background for the navi frame
$GLOBALS['cfg']['NaviBackground'] = '#D3DCE3';//'#eee';
// link color
$GLOBALS['cfg']['NaviLinkColor'] = '#00a';/*jw*/
// link background-color
$GLOBALS['cfg']['NaviLinkBackground'] = 'white';/*jw*/
// foreground (text) color of the pointer in navi frame
$GLOBALS['cfg']['NaviPointerColor'] = '#00f';
// background of the pointer in navi frame
$GLOBALS['cfg']['NaviPointerBackground'] = 'white';
// color of the marked (visually marks selected) item
$GLOBALS['cfg']['NaviMarkedColor'] = $GLOBALS['cfg']['NaviColor'];/*jw*/
// background of the marked item
$GLOBALS['cfg']['NaviMarkedBackground'] = '#fc9';
// "zoom" factor for list items
$GLOBALS['cfg']['NaviFontPercentage'] = '90%';/*jw*/
/**
* main frame
*/
// foreground (text) color for the main frame
$GLOBALS['cfg']['MainColor'] = '#000';
// background for the main frame
$GLOBALS['cfg']['MainBackground'] = '#ccc';
if ( PMA_USR_BROWSER_AGENT != 'MOZILLA' ) { /*jw index.php: NO frameborder="0"*/
$GLOBALS['cfg']['MainBackground'] .=
' url(../' . $_SESSION['PMA_Theme']->getImgPath() . 'vertical_line.png) repeat-y';
}
// link color
$GLOBALS['cfg']['MainLinkColor'] = '#00d';/*jw*/
// link BGcolor
$GLOBALS['cfg']['MainLinkBackground'] = '#fff';/*jw*/
// foreground (text) color of the pointer in browse mode
$GLOBALS['cfg']['BrowsePointerColor'] = '#000';
// background of the pointer in browse mode
$GLOBALS['cfg']['BrowsePointerBackground'] = '#cfc';
// foreground (text) color of the marker (visually marks row by clicking on it) in browse mode
$GLOBALS['cfg']['BrowseMarkerColor'] = '#000';
// background of the marker (visually marks row by clicking on it) in browse mode
$GLOBALS['cfg']['BrowseMarkerBackground'] = '#fc9';
/**
* fonts
*/
/**
* the font family as a valid css font family value,
* if not set the browser default will be used
* (depending on browser, DTD and system settings)
*/
$GLOBALS['cfg']['FontFamily'] = 'Arial, sans-serif';
/**
* fixed width font family, used in textarea
*/
$GLOBALS['cfg']['FontFamilyFixed'] = 'monospace';
/**
* font size as a valid css font size value,
* if not set the browser default will be used
* (depending on browser, DTD and system settings)
* pma >2.8 uses font size stored in cookie
*/
// for pma <= 2.8 :
$GLOBALS['cfg']['FontSize'] = '80%';
/**
* tables
*/
/*jw*/
// border strenght ONLY FF(Gecko, e.g. .05em(min!)|1px|3pt| 0 but NOT 1)
$GLOBALS['cfg']['Border'] = '1px';
//at least 1 bit difference from $GLOBALS['cfg']['MainBackground'] to show the grid!?
$GLOBALS['cfg']['MainGridColor'] = '#cccccd';
// table header and footer color
$GLOBALS['cfg']['ThBackground'] = '#D3DCE3';
// table header and footer background
$GLOBALS['cfg']['ThColor'] = '#000';
// table data row background
$GLOBALS['cfg']['BgOne'] = '#f7f7f7';#E5E5E5';
// table data row background, alternate
$GLOBALS['cfg']['BgTwo'] = 'white';//'#D5D5D5';//'#ffff99';
/**
* query window
*/
// Width of Query window
$GLOBALS['cfg']['QueryWindowWidth'] = 600;
// Height of Query window
$GLOBALS['cfg']['QueryWindowHeight'] = 400;
/**
* SQL Parser Settings
* Syntax colouring data
*/
$GLOBALS['cfg']['SQP']['fmtColor'] = array(
'comment' => '#808000',
'comment_mysql' => '',
'comment_ansi' => '',
'comment_c' => '',
'digit' => '',
'digit_hex' => 'teal',
'digit_integer' => 'teal',
'digit_float' => 'aqua',
'punct' => 'fuchsia',
'alpha' => '',
'alpha_columnType' => '#FF9900',
'alpha_columnAttrib' => '#0000FF',
'alpha_reservedWord' => '#990099',
'alpha_functionName' => '#FF0000',
'alpha_identifier' => 'black',
'alpha_charset' => '#6495ed',
'alpha_variable' => '#800000',
'quote' => '#008000',
'quote_double' => '',
'quote_single' => '',
'quote_backtick' => ''
);
?>