From 1e06a9f02f9a3ca645f5abe5cd38943fcfa3aea2 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Fri, 14 Aug 2015 21:24:26 -0700 Subject: [PATCH] mediawiki.legacy.config: use own help-field styling Instead of using .mw-help-field-container from mediawiki.legacy to style help tooltips, use a class that is specific to the WebInstaller and which is styled in its stylesheet. This allows us to stop embedding it in mediawiki.legacy (which is loaded on every page). The CSS is copied directly from the styles for mw-help-field-container et al. in mediawiki.legacy. Change-Id: I8e092e9d2c91b5f70499d93c1134f43f2e96348c --- includes/installer/WebInstaller.php | 6 +++--- mw-config/config.css | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index 4930826059..74904f120b 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -696,11 +696,11 @@ class WebInstaller extends Installer { $text = wfMessage( $msg, $args )->useDatabase( false )->plain(); $html = $this->parse( $text, true ); - return "
\n" . - "\n" . + "escaped() . "\">" . wfMessage( 'config-help' )->escaped() . "\n" . - "" . $html . "\n" . + "" . $html . "\n" . "
\n"; } diff --git a/mw-config/config.css b/mw-config/config.css index 17b2039215..0e0b304cbb 100644 --- a/mw-config/config.css +++ b/mw-config/config.css @@ -172,3 +172,32 @@ overflow: hidden; min-width: 20em; } + +/* tooltip styles */ +.config-help-field-hint { + display: none; + margin-left: 2px; + margin-bottom: -8px; + padding: 0 0 0 15px; + /* @embed */ + background-image: url(images/help-question.gif); + background-position: left center; + background-repeat: no-repeat; + cursor: pointer; + font-size: .8em; + text-decoration: underline; + color: #0645ad; +} + +.config-help-field-hint:hover { + /* @embed */ + background-image: url(images/help-question-hover.gif); +} + +.config-help-field-data { + display: block; + background-color: #d6f3ff; + padding: 5px 8px 4px 8px; + border: 1px solid #5dc9f4; + margin-left: 20px; +} -- 2.20.1