From f467f086cd40c50256023061a96f2ce1ab63c492 Mon Sep 17 00:00:00 2001 From: anuko Date: Tue, 5 Dec 2017 23:03:51 +0000 Subject: [PATCH] A basic attempt for style improvement. --- default.css | 43 +++++++++++++++++++------------------------ user_add.php | 2 +- user_edit.php | 2 +- 3 files changed, 21 insertions(+), 26 deletions(-) diff --git a/default.css b/default.css index 49299176..ee6a5b16 100644 --- a/default.css +++ b/default.css @@ -39,17 +39,22 @@ html { body { font-size: 10pt; - font-family: verdana; + font-family: Verdana, sans-serif; background-color: white; } -table { font-size: 10pt; font-family: verdana; } +table { font-size: 10pt; font-family: Verdana, sans-serif; } -input, button { font-size: 10pt; font-family: verdana; } - -textarea { font-size: 10pt; font-family: verdana; } +input, button, select, textarea { + font-size: 10pt; + font-family: Verdana, sans-serif; + margin: 2px 2px 2px 2px; + padding: 2px 5px 2px 5px; +} -select{ font-size: 10pt; font-family: verdana; } +input[type=checkbox], label { + vertical-align: middle; +} .pageTitle { font-size: 12pt; @@ -58,37 +63,33 @@ select{ font-size: 10pt; font-family: verdana; } } .systemMenu { - font-size: 12pt; + font-size: 11pt; font-weight: bold; - color: #ffffff; - background-color: #000000; + color: white; + background-color: black; } .mainMenu { - font-size: 12pt; + font-size: 11pt; color: #444444; } .tableHeader { font-weight: bold; text-align: left; - color: #000000; - background-color: #a6ccf7; } .tableHeaderCentered { font-weight: bold; text-align: center; - color: #000000; - background-color: #a6ccf7; } .rowReportItem { - background-color: #ffffff; + background-color: #f5f5f5; } .rowReportItemAlt { - background-color: #f5f5f5; + background-color: #ffffff; } .rowReportSubtotal { @@ -118,11 +119,7 @@ select{ font-size: 10pt; font-family: verdana; } .sectionHeader { font-weight: bold; - border-bottom: 1px solid silver; -} - -.borderTop td { - border-top: 1px solid silver; + border-bottom: 1px solid lightgray; } .sectionHeaderNoBorder { @@ -130,12 +127,10 @@ select{ font-size: 10pt; font-family: verdana; } } .error { - font-weight: bold; color: red; } .info_message { - font-weight: bold; color: #0000c0; } @@ -146,7 +141,7 @@ table.divider { width: 720px; } -div#LoginAboutText { width:400px; } +div#LoginAboutText { width: 400px; } .uncompleted-entry { display: inline-block; diff --git a/user_add.php b/user_add.php index a38ef4f8..3c919056 100644 --- a/user_add.php +++ b/user_add.php @@ -97,7 +97,7 @@ $projects = ttTeamHelper::getActiveProjects($user->team_id); // Define classes for the projects table. class NameCellRenderer extends DefaultCellRenderer { function render(&$table, $value, $row, $column, $selected = false) { - $this->setOptions(array('width'=>200,'valign'=>'top')); + $this->setOptions(array('width'=>200)); $this->setValue(''); return $this->toString(); } diff --git a/user_edit.php b/user_edit.php index 406d3135..c8608773 100644 --- a/user_edit.php +++ b/user_edit.php @@ -127,7 +127,7 @@ $form->addInput(array('type'=>'floatfield','maxlength'=>'10','name'=>'rate','for // Define classes for the projects table. class NameCellRenderer extends DefaultCellRenderer { function render(&$table, $value, $row, $column, $selected = false) { - $this->setOptions(array('width'=>200,'valign'=>'top')); + $this->setOptions(array('width'=>200)); $this->setValue(''); return $this->toString(); } -- 2.20.1