summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-28 17:08:06 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-28 17:08:06 +0000
commit52a2338e8797a9b942a02533b195d9dbc4b10c42 (patch)
tree5c88273d0addd5ab943f001baeac07d4e440547d
parenta3ad12a9b6599b86346c7bd3ad30db40ebd7f194 (diff)
downloadbrdo-52a2338e8797a9b942a02533b195d9dbc4b10c42.tar.gz
brdo-52a2338e8797a9b942a02533b195d9dbc4b10c42.tar.bz2
- Better stylesheet for administration pages. Contributed by Michael.
-rw-r--r--admin.php58
-rw-r--r--misc/admin.css89
2 files changed, 111 insertions, 36 deletions
diff --git a/admin.php b/admin.php
index 35879040e..654660eb3 100644
--- a/admin.php
+++ b/admin.php
@@ -13,50 +13,25 @@ function admin_page($mod) {
global $user;
?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1- transitional.dtd">
<html>
<head>
<title><?php echo variable_get("site_name", "drupal") . " " . t("administration pages"); ?></title>
+ <link rel="stylesheet" type=text/css media="screen" href="misc/admin.css" />
</head>
- <style>
- body { font-family: helvetica, arial; font-size: 12pt; }
- h1 { font-family: helvetica, arial; font-size: 18pt; font-weight: bold; color: #660000; }
- h2 { font-family: helvetica, arial; font-size: 18pt; font-weight: bold; color: #000066; }
- h3 { font-family: helvetica, arial; font-size: 14pt; font-weight: bold; color: #006600; }
- th { font-family: helvetica, arial; font-size: 12pt; text-align: center; vertical-align: top; background-color: #CCCCCC; color: #995555; }
- td { font-family: helvetica, arial; font-size: 12pt; }
- #header { float: top; margin: 0; padding: 0; border-bottom: 1px solid #ccc; }
- #tree { float: left; width: 230px; border-right: 1px solid #ccc; z-index: 1; overflow: hidden; }
- #main { margin-left: 240px; padding: 20px 20px 20px 20px; z-index: 2; }
- #menu { padding-bottom: 18px; text-align: right; }
- #help { padding-bottom: 18px; }
- </style>
- <body bgcolor="#FFFFFF" link="#005599" vlink="#004499" alink="#FF0000">
+ <body>
<?php
- module_invoke_all("link", "admin");
-
- /*
- ** Header:
- */
-
- print "<div id=\"header\">";
- print "<a href=\"index.php\"><img align=\"right\" src=\"misc/druplicon-small.gif\" tag=\"Druplicon - Drupal logo\" /></a>";
-
- if ($path = menu_path()) {
- print "<h2>". la(t("Administration")) ." > $path</h2>";
- }
- else {
- print "<h2>". t("Administration") ."</h2>";
- }
- print "</div>";
+ module_invoke_all("link", "admin");
/*
** Menu:
*/
- print "<div id=\"tree\">";
- print menu_tree();
+ print "<div id=\"menu\">";
+ echo "<h1><a href=\"index.php\">".variable_get("site_name", "drupal")."</a></ h1>";
+ print menu_tree() ;
+
print "</div>";
/*
@@ -64,22 +39,33 @@ function admin_page($mod) {
*/
print "<div id=\"main\">";
+ print "<a href=\"index.php\"><img align=\"right\" src=\"misc/druplicon-small.gif\" alt=\"Druplicon - Drupal logo\" border=\"0\" /></a>";
+
+ if ($path = menu_path()) {
+ print "<h2>". la(t("Administration")) ." &gt; $path</h2>";
+ }
+ else {
+ print "<h2>". t("Administration") ."</h2>";
+ }
if ($menu = menu_menu()) {
- print "<div id=\"menu\">$menu</div>";
+ print "$menu<br />";
}
+ print "<br /><hr /><br />";
+
if ($help = menu_help()) {
- print "<div id=\"help\">$help</div>";
+ print "<small>$help</small><br /><br />";
}
+
module_invoke($mod, "admin");
print "</div>";
db_query("DELETE FROM menu");
?>
</body>
- </html>
+</html>
<?php
}
diff --git a/misc/admin.css b/misc/admin.css
new file mode 100644
index 000000000..4b692dffb
--- /dev/null
+++ b/misc/admin.css
@@ -0,0 +1,89 @@
+body {
+ font-size: 90%;
+ margin: 0;
+ background-color: #fff;
+}
+/* text */
+body, th, td, h1, h2, h3, h4, #menu, #main {
+ font-family: helvetica, arial;
+}
+a {
+}
+a:link {
+ color: #059;
+}
+a:visited {
+ color: #049;
+}
+h1 {
+ font-size: 1.3em;
+ font-weight: bold;
+ color: #000066;
+}
+h2 {
+ font-size: 1.3em;
+ font-weight: bold;
+ color: #000066;
+ margin: 0;
+ padding: 0 0 .5em 0;
+}
+h3 {
+ font-size: 1.2em;
+ font-weight: bold;
+ color: #006600;
+ margin: 0;
+ padding: 0 0 .5em 0;
+}
+th {
+ font-size: 90%;
+ text-align: left;
+ vertical-align: top;
+ background-color: #CCCCCC;
+ color: #995555;
+}
+td {
+ font-size: 90%;
+}
+/* layout */
+#menu {
+ position: absolute;
+ left: 0px;
+ top: 0px;
+ padding: 1em 0 1em 0;
+ width: 200px;
+ z-index: 1;
+ overflow: hidden;
+ background-color: #6699cc;
+ border-right: 1px solid #999;
+ border-bottom: 1px solid #999;
+}
+#menu h1 a {
+ display: block;
+ margin: 0;
+ padding: 0 0 .2em .6em;
+ color: #fff;
+ text-decoration: none;
+ border-bottom: 1px dotted #90bade;
+}
+#menu ul {
+ list-style: none;
+ margin: 0 0 0 0;
+ padding: 0 0 0 .75em;
+ border: none;
+}
+#menu li {
+ margin: 0;
+ padding: .25em .25em .25em 0;
+ border-bottom: 1px dotted #90bade;
+}
+#menu li a {
+ display: block;
+ width: 100%;
+ color: #fff;
+ text-decoration: none;
+}
+#main {
+ margin: 0 0 0 220px;
+ padding: 1em 1em 1em 0;
+ z-index: 2;
+}