From a2264335fbe4b5be7485f03c64b2836e34b8b900 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 17 May 2009 17:55:15 +0000 Subject: [PATCH] (bug 18438) Tweak HTML for preview bar for consistency and accessibility (patch contributed by Happy-melon with tweaks by siebrand) --- RELEASE-NOTES | 1 + includes/DefaultSettings.php | 2 +- includes/EditPage.php | 12 ++++++++---- skins/monobook/main.css | 7 ++----- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a3c3397b50..8be866e102 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -127,6 +127,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 16912) Tooltips on images with link= disappear * (bug 18389) Localise numbers in EXIF data * (bug 18522) Wrap MediaWiki:Protect-cascadeon in a div for identification +* (bug 18438) Tweak HTML for preview bar for consistency and accessibility == API changes in 1.16 == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 0c146d51ff..dcc4c0e46c 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1479,7 +1479,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '218'; +$wgStyleVersion = '219'; # Server-side caching: diff --git a/includes/EditPage.php b/includes/EditPage.php index 16230f57e2..f3ef632a36 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1797,12 +1797,16 @@ END } } - $previewhead = '

' . htmlspecialchars( wfMsg( 'preview' ) ) . "

\n" . - "
" . $wgOut->parse( $note ) . "
\n"; - if ( $this->isConflict ) { - $previewhead .='

' . htmlspecialchars( wfMsg( 'previewconflict' ) ) . "

\n"; + if( $this->isConflict ) { + $conflict = '

' . htmlspecialchars( wfMsg( 'previewconflict' ) ) . "

\n"; + } else { + $conflict = '
'; } + $previewhead = "
\n" . + '

' . htmlspecialchars( wfMsg( 'preview' ) ) . "

" . + $wgOut->parse( $note ) . $conflict . "
\n"; + wfProfileOut( __METHOD__ ); return $previewhead . $previewHTML; } diff --git a/skins/monobook/main.css b/skins/monobook/main.css index a8213e949f..f430349a02 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -1242,16 +1242,13 @@ span.changedby { } .previewnote { - text-indent: 3em; color: #c00; - border-bottom: 1px solid #aaa; - padding-bottom: 1em; margin-bottom: 1em; } .previewnote p { - margin: 0; - padding: 0; + text-indent: 3em; + margin: 0.8em 0; } .editExternally { -- 2.20.1