.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 {
width: 21px;
height: 21px;
}
+.elgg-icon-gear {
+ background-position: -300px -2px;
+}
+
.elgg-avatar > .elgg-icon-hover-menu {
display: none;
position: absolute;
width: 21px;
height: 21px;
}
+.elgg-icon-gear {
+ background-position: -300px -2px;
+}
+
.elgg-avatar > .elgg-icon-hover-menu {
display: none;
position: absolute;
.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 {
$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"
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);
}