mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Fix layout of welcome dialog on smaller screens"
This commit is contained in:
commit
3a9ec6bcce
|
@ -60,15 +60,12 @@ mw.libs.ve.WelcomeDialog.prototype.getSetupProcess = function ( data ) {
|
|||
// Provide default title and message
|
||||
data = $.extend( {
|
||||
title: mw.msg( 'visualeditor-welcomedialog-title', mw.user, mw.config.get( 'wgSiteName' ) ),
|
||||
message: $( '<div>' ).addClass( 'visualeditor-welcomedialog-content' )
|
||||
message: $( '<span>' )
|
||||
.addClass( 'visualeditor-welcomedialog-content' )
|
||||
.append(
|
||||
$( '<span>' )
|
||||
.addClass( 'visualeditor-welcomedialog-content-text' )
|
||||
.append(
|
||||
document.createTextNode( mw.msg( 'visualeditor-welcomedialog-content' ) ),
|
||||
$( '<br>' ),
|
||||
document.createTextNode( mw.msg( 'visualeditor-welcomedialog-content-thanks' ) )
|
||||
)
|
||||
document.createTextNode( mw.msg( 'visualeditor-welcomedialog-content' ) ),
|
||||
$( '<br>' ),
|
||||
document.createTextNode( mw.msg( 'visualeditor-welcomedialog-content-thanks' ) )
|
||||
)
|
||||
}, data );
|
||||
|
||||
|
|
|
@ -4,17 +4,11 @@
|
|||
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
||||
* @license The MIT License (MIT); see LICENSE.txt
|
||||
*/
|
||||
|
||||
.visualeditor-welcomedialog-content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ve-ui-mobileWindowManager .visualeditor-welcomedialog-content {
|
||||
background-size: 11em;
|
||||
}
|
||||
|
||||
.visualeditor-welcomedialog-content-text {
|
||||
background: url( images/welcomeSplash-ltr.png ) 50% -2em no-repeat;
|
||||
background-size: 50%;
|
||||
background: url( images/welcomeSplash-ltr.png ) 50% -1em no-repeat;
|
||||
background-size: contain;
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding-top: 12em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue