From 4a91f16421ecc79ec1a5c17058a8d22fd4a1e9ad Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 25 Dec 2009 03:16:25 +0000 Subject: [PATCH] Some style tweaks to theme editor, fixes #11563. Hat tip: Simek. I adjusted the padding to be a little heavier and then have a negative margin, so the text stays aligned and the highlight floats around it. As an added tweak I removed the extraneous "Theme Files" heading which didn't really convey any useful information. "Perfection is achieved perfection not when there is nothing left to add, but when there is nothing left to take away" -- Antoine de Saint-Exupery (and Merry Christmas everybody. :)) git-svn-id: http://svn.automattic.com/wordpress/trunk@12541 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/theme-editor.css | 2 +- wp-admin/css/theme-editor.dev.css | 12 ++++++++++-- wp-admin/theme-editor.php | 13 ++++++------- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/wp-admin/css/theme-editor.css b/wp-admin/css/theme-editor.css index c0bb2dcb6..7119339cd 100644 --- a/wp-admin/css/theme-editor.css +++ b/wp-admin/css/theme-editor.css @@ -1 +1 @@ -#template textarea{font-family:Consolas,Monaco,Courier,monospace;font-size:12px;width:97%;}#template p{width:97%;}#templateside{float:right;width:190px;word-wrap:break-word;}#templateside h3,#postcustomstuff p.submit{margin:0;}#templateside h4{margin:1em 0 0;}#templateside ol,#templateside ul{margin:.5em;padding:0;}#templateside li{margin:4px 0;}.nonessential{font-size:small;}.highlight{padding:1px;}div.tablenav{margin-right:210px;}#documentation{margin-top:10px;}#documentation label{line-height:22px;vertical-align:top;font-weight:bold;}.fileedit-sub{padding:10px 0 8px;line-height:180%;} \ No newline at end of file +#template textarea{font-family:Consolas,Monaco,Courier,monospace;font-size:12px;width:97%;}#template p{width:97%;}#templateside{float:right;width:190px;word-wrap:break-word;}#templateside h3,#postcustomstuff p.submit{margin:0;}#templateside h4{margin:1em 0 0;}#templateside ol,#templateside ul{margin:.5em;padding:0;}#templateside li{margin:4px 0;}.nonessential{font-size:11px;font-style:italic;padding-left:12px;}.highlight{padding:3px 3px 3px 12px;margin-left:-12px;font-weight:bold;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;}div.tablenav{margin-right:210px;}#documentation{margin-top:10px;}#documentation label{line-height:22px;vertical-align:top;font-weight:bold;}.fileedit-sub{padding:10px 0 8px;line-height:180%;} \ No newline at end of file diff --git a/wp-admin/css/theme-editor.dev.css b/wp-admin/css/theme-editor.dev.css index 0a2a554e0..d317a01f2 100644 --- a/wp-admin/css/theme-editor.dev.css +++ b/wp-admin/css/theme-editor.dev.css @@ -34,11 +34,19 @@ } .nonessential { - font-size: small; + font-size: 11px; + font-style: italic; + padding-left: 12px; } .highlight { - padding: 1px; + padding: 3px 3px 3px 12px; + margin-left: -12px; + font-weight: bold; + -moz-border-radius: 8px; + -khtml-border-radius: 8px; + -webkit-border-radius: 8px; + border-radius: 8px; } div.tablenav { diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 8146328b4..22df8b2b2 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -142,12 +142,11 @@ $desc_header = ( $description != $file_show ) ? "$description (
-

-

+

-

+