diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-14 23:09:07 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-14 23:09:07 +0000 |
commit | caf11e94744c49e1b1533b45f0a44d0aa97704df (patch) | |
tree | 84992eac9d790704c6b832b55046faa26f0e9ed6 /views/default | |
parent | bd28cf062af5f516e8c1b273577a530fc215255b (diff) | |
download | elgg-caf11e94744c49e1b1533b45f0a44d0aa97704df.tar.gz elgg-caf11e94744c49e1b1533b45f0a44d0aa97704df.tar.bz2 |
Refs #3112: Pulled out widget gear icon into elgg-icon-gear, which widgets now use
git-svn-id: http://code.elgg.org/elgg/trunk@8710 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/css/admin.php | 20 | ||||
-rw-r--r-- | views/default/css/elements/icons.php | 4 | ||||
-rw-r--r-- | views/default/css/elements/modules.php | 15 | ||||
-rw-r--r-- | views/default/object/widget/elements/controls.php | 8 |
4 files changed, 27 insertions, 20 deletions
diff --git a/views/default/css/admin.php b/views/default/css/admin.php index 74e089c00..2a107b1ca 100644 --- a/views/default/css/admin.php +++ b/views/default/css/admin.php @@ -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; diff --git a/views/default/css/elements/icons.php b/views/default/css/elements/icons.php index ad289e793..d0d2ea777 100644 --- a/views/default/css/elements/icons.php +++ b/views/default/css/elements/icons.php @@ -79,6 +79,10 @@ width: 21px; height: 21px; } +.elgg-icon-gear { + background-position: -300px -2px; +} + .elgg-avatar > .elgg-icon-hover-menu { display: none; position: absolute; diff --git a/views/default/css/elements/modules.php b/views/default/css/elements/modules.php index 1a5c7e593..bc30548b6 100644 --- a/views/default/css/elements/modules.php +++ b/views/default/css/elements/modules.php @@ -161,27 +161,26 @@ .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 { diff --git a/views/default/object/widget/elements/controls.php b/views/default/object/widget/elements/controls.php index 5b794c1f7..a421d4d41 100644 --- a/views/default/object/widget/elements/controls.php +++ b/views/default/object/widget/elements/controls.php @@ -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); } |