Add space between input fields and buttons

It looks strange, if the button is directly after the input field
without any space.

Change-Id: I6435df75253080b68164415b354248ace2bbaede
This commit is contained in:
Florian 2015-04-26 01:40:14 +02:00 committed by Florianschmidtwelzow
parent 9c619c4252
commit 50b015d7fe
2 changed files with 9 additions and 4 deletions

View file

@ -123,7 +123,7 @@ class InputBox {
); );
$htmlOut .= Xml::element( 'input', $htmlOut .= Xml::element( 'input',
array( array(
'class' => 'searchboxInput mw-ui-input mw-ui-input-inline', 'class' => 'mw-inputbox-input searchboxInput mw-ui-input mw-ui-input-inline',
'name' => 'search', 'name' => 'search',
'type' => $this->mHidden ? 'hidden' : 'text', 'type' => $this->mHidden ? 'hidden' : 'text',
'value' => $this->mDefaultText, 'value' => $this->mDefaultText,
@ -431,7 +431,8 @@ class InputBox {
array( array(
'type' => $this->mHidden ? 'hidden' : 'text', 'type' => $this->mHidden ? 'hidden' : 'text',
'name' => 'title', 'name' => 'title',
'class' => 'mw-ui-input mw-ui-input-inline createboxInput', 'class' => ( strtolower( $this->mBR ) === '<br />' ? 'mw-inputbox-input ' : '' ) .
'mw-ui-input mw-ui-input-inline createboxInput',
'value' => $this->mDefaultText, 'value' => $this->mDefaultText,
'placeholder' => $this->mPlaceholderText, 'placeholder' => $this->mPlaceholderText,
'size' => $this->mWidth, 'size' => $this->mWidth,
@ -505,7 +506,7 @@ class InputBox {
array( array(
'type' => $this->mHidden ? 'hidden' : 'text', 'type' => $this->mHidden ? 'hidden' : 'text',
'name' => 'wpNewTitle', 'name' => 'wpNewTitle',
'class' => 'mw-moveboxInput mw-ui-input mw-ui-input-inline', 'class' => 'mw-inputbox-input mw-moveboxInput mw-ui-input mw-ui-input-inline',
'value' => $this->mDefaultText, 'value' => $this->mDefaultText,
'placeholder' => $this->mPlaceholderText, 'placeholder' => $this->mPlaceholderText,
'size' => $this->mWidth, 'size' => $this->mWidth,
@ -587,7 +588,7 @@ class InputBox {
array( array(
'type' => $this->mHidden ? 'hidden' : 'text', 'type' => $this->mHidden ? 'hidden' : 'text',
'name' => 'preloadtitle', 'name' => 'preloadtitle',
'class' => 'commentboxInput mw-ui-input mw-ui-input-inline', 'class' => 'mw-inputbox-input commentboxInput mw-ui-input mw-ui-input-inline',
'value' => $this->mDefaultText, 'value' => $this->mDefaultText,
'placeholder' => $this->mPlaceholderText, 'placeholder' => $this->mPlaceholderText,
'size' => $this->mWidth, 'size' => $this->mWidth,

View file

@ -13,3 +13,7 @@
display: inline-table !important; display: inline-table !important;
white-space: nowrap; white-space: nowrap;
} }
.mw-inputbox-input {
margin-bottom: 0.5em;
}