diff --git a/css/puc-debug-bar.css b/css/puc-debug-bar.css index e3a7cc5..9675685 100644 --- a/css/puc-debug-bar.css +++ b/css/puc-debug-bar.css @@ -2,8 +2,51 @@ margin-top: 0; } +/* Style the debug data table to match "widefat" table style used by WordPress. */ +table.puc-debug-data { + width: 100%; + clear: both; + margin: 0; + + border-spacing: 0; + background-color: #f9f9f9; + + border-radius: 3px; + border: 1px solid #dfdfdf; + border-collapse: separate; +} + +table.puc-debug-data * { + word-wrap: break-word; +} + table.puc-debug-data th { width: 11em; + padding: 7px 7px 8px; + text-align: left; + + font-family: "Georgia", "Times New Roman", "Bitstream Charter", "Times", serif; + font-weight: 400; + font-size: 14px; + line-height: 1.3em; + text-shadow: rgba(255, 255, 255, 0.804) 0 1px 0; +} + +table.puc-debug-data td, table.puc-debug-data th { + border-width: 1px 0; + border-style: solid; + + border-top-color: #fff; + border-bottom-color: #dfdfdf; + + text-transform: none; +} + +table.puc-debug-data td { + color: #555; + font-size: 12px; + padding: 4px 7px 2px; + vertical-align: top; } .puc-ajax-response { diff --git a/debug-bar-panel.php b/debug-bar-panel.php index 24722ee..433a79b 100644 --- a/debug-bar-panel.php +++ b/debug-bar-panel.php @@ -29,7 +29,7 @@ class PluginUpdateCheckerPanel extends Debug_Bar_Panel { $responseBox = ''; echo '

Configuration

'; - echo ''; + echo '
'; $this->row('Plugin file', htmlentities($this->updateChecker->pluginFile)); $this->row('Slug', htmlentities($this->updateChecker->slug)); $this->row('DB option', htmlentities($this->updateChecker->optionName)); @@ -45,7 +45,7 @@ class PluginUpdateCheckerPanel extends Debug_Bar_Panel { echo '
'; echo '

Status

'; - echo ''; + echo '
'; $state = $this->updateChecker->getUpdateState(); $checkNowButton = function_exists('get_submit_button') ? get_submit_button('Check Now', 'secondary', 'puc-check-now-button', false) : ''; @@ -68,7 +68,7 @@ class PluginUpdateCheckerPanel extends Debug_Bar_Panel { $update = $this->updateChecker->getUpdate(); if ( $update !== null ) { echo '

An Update Is Available

'; - echo '
'; + echo '
'; $fields = array('version', 'download_url', 'slug', 'homepage', 'upgrade_notice'); foreach($fields as $field) { $this->row(ucwords(str_replace('_', ' ', $field)), htmlentities($update->$field)); diff --git a/debug-bar-plugin.php b/debug-bar-plugin.php index 181c3ff..df44915 100644 --- a/debug-bar-plugin.php +++ b/debug-bar-plugin.php @@ -37,7 +37,7 @@ class PucDebugBarPlugin { 'puc-debug-bar-style', plugins_url( "/css/puc-debug-bar.css", __FILE__ ), array('debug-bar'), - '20121026-3' + '20130927' ); wp_enqueue_script(