|
From: Benjamin C. <bc...@us...> - 2001-10-10 03:59:47
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv21625
Added Files:
css.php
Log Message:
This makes color schemes a little more flexible. To be used instead of global.css in wrap.html
--- NEW FILE: css.php ---
<?php
// css.php - Kick out the CSS
// ------------------------------------------------------------------------
// Copyright (c) 2001 The phpBugTracker Group
// ------------------------------------------------------------------------
// This file is part of phpBugTracker
//
// phpBugTracker is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// phpBugTracker is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with phpBugTracker; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ------------------------------------------------------------------------
// $Id: css.php,v 1.1 2001/10/10 03:59:43 bcurtis Exp $
$colors['default'] = array(
'link' => '',
'vlink' => '',
'body' => '',
'body-bg' => '',
'td' => '',
'tr.alt-bg' => '#ddddd',
'td.head-bg' => '#eeeeee',
'td.head-selected-bg' => '#bbbbbb',
'th-bg' => '#eeeeee',
'th' => ''
);
$colors['black'] = array(
'link' => '#cecece',
'vlink' => '#cecece',
'body' => '#ffffff',
'body-bg' => '#000000',
'td' => '#ffffff',
'tr.alt-bg' => '#4e4e4e',
'td.head-bg' => '#4a4a4a',
'td.head-selected-bg' => '#6a6a6a',
'th-bg' => '#4a4a4a',
'th' => '#fffff'
);
$color = $colors['default'];
?>
body {
margin: 4px;
font-size: 12px;
color: <?php echo $color['body'] ?>;
background-color: <?php echo $color['body-bg'] ?>;
}
a:link { text-decoration: none; color: <?php echo $color['link'] ?>; }
a:visited { text-decoration: none; color: <?php echo $color['vlink'] ?>; }
a:active { text-decoration: none }
a:hover { text-decoration: underline; }
td {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
font-size: 12px;
color: <?php echo $color['td'] ?>;
}
tr.alt {
background-color: <?php echo $color['tr.alt-bg'] ?>;
}
td.head {
font-weight: bold;
text-align: center;
background-color: <?php echo $color['td.head-bg'] ?>;
}
td.head-selected {
font-weight: bold;
text-align: center;
background-color: <?php echo $color['td.head-selected-bg'] ?>;
}
td.center {
text-align: center;
}
th {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
font-size: 12px;
color: <?php echo $color['th'] ?>;
background-color: <?php echo $color['th-bg'] ?>;
}
select {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
font-size: 12px;
}
input {
font-size: 12px;
}
input[type="file"] {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
font-size: 12px;
}
input[type="submit"] {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
}
input[type="reset"] {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
}
textarea {
font-size: 12px;
}
.navfont {
font-family: "Verdana","Arial","Helvetica","MS Sans Serif","Sans-Serif";
font-size: 10px;
}
.login-box {
vertical-align: text-bottom;
font-size: 10px;
}
input[type="text"].login-box {
padding-top: 0.1em;
padding-left: 0.2em;
padding-right: 0.2em;
}
|