]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3108 fixed widgets for main site (not admin) and tweaked topbar
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 4 Apr 2011 02:13:10 +0000 (02:13 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 4 Apr 2011 02:13:10 +0000 (02:13 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8933 36083f99-b078-4883-b0ff-0f9b5a30f544

_graphics/elgg_sprites.png
engine/lib/users.php
views/default/admin/appearance/profile_fields/list.php
views/default/css/elements/chrome.php
views/default/css/elements/icons.php
views/default/css/elements/modules.php
views/default/css/elements/navigation.php
views/default/object/widget/elements/controls.php

index 8aec48d9a429e68b344c2b4ed446fede302bae86..93e5e31f7838bb5f978ec332666f89dd5a5fccb0 100644 (file)
Binary files a/_graphics/elgg_sprites.png and b/_graphics/elgg_sprites.png differ
index 30497a44015a23b425e881566b6bc413742b7552..243334e2a7c3509879844d6c480451948e8ac1b6 100644 (file)
@@ -1461,10 +1461,12 @@ function users_pagesetup() {
                ));
 
                $icon_url = $user->getIconURL('topbar');
+               $class = 'elgg-border-plain elgg-transition';
+               $title = elgg_echo('profile');
                elgg_register_menu_item('topbar', array(
                        'name' => 'profile',
                        'href' =>  $user->getURL(),
-                       'text' => "<img src=\"$icon_url\" alt=\"$user->name\" class=\"elgg-border-plain\" />",
+                       'text' => "<img src=\"$icon_url\" alt=\"$user->name\" title=\"$title\" class=\"$class\" />",
                        'priority' => 100,
                ));
 
index 49312958305398e4e8d2c080a9d7c6c1888105a7..16e34ffabde3fb1c1f8bd2b4d3e90e567524d77d 100644 (file)
@@ -42,7 +42,7 @@ foreach ($items as $item) {
        $type = elgg_echo($item->type);
        echo <<<HTML
 <li id="$item->shortname" class="clearfix">
-       <span class="elgg-icon elgg-icon-dragger elgg-state-draggable"></span>
+       <span class="elgg-icon elgg-icon-drag-arrow elgg-state-draggable"></span>
        <b><span id="elgg-profile-field-{$item->shortname}" class="elgg-state-editable">$item->translation</span></b> [$type] $url
 </li>
 HTML;
index ab142707dfc75c26691c98354a4d8f2112e45af0..42fe910a558ae6fc6fd8b6211bd1c5b29c6de4e2 100644 (file)
@@ -87,6 +87,10 @@ h2 {
        background-color: white;
 }
 
+.elgg-transition:hover {
+       opacity: .7;
+}
+
 .elgg-comments {
        margin-top: 25px;
 }
@@ -100,6 +104,9 @@ h2 {
 .elgg-border-plain {
        border: 1px solid #eeeeee;
 }
+.elgg-border-transition {
+       border: 1px solid #eeeeee;
+}
 .elgg-divide-top {
        border-top: 1px solid #CCCCCC;
 }
index 758de5756a26dba4d8bcb3d80ace762b2bea50ff..bae905b40efe367054b2c8adf5bc20a8290e4d81 100644 (file)
 .elgg-icon-cursor-drag-arrow {
        background-position: 0 -36px;
 }
-.elgg-icon-delete:hover {
+.elgg-icon-delete-alt:hover {
        background-position: 0 -54px;
 }
-.elgg-icon-delete {
+.elgg-icon-delete-alt {
        background-position: 0 -72px;
 }
-.elgg-icon-download {
+.elgg-icon-delete:hover {
        background-position: 0 -90px;
 }
-.elgg-icon-facebook {
+.elgg-icon-delete {
        background-position: 0 -108px;
 }
-.elgg-icon-home {
+.elgg-icon-download {
        background-position: 0 -126px;
 }
-.elgg-icon-mail-empty {
+.elgg-icon-facebook {
        background-position: 0 -144px;
 }
-.elgg-icon-mail-full {
+.elgg-icon-home {
        background-position: 0 -162px;
 }
-.elgg-icon-print {
+.elgg-icon-mail-empty {
        background-position: 0 -180px;
 }
-.elgg-icon-push-pin {
+.elgg-icon-mail-full {
        background-position: 0 -198px;
 }
-.elgg-icon-redo {
+.elgg-icon-print {
        background-position: 0 -216px;
 }
-.elgg-icon-refresh {
+.elgg-icon-push-pin {
        background-position: 0 -234px;
 }
-.elgg-icon-round-arrow-left {
+.elgg-icon-redo {
        background-position: 0 -252px;
 }
-.elgg-icon-round-arrow-right {
+.elgg-icon-refresh {
        background-position: 0 -270px;
 }
-.elgg-icon-round-checkmark {
+.elgg-icon-round-arrow-left {
        background-position: 0 -288px;
 }
-.elgg-icon-round-delete {
+.elgg-icon-round-arrow-right {
        background-position: 0 -306px;
 }
-.elgg-icon-round-minus {
+.elgg-icon-round-checkmark {
        background-position: 0 -324px;
 }
-.elgg-icon-round-plus {
+.elgg-icon-round-minus {
        background-position: 0 -342px;
 }
-.elgg-icon-rss {
+.elgg-icon-round-plus {
        background-position: 0 -360px;
 }
-.elgg-icon-search {
+.elgg-icon-rss {
        background-position: 0 -378px;
 }
-.elgg-icon-settings-alt {
+.elgg-icon-search {
        background-position: 0 -396px;
 }
-.elgg-icon-settings {
+.elgg-icon-settings-alt:hover {
        background-position: 0 -414px;
 }
-.elgg-icon-shop-cart {
+.elgg-icon-settings-alt {
        background-position: 0 -432px;
 }
-.elgg-icon-spechbubble-alt {
+.elgg-icon-settings {
        background-position: 0 -450px;
 }
-.elgg-icon-spechbubble {
+.elgg-icon-shop-cart {
        background-position: 0 -468px;
 }
-.elgg-icon-sq-down {
+.elgg-icon-speech-bubble-alt:hover {
        background-position: 0 -486px;
 }
-.elgg-icon-sq-next {
+.elgg-icon-speech-bubble-alt {
        background-position: 0 -504px;
 }
-.elgg-icon-sq-prev {
+.elgg-icon-speech-bubble:hover {
        background-position: 0 -522px;
 }
-.elgg-icon-sq-up {
+.elgg-icon-speech-bubble {
        background-position: 0 -540px;
 }
 .elgg-icon-star-fav-empty {
 .elgg-icon-tag {
        background-position: 0 -594px;
 }
-.elgg-icon-thumbs-down {
+.elgg-icon-thumbs-down-alt:hover {
        background-position: 0 -612px;
 }
-.elgg-icon-thumbs-up-alt,
-.elgg-icon-thumbs-up:hover {
+.elgg-icon-thumbs-down-alt {
        background-position: 0 -630px;
 }
-.elgg-icon-thumbs-up-alt:hover {
+.elgg-icon-thumbs-down {
        background-position: 0 -648px;
 }
-.elgg-icon-thumbs-up {
+.elgg-icon-thumbs-up-alt:hover {
        background-position: 0 -666px;
 }
-.elgg-icon-trash {
+.elgg-icon-thumbs-up-alt,
+.elgg-icon-thumbs-up:hover {
        background-position: 0 -684px;
 }
-.elgg-icon-twitter {
+.elgg-icon-thumbs-up {
        background-position: 0 -702px;
 }
-.elgg-icon-undo {
+.elgg-icon-trash {
        background-position: 0 -720px;
 }
-.elgg-icon-user {
+.elgg-icon-twitter {
        background-position: 0 -738px;
 }
-.elgg-icon-users:hover {
+.elgg-icon-undo {
        background-position: 0 -756px;
 }
-.elgg-icon-users {
+.elgg-icon-user:hover {
        background-position: 0 -774px;
 }
+.elgg-icon-user {
+       background-position: 0 -792px;
+}
+.elgg-icon-users:hover {
+       background-position: 0 -810px;
+}
+.elgg-icon-users {
+       background-position: 0 -828px;
+}
 
 .elgg-avatar > .elgg-icon-hover-menu {
        display: none;
index bc30548b68e3ece7426ed36289e0c277c70e99e4..a5b907ddcaf62e5b1f8b8dfc01baa4242f4c80dc 100644 (file)
        background-color: #ccc;
 }
 .elgg-module-widget > .elgg-head {
-       background-color: #dedede;
-       height: 30px;
-       line-height: 30px;
+       background-color: #eeeeee;
+       height: 26px;
        overflow: hidden;
 }
 .elgg-module-widget > .elgg-head h3 {
        float: left;
-       padding: 0 45px 0 20px;
-       color: #333;
+       padding: 4px 45px 0 20px;
+       color: #666;
 }
 .elgg-module-widget.elgg-state-draggable > .elgg-head {
        cursor: move;
 }
 .elgg-module-widget > .elgg-head a {
        position: absolute;
-       top: 5px;
+       top: 4px;
        display: inline-block;
        width: 18px;
        height: 18px;
        padding: 2px 2px 0 0;
-       border: 1px solid transparent;
 }
 a.elgg-widget-collapse-button {
        left: 5px;
-       background:transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat 0px -385px;
+       color: #c5c5c5;
+}
+a.elgg-widget-collapse-button:hover,
+a.elgg-widget-collapsed:hover {
+       color: #9d9d9d;
+       text-decoration: none;
 }
-a.elgg-widget-collapsed {
-       background-position: 0px -365px;
+a.elgg-widget-collapse-button:before {
+       content: "\25BC";
+}
+a.elgg-widget-collapsed:before {
+       content: "\25BA";
 }
 a.elgg-widget-delete-button {
        right: 5px;
@@ -180,13 +186,11 @@ a.elgg-widget-delete-button {
 a.elgg-widget-edit-button {
        right: 25px;
 }
-a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
-       border: 1px solid #ccc;
-}
 .elgg-module-widget > .elgg-body {
        background-color: white;
        width: 100%;
        overflow: hidden;
+       border-top: 2px solid #dedede;
 }
 .elgg-widget-edit {
        display: none;
index e7c00b7754459024c29e38d4f649524e5c1f05b6..a3bd0bca8cfd1c6e5ce8eab5ff1f300add569e2a 100644 (file)
 .elgg-menu-topbar > li > a {
        padding: 2px 15px;
        color: #eee;
-       margin-top: 2px;
+       margin-top: 1px;
 }
 
 .elgg-menu-topbar > li > a > span {
index a421d4d41803b515a432fe89c64c8b1fa79e0a9a..83a2f5767ba4c8b323b9e601296b939ae218b715 100644 (file)
@@ -19,7 +19,7 @@ $collapse_link = elgg_view('output/url', $params);
 $delete_link = $edit_link = '';
 if ($widget->canEdit()) {
        $params = array(
-               'text' => elgg_view_icon('delete'),
+               'text' => elgg_view_icon('delete-alt'),
                'title' => elgg_echo('widget:delete', array($widget->getTitle())),
                'href' => "action/widgets/delete?guid=$widget->guid",
                'is_action' => true,
@@ -30,7 +30,7 @@ if ($widget->canEdit()) {
 
        if ($show_edit) {
                $params = array(
-                       'text' => elgg_view_icon('gear'),
+                       'text' => elgg_view_icon('settings-alt'),
                        'title' => elgg_echo('widget:edit'),
                        'href' => "#widget-edit-$widget->guid",
                        'class' => "elgg-toggler elgg-widget-edit-button",