From d6a58eec48261394477683b727c14b7390d56465 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 25 Sep 2017 21:45:57 +0000 Subject: [PATCH] Code Editors: Update the current file highlight to use notice styling. Improves color contrast and readability, and reuses a core design pattern. Props kekkakokkers, monopine, Travel_girl, afercia, melchoyce, karmatosed. Fixes #31604. git-svn-id: https://develop.svn.wordpress.org/trunk@41595 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 16 ++++++++++++++++ src/wp-admin/plugin-editor.php | 4 ++-- src/wp-admin/theme-editor.php | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 2d67f34f9b..564e6b42c9 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -1461,6 +1461,22 @@ div.error { margin: 5px 0 15px; } +.wrap #templateside .notice { + display: block; + margin: 0; + padding: 5px 12px; + font-weight: 600; + text-decoration: none; +} + +.wrap #templateside span.notice { + margin-left: -12px; +} + +#templateside li.notice a { + padding: 0; +} + /* Update icon. */ .update-message p:before, .updating-message p:before, diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php index 8925a5b8dd..bc21642153 100644 --- a/src/wp-admin/plugin-editor.php +++ b/src/wp-admin/plugin-editor.php @@ -321,8 +321,8 @@ foreach ( $plugin_files as $plugin_file ) : // No extension found continue; } -?> - > + ?> +
  • diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php index 64290c4027..35ec0402bc 100644 --- a/src/wp-admin/theme-editor.php +++ b/src/wp-admin/theme-editor.php @@ -283,7 +283,7 @@ if ( $allowed_files ) : } if ( $absolute_filename === $file ) { - $file_description = '' . $file_description . ''; + $file_description = '' . $file_description . ''; } $previous_file_type = $file_type;