]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3112: Pulled out widget gear icon into elgg-icon-gear, which widgets now use
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Mar 2011 23:09:07 +0000 (23:09 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Mar 2011 23:09:07 +0000 (23:09 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8710 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css/admin.php
views/default/css/elements/icons.php
views/default/css/elements/modules.php
views/default/object/widget/elements/controls.php

index 74e089c0022cdf20cd8efee437b22a44a050c74b..2a107b1ca3996070bb8ebc116a7f4c6c894b9fdc 100644 (file)
@@ -599,28 +599,28 @@ input[type="submit"]:hover, .elgg-button-submit:hover, .elgg-button-action:hover
 .elgg-module-widget > .elgg-head a {
        position: absolute;
        top: 5px;
-       display: block;
+       display: inline-block;
        width: 18px;
        height: 18px;
+       padding: 2px 2px 0 0;
        border: 1px solid transparent;
 }
 
-a.elgg-widget-collapse-button {
+.elgg-widget-collapse-button {
        left: 5px;
        background:transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat 0px -385px;
 }
-a.elgg-widget-collapsed {
+.elgg-widget-collapsed {
        background-position: 0px -365px;
 }
-a.elgg-widget-delete-button {
+.elgg-widget-delete-button {
        right: 5px;
-       background:transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -198px 3px;
 }
-a.elgg-widget-edit-button {
+.elgg-widget-edit-button {
        right: 25px;
-       background:transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -300px -1px;
 }
-a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
+.elgg-module-widget .elgg-widget-edit-button:hover, 
+.elgg-module-widget .elgg-widget-delete-button:hover {
        border: 1px solid #ccc;
 }
 .elgg-module-widget > .elgg-body {
@@ -1261,6 +1261,10 @@ ul.admin_plugins {
        width: 21px;
        height: 21px;
 }
+.elgg-icon-gear {
+       background-position: -300px -2px;
+}
+
 .elgg-avatar > .elgg-icon-hover-menu {
        display: none;
        position: absolute;
index ad289e7935418db8eb1cd46eac5adaecd46d973f..d0d2ea777763f0039a80217474204dc087d6d8c0 100644 (file)
        width: 21px;
        height: 21px;
 }
+.elgg-icon-gear {
+       background-position: -300px -2px;
+}
+
 .elgg-avatar > .elgg-icon-hover-menu {
        display: none;
        position: absolute;
index 1a5c7e5939dd21ac61094958054f2ad8ad05c385..bc30548b68e3ece7426ed36289e0c277c70e99e4 100644 (file)
 .elgg-module-widget > .elgg-head a {
        position: absolute;
        top: 5px;
-       display: block;
+       display: inline-block;
        width: 18px;
        height: 18px;
+       padding: 2px 2px 0 0;
        border: 1px solid transparent;
 }
-.elgg-widget-collapse-button {
+a.elgg-widget-collapse-button {
        left: 5px;
        background:transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat 0px -385px;
 }
-.elgg-widget-collapsed {
+a.elgg-widget-collapsed {
        background-position: 0px -365px;
 }
-.elgg-widget-delete-button {
+a.elgg-widget-delete-button {
        right: 5px;
-       background:transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -198px 3px;
 }
-.elgg-widget-edit-button {
+a.elgg-widget-edit-button {
        right: 25px;
-       background:transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -300px -1px;
 }
-.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
+a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
        border: 1px solid #ccc;
 }
 .elgg-module-widget > .elgg-body {
index 5b794c1f79a84cdbe6b7f16b441ba0c667bc2b60..a421d4d41803b515a432fe89c64c8b1fa79e0a9a 100644 (file)
@@ -19,9 +19,9 @@ $collapse_link = elgg_view('output/url', $params);
 $delete_link = $edit_link = '';
 if ($widget->canEdit()) {
        $params = array(
-               'text' => ' ',
+               'text' => elgg_view_icon('delete'),
                'title' => elgg_echo('widget:delete', array($widget->getTitle())),
-               'href' => elgg_get_site_url() . "action/widgets/delete?guid=$widget->guid",
+               'href' => "action/widgets/delete?guid=$widget->guid",
                'is_action' => true,
                'class' => 'elgg-widget-delete-button',
                'id' => "elgg-widget-delete-button-$widget->guid"
@@ -30,10 +30,10 @@ if ($widget->canEdit()) {
 
        if ($show_edit) {
                $params = array(
-                       'text' => ' ',
+                       'text' => elgg_view_icon('gear'),
                        'title' => elgg_echo('widget:edit'),
                        'href' => "#widget-edit-$widget->guid",
-                       'class' => "elgg-widget-edit-button elgg-toggler",
+                       'class' => "elgg-toggler elgg-widget-edit-button",
                );
                $edit_link = elgg_view('output/url', $params);
        }