From 6e5cb747b033bba6bd61bd726d248970f733b752 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Sun, 10 Jan 2021 14:49:46 -0800 Subject: [PATCH 1/3] [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'], From ffbd1abd87dca38d587d3fab030a992e18fa5f02 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Mon, 11 Jan 2021 14:09:18 -0800 Subject: [PATCH 2/3] [ticket/16681] Remove inline styles PHPBB3-16681 --- phpBB/adm/style/admin.css | 21 +++++++++++++++++++++ phpBB/includes/functions_acp.php | 20 ++++++++++---------- 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css index 33e9e1f8c0..56445ccf70 100644 --- a/phpBB/adm/style/admin.css +++ b/phpBB/adm/style/admin.css @@ -2743,3 +2743,24 @@ fieldset.permissions .padding { .acp-icon { font-size: 1.5em; } + +.acp-icon-move-up, +.acp-icon-move-down { + color: #4ba5de; +} + +.acp-icon-settings { + color: #62c046; +} + +.acp-icon-delete { + color: #d74558; +} + +.acp-icon-resync { + color: #f69934; +} + +.acp-icon-disabled { + color: #d0d0d0; +} diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index e197dcbe3c..d7278cc101 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' => '', - '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' => '', + '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'], From 009efef3c9b4cf2ba48250146c61f10309358a8e Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Fri, 15 Jan 2021 13:29:23 -0800 Subject: [PATCH 3/3] [ticket/16681] CSS adjustment PHPBB3-16681 --- phpBB/adm/style/admin.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css index 56445ccf70..4642b13f39 100644 --- a/phpBB/adm/style/admin.css +++ b/phpBB/adm/style/admin.css @@ -2738,11 +2738,11 @@ fieldset.permissions .padding { height: 1em; width: 1em; } -/* stylelint-enable declaration-property-unit-whitelist */ .acp-icon { font-size: 1.5em; } +/* stylelint-enable declaration-property-unit-whitelist */ .acp-icon-move-up, .acp-icon-move-down {