diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-12-28 19:15:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-12-28 19:15:06 +0000 |
commit | c72096d64babac11b7b2496b7a149470901541fe (patch) | |
tree | 92d47e4671d23d507d24d488d969ffd9495b2461 | |
parent | 52a2338e8797a9b942a02533b195d9dbc4b10c42 (diff) | |
download | brdo-c72096d64babac11b7b2496b7a149470901541fe.tar.gz brdo-c72096d64babac11b7b2496b7a149470901541fe.tar.bz2 |
Patch by Michael:
- Made a change to use @import directive for layout portion of css.
- Changed the druplicon to link to drupal.org since the title of the
site in the upper left now link to index.php.
-rw-r--r-- | admin.php | 13 | ||||
-rw-r--r-- | misc/admin.css | 90 |
2 files changed, 9 insertions, 94 deletions
@@ -13,11 +13,14 @@ 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" /> + <link rel="stylesheet" type="text/css" title="text" media="screen" href="misc/admin.css" /> + <style type="text/css" title="layout" media="Screen"> + @import url("misc/admin-layout.css"); + </style> </head> <body> <?php @@ -29,7 +32,7 @@ function admin_page($mod) { */ print "<div id=\"menu\">"; - echo "<h1><a href=\"index.php\">".variable_get("site_name", "drupal")."</a></ h1>"; + echo "<h1><a href=\"index.php\">". variable_get("site_name", "drupal") ."</a></h1>"; print menu_tree() ; print "</div>"; @@ -39,7 +42,7 @@ 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>"; + print "<a href=\"http://drupal.org/\"><img align=\"right\" src=\"misc/druplicon-small.gif\" alt=\"Druplicon - Drupal logo\" border=\"0\" /></a>"; if ($path = menu_path()) { print "<h2>". la(t("Administration")) ." > $path</h2>"; @@ -65,7 +68,7 @@ function admin_page($mod) { db_query("DELETE FROM menu"); ?> </body> -</html> + </html> <?php } diff --git a/misc/admin.css b/misc/admin.css index 4b692dffb..7323d4c94 100644 --- a/misc/admin.css +++ b/misc/admin.css @@ -1,89 +1 @@ -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; -} +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;}
\ No newline at end of file |