]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updates for the admin css based on the reworking I did to the html
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 8 Feb 2011 03:14:16 +0000 (03:14 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 8 Feb 2011 03:14:16 +0000 (03:14 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8067 36083f99-b078-4883-b0ff-0f9b5a30f544

js/lib/ui.js
views/default/admin/components/plugin_settings.php
views/default/admin/statistics/overview.php
views/default/admin/users/newest.php
views/default/admin/users/online.php
views/default/css/admin.php
views/default/forms/admin/menu/save.php
views/default/forms/useradd.php
views/default/layout/shells/admin.php
views/default/layout/shells/admin/menu.php

index 72a087aa0d4230226cc973e99f33eb3bb41be442..6fc3dd3bf8cb878e83b952d212eb7baefdd5b167 100644 (file)
@@ -14,7 +14,7 @@ elgg.ui.init = function () {
 
        $('.elgg-toggle').live('click', elgg.ui.toggle);
 
-       $('.elgg-page-menu .elgg-menu-parent').live('click', elgg.ui.toggleMenu);
+       $('.elgg-menu-page .elgg-menu-parent').live('click', elgg.ui.toggleMenu);
 
        $('.elgg-like-toggle').live('click', elgg.ui.toggleLikes);
        
index 0a4891145cf3ec485acae90077b8776fb99daf27..d5e25b4c1ba98d8aa15cfdf832097ec50f3da5be 100644 (file)
@@ -15,7 +15,7 @@ $form_body .= elgg_view('input/submit', array('value' => elgg_echo('save')));
 //$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset')));
 
 ?>
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo $plugin_info['name']; ?></h3>
        </div>
index 52bd4ddb24a817147ba1d62e11e918e99287b506..5b366c5642c97716d261ee0b4cc4cab2d467c987 100644 (file)
@@ -17,7 +17,7 @@ $release = get_version(true);
 echo elgg_view('admin/statistics/extend');
 
 ?>
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo elgg_echo('admin:statistics:label:basic'); ?></h3>
        </div>
@@ -41,7 +41,7 @@ echo elgg_view('admin/statistics/extend');
 $entity_stats = get_entity_statistics();
 $even_odd = "";
 ?>
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo elgg_echo('admin:statistics:label:numentities'); ?></h3>
        </div>
index 25bd55cbc4a3eee8270ad7a557d2423b563129ee..91a6fa338674341d7375aed5d57790530772f5df 100644 (file)
@@ -8,7 +8,7 @@ $users = elgg_list_entities(array(
 
 ?>
 
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
        </div>
index 328132a4cbeb5bb5e2d7b0ea6c826b11689b48ba..dbda06066791a4b1681105612854454a833c555a 100644 (file)
@@ -3,7 +3,7 @@
 $users_online = get_online_users();
        
 ?>
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
        </div>
index 12bd9420a04efcc1d3aa48f4145f37d96656bf5d..15e7f09fffebafd1c8283f67ab926c92ad7ce33d 100644 (file)
@@ -2,26 +2,13 @@
 /**
  * Elgg Admin CSS
  *
+ * This is a distinct theme from the theme of the site. There are dependencies
+ * on the HTML created by the views in Elgg core.
+ *
  * @package Elgg.Core
  * @subpackage UI
  */
 
-
-//echo elgg_view('css/elements/reset', $vars);
-//echo elgg_view('css/elements/grid', $vars);
-//echo elgg_view('css/elements/spacing', $vars);
-//echo elgg_view('css/elements/base', $vars);
-
-// remove these as we finish the admin theme
-//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/core', $vars);
-//echo elgg_view('css/elements/icons', $vars);
-//echo elgg_view('css/elements/layout', $vars);
-//echo elgg_view('css/elements/misc', $vars);
-
 ?>
 
 /* ***************************************
@@ -176,42 +163,42 @@ table.mceLayout {
        border: 1px solid #999999;
        padding: 20px 20px;
 }
-.elgg-site-title {
+.elgg-heading-site {
        font-size: 1.8em;
        float: left;
 }
-.elgg-site-title a {
-       color: #dddddd;
+.elgg-heading-site a {
+       color: #ffffff;
        text-decoration: none;
 }
-.elgg-site-title a:hover {
+.elgg-heading-site a:hover {
        color: white;
        text-decoration: none;
 }
-.elgg-user-menu {
+.elgg-menu-user {
        float: right;
        margin-top: 5px;
 }
-.elgg-user-menu, .elgg-user-menu a {
+.elgg-menu-user, .elgg-menu-user a {
        color: #999999;
 }
-.elgg-user-menu a {
+.elgg-menu-user a {
        text-decoration: underline;
 }
-.elgg-user-menu a:hover {
+.elgg-menu-user a:hover {
        color: white;
 }
-.elgg-user-menu li {
+.elgg-menu-user li {
        display: inline;
 }
-.elgg-user-menu li:after{
+.elgg-menu-user li:after{
        content: "|";
        display: inline-block;
        font-weight: normal;
        margin-left: 8px;
        margin-right: 4px;
 }
-.elgg-user-menu li:last-child:after {
+.elgg-menu-user li:last-child:after {
        content: "";
 }
 
@@ -246,32 +233,32 @@ table.mceLayout {
 /* ***************************************
        SIDEBAR MENU
 *************************************** */
-.elgg-page-menu a {
+.elgg-menu-page a {
        display: block;
        padding: 5px;
        color: #333333;
        cursor: pointer;
        text-decoration: none;
 }
-.elgg-page-menu .elgg-menu-closed:before {
+.elgg-menu-page .elgg-menu-closed:before {
        content: "\25B8";
        padding-right: 4px;
 }
-.elgg-page-menu .elgg-menu-opened:before {
+.elgg-menu-page .elgg-menu-opened:before {
        content: "\25BE";
        padding-right: 4px;
 }
-.elgg-page-menu a:hover {
+.elgg-menu-page a:hover {
        color: black;
        text-decoration: none;
 }
-.elgg-page-menu li.elgg-state-selected > ul {
+.elgg-menu-page li.elgg-state-selected > ul {
        display: block;
 }
-.elgg-page-menu .elgg-child-menu {
+.elgg-menu-page .elgg-child-menu {
        display: none;
 }
-.elgg-page-menu .elgg-child-menu a {
+.elgg-menu-page .elgg-child-menu a {
        padding-left: 20px;
 }
 
@@ -279,18 +266,18 @@ table.mceLayout {
        MODULES
 *************************************** */
 
-.elgg-main-module {
+.elgg-module-main {
        background-color: #ffffff;
        border: 1px solid #cccccc;
        padding: 10px;
 }
-.elgg-main-module > .elgg-head {
+.elgg-module-main > .elgg-head {
        margin-bottom: 5px;
 }
-.elgg-inline-module {
+.elgg-module-inline {
        margin: 20px 0;
 }
-.elgg-inline-module > .elgg-head {
+.elgg-module-inline > .elgg-head {
        background-color: #999999;
        color: white;
        padding: 5px;
@@ -298,7 +285,7 @@ table.mceLayout {
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
 }
-.elgg-inline-module > .elgg-head h3 {
+.elgg-module-inline > .elgg-head h3 {
        color: white;
 }
 
@@ -570,26 +557,28 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
 }
 
 <?php // @todo clean up and figure out what admin css needs ?>
-.elgg-user-icon {
-       position:relative;
+.elgg-avatar {
+       position: relative;
 }
-.elgg-hover-menu {
-       display: none;
+.elgg-avatar > a > img {
+       display: block;
 }
-.elgg-user-icon.tiny,
-img.tiny {
-       width:25px;
-       height:25px;
+.elgg-avatar-tiny > a > img {
+       width: 25px;
+       height: 25px;
+       /* remove the border-radius if you don't want rounded avatars in supported browsers */
+       -webkit-border-radius: 3px;
+       -moz-border-radius: 3px;
+       -moz-background-clip:  border;
 
        -o-background-size: 25px;
        -webkit-background-size: 25px;
        -khtml-background-size: 25px;
        -moz-background-size: 25px;
 }
-.elgg-user-icon.small,
-img.small {
-       width:40px;
-       height:40px;
+.elgg-avatar-small > a > img {
+       width: 40px;
+       height: 40px;
        /* remove the border-radius if you don't want rounded avatars in supported browsers */
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
@@ -600,17 +589,54 @@ img.small {
        -khtml-background-size: 40px;
        -moz-background-size: 40px;
 }
-img.large {
-       width:200px;
-       height:200px;
+.elgg-avatar-medium > a > img {
+       width: 100px;
+       height: 100px;
 }
-img.medium {
-       width:100px;
-       height:100px;
+.elgg-avatar-large > a > img {
+       width: 200px;
+       height: 200px;
 }
 
+.elgg-menu-hover {
+       display: none;
+       position: absolute;
+       z-index: 10000;
 
-
+       width: 165px;
+       border-top: solid 1px #E5E5E5;
+       border-left: solid 1px #E5E5E5;
+       border-right: solid 1px #999999;
+       border-bottom: solid 1px #999999;
+       background-color: #FFFFFF;
+       -webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.50);
+       -moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.50);
+}
+.elgg-menu-hover > li {
+       border-bottom: 1px solid #dddddd;
+}
+.elgg-menu-hover > li:last-child {
+       border-bottom: none;
+}
+.elgg-menu-hover .elgg-heading-basic {
+       display: block;
+}
+.elgg-menu-hover a {
+       display: block;
+       padding: 2px 8px;
+       font-size: 92%;
+}
+.elgg-menu-hover a:hover {
+       background: #cccccc;
+       text-decoration: none;
+}
+.elgg-hover-admin a {
+       color: red;
+}
+.elgg-hover-admin a:hover {
+       color: white;
+       background-color: red;
+}
 
 /*
 
index e5f66f53e28f6d3997ee74553f0a552c0873d64a..4025117f8848d4d959537d23869bbed36a26a759 100644 (file)
@@ -19,7 +19,7 @@ foreach ($menu_items as $item) {
 $dropdown_values[''] = elgg_echo('none');
 
 ?>
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo elgg_echo('admin:menu_items:configure'); ?></h3>
        </div>
@@ -47,7 +47,7 @@ for ($i=0; $i<6; $i++) {
        </div>
 </div>
 
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo elgg_echo('admin:add_menu_item'); ?></h3>
        </div>
index 8ed0fc2cce364fb9a9ebbcd227a72d7be52d67f6..efb691551fc54f1f6c21fe7a238be80bab00c3a9 100644 (file)
@@ -26,7 +26,7 @@ if ($admin_option) {
 $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "</p>";
 ?>
 
-<div class="elgg-module elgg-inline-module">
+<div class="elgg-module elgg-module-inline">
        <div class="elgg-head">
                <h3><?php echo elgg_echo('adduser'); ?></h3>
        </div>
index fe447715861526a73346aaf4c63d36dc8aaed108..64144830f1002bb915fb51ced577b31f8bdde509 100644 (file)
@@ -24,12 +24,12 @@ $logout = elgg_view('output/url', array(
 
 <div class="elgg-page-header">
        <div class="elgg-inner clearfix">
-               <h1 class="elgg-site-title">
+               <h1 class="elgg-heading-site">
                        <a href="<?php echo elgg_get_site_url(); ?>pg/admin/">
                                <?php echo $admin_title; ?>
                        </a>
                </h1>
-               <ul class="elgg-user-menu">
+               <ul class="elgg-menu-user">
                        <li><?php echo elgg_echo('admin:loggedin', array(get_loggedin_user()->name)); ?></li>
                        <li><?php echo $view_site; ?></li>
                        <li><?php echo $logout; ?></li>
index 2f1a6bebb863790114282b10138d076bcc20d7f8..db55649785d027c936fd046fdcd245fe5974c047 100644 (file)
@@ -8,5 +8,5 @@ $content = elgg_view_menu('page', array('sort_by' => 'name'));
 echo elgg_view('layout/objects/module', array(
        'title' => elgg_echo('admin:menu'),
        'body' => $content,
-       'class' => 'elgg-main-module',
+       'class' => 'elgg-module-main',
 ));