From 73d5501621d74bcf57a108abef08169ef4ba4977 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 23 Jan 2011 03:31:40 +0000 Subject: playing around a little with the admin theme git-svn-id: http://code.elgg.org/elgg/trunk@7911 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css/admin.php | 191 ++++++++++++++++++++++------------ views/default/layout/shells/admin.php | 52 +++++---- 2 files changed, 155 insertions(+), 88 deletions(-) diff --git a/views/default/css/admin.php b/views/default/css/admin.php index be2bbd319..d600d41fd 100644 --- a/views/default/css/admin.php +++ b/views/default/css/admin.php @@ -16,77 +16,81 @@ echo elgg_view('css/elements/base', $vars); echo elgg_view('css/elements/typography', $vars); echo elgg_view('css/elements/chrome', $vars); echo elgg_view('css/elements/forms', $vars); -echo elgg_view('css/elements/navigation', $vars); +//echo elgg_view('css/elements/navigation', $vars); echo elgg_view('css/elements/core', $vars); echo elgg_view('css/elements/icons', $vars); -echo elgg_view('css/elements/layout', $vars); +//echo elgg_view('css/elements/layout', $vars); echo elgg_view('css/elements/misc', $vars); ?> - - -/* *************************************** - BASICS -*************************************** */ body { - background-color: #444444; -} -a:hover, -a.selected { - color: black; - text-decoration: underline; -} -pre, code { - background:#EBF5FF; + background-color: #eeeeee; } -blockquote { - background:#EBF5FF; -} -table.mceLayout { - width:100% !important; -} - - - - - - -.elgg-admin .elgg-page-header { - background-color: #333333; - border-bottom: 1px solid #555555; -} -.elgg-admin .elgg-page-header > .elgg-inner { - padding: 10px 20px; -} -.elgg-admin .elgg-page-footer { - background: #333333; - border-top: 1px solid #222222; - height: 30px; - width: 100%; +/* *************************************** + HEADER +*************************************** */ +.elgg-page-header { + background-color: #000000; +/* + background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0.42, rgb(51,51,51)), + color-stop(1, rgb(204,204,204)) + ); + background-image: -moz-linear-gradient( + center bottom, + rgb(51,51,51) 42%, + rgb(204,204,204) 100% + ); + border-bottom: 1px solid #000000; +*/ +} +.elgg-page-header > .elgg-inner { + padding: 20px 20px; +} +.elgg-site-title { + font-size: 1.8em; + float: left; } -.elgg-admin .elgg-page-header h1 { - height: 45px; - line-height: 45px; +.elgg-site-title a { + color: white; } -.elgg-admin .elgg-page-header h1 a { +.elgg-user-menu { + float: right; color: white; + margin-top: 5px; } -.elgg-admin .elgg-page-header h1 a:hover { +.elgg-user-menu a, .elgg-user-menu a:hover { color: white; - text-decoration: underline; } -.elgg-admin .elgg-page-header a.return_to_network { - font-size: 12px; +.elgg-user-menu li { + display: inline; +} +.elgg-user-menu li:after{ + content: "|"; + display: inline-block; font-weight: normal; - color: #666666; - position: absolute; - top: 20px; - right: 40px; + margin-left: 8px; + margin-right: 4px; +} +.elgg-user-menu li:last-child:after { + content: ""; } -.elgg-admin .elgg-page-body { + +/* *************************************** + BODY +*************************************** */ +.elgg-page-body { margin: 0 auto; + padding: 20px 40px; +} +.elgg-page-body > .elgg-inner { + background-color: #ffffff; + border: 1px solid #cccccc; padding: 20px; min-height: 400px; position: relative; @@ -103,37 +107,86 @@ table.mceLayout { float: right; margin-left: 30px; } - -.elgg-admin h1, -.elgg-admin h2, -.elgg-admin h3, -.elgg-admin h4, -.elgg-admin h5, -.elgg-admin h6 { - color:#666666; +.elgg-main h2 { + color: #333333; } +/* *************************************** + SIDEBAR MENU +*************************************** */ .elgg-page-menu a { display: block; - -webkit-border-radius: 8px; - -moz-border-radius: 8px; - background-color: white; - margin: 0 0 3px 0; - padding: 2px 4px 2px 8px; + background-color: #eeeeee; + border-bottom: 1px solid #dddddd; + border-left: 10px solid #eeeeee; + padding: 10px; color: #333333; } .elgg-page-menu a:hover { - background-color: black; - color: white; + border-left: 10px solid #333333; text-decoration: none; } +/* .elgg-page-menu li.selected > a { background-color: black; color: white; } +*/ .elgg-page-menu li.selected > ul { display: block; } +.elgg-page-menu .elgg-child-menu { + display: none; +} +.elgg-page-menu .elgg-child-menu a { + background-color: #ffffff; + border-left: 10px solid #ffffff; +} +.elgg-page-menu .elgg-child-menu a:hover { + border-left: 10px solid #333333; +} + +/* *************************************** + BASICS +*************************************** */ + +a:hover, +a.selected { + color: black; + text-decoration: underline; +} +pre, code { + background:#EBF5FF; +} +blockquote { + background:#EBF5FF; +} +table.mceLayout { + width:100% !important; +} + + + + + + +/* + +.elgg-admin .elgg-page-footer { + background: #333333; + border-top: 1px solid #222222; + height: 30px; + width: 100%; +} + + +*/ + + h1, h2, h3, h4, h5, h6 { + color:#666666; +} + + .admin_settings h3 { background:#999999; @@ -655,4 +708,4 @@ ul.admin_plugins { } .add-user form { width:300px; -} \ No newline at end of file +} diff --git a/views/default/layout/shells/admin.php b/views/default/layout/shells/admin.php index e33c1c62f..ce9d2d503 100644 --- a/views/default/layout/shells/admin.php +++ b/views/default/layout/shells/admin.php @@ -9,36 +9,50 @@ * @uses $vars['sidebar'] Optional sidebar content * @uses $vars['title'] Title string */ + +$view_site = elgg_view('output/url', array( + 'href' => elgg_get_site_url(), + 'text' => elgg_echo('admin:view_site'), +)); +$logout = elgg_view('output/url', array( + 'href' => 'action/logout', + 'text' => elgg_echo('logout'), +)); ?>
-
- -
- -
-
- +
+
+ +
+
+ +
\ No newline at end of file -- cgit v1.2.3