From 91bc0d5d3cb156eb001173ded41ec6d6a4049853 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@12541 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 c0bb2dcb60..7119339cdf 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 0a2a554e0b..d317a01f28 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 8146328b40..22df8b2b28 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -142,12 +142,11 @@ $desc_header = ( $description != $file_show ) ? "$description (
-

-

+

-

+