From 6e5cb747b033bba6bd61bd726d248970f733b752 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Sun, 10 Jan 2021 14:49:46 -0800 Subject: [PATCH] [ticket/16681] Use Font Icons for ACP Action Buttons PHPBB3-16681 --- phpBB/adm/style/admin.css | 4 ++++ phpBB/adm/style/admin.js | 5 +++++ phpBB/includes/functions_acp.php | 20 ++++++++++---------- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css index c1f23f03d0..33e9e1f8c0 100644 --- a/phpBB/adm/style/admin.css +++ b/phpBB/adm/style/admin.css @@ -2739,3 +2739,7 @@ fieldset.permissions .padding { width: 1em; } /* stylelint-enable declaration-property-unit-whitelist */ + +.acp-icon { + font-size: 1.5em; +} diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js index 1dea68ed80..23bd4a116b 100644 --- a/phpBB/adm/style/admin.js +++ b/phpBB/adm/style/admin.js @@ -254,5 +254,10 @@ function parse_document(container) }); $('#configlist').closest('.send-stats-data-row').addClass('send-stats-data-hidden'); + + // Do not underline actions icons on hover (could not be done via CSS) + $('.actions a:has(i.acp-icon)').mouseover(function () { + $(this).css("text-decoration", "none"); + }); }); })(jQuery); diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index 4e4e888402..e197dcbe3c 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -93,16 +93,16 @@ function adm_page_header($page_title) 'T_ASSETS_VERSION' => $config['assets_version'], - 'ICON_MOVE_UP' => '' . $user->lang['MOVE_UP'] . '', - 'ICON_MOVE_UP_DISABLED' => '' . $user->lang['MOVE_UP'] . '', - 'ICON_MOVE_DOWN' => '' . $user->lang['MOVE_DOWN'] . '', - 'ICON_MOVE_DOWN_DISABLED' => '' . $user->lang['MOVE_DOWN'] . '', - 'ICON_EDIT' => '' . $user->lang['EDIT'] . '', - 'ICON_EDIT_DISABLED' => '' . $user->lang['EDIT'] . '', - 'ICON_DELETE' => '' . $user->lang['DELETE'] . '', - 'ICON_DELETE_DISABLED' => '' . $user->lang['DELETE'] . '', - 'ICON_SYNC' => '' . $user->lang['RESYNC'] . '', - 'ICON_SYNC_DISABLED' => '' . $user->lang['RESYNC'] . '', + 'ICON_MOVE_UP' => '', + 'ICON_MOVE_UP_DISABLED' => '', + 'ICON_MOVE_DOWN' => '', + 'ICON_MOVE_DOWN_DISABLED' => '', + 'ICON_EDIT' => '', + 'ICON_EDIT_DISABLED' => '', + 'ICON_DELETE' => '', + 'ICON_DELETE_DISABLED' => '', + 'ICON_SYNC' => '', + 'ICON_SYNC_DISABLED' => '', 'S_USER_LANG' => $user->lang['USER_LANG'], 'S_CONTENT_DIRECTION' => $user->lang['DIRECTION'],