From: Ori Livneh Date: Sat, 15 Aug 2015 04:24:26 +0000 (-0700) Subject: mediawiki.legacy.config: use own help-field styling X-Git-Tag: 1.31.0-rc.0~10412^2 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=1e06a9f02f9a3ca645f5abe5cd38943fcfa3aea2;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; +}