Merge "Move HTMLForm-specific styles out of mediawiki.legacy.shared"
This commit is contained in:
commit
0a138f1acf
6 changed files with 56 additions and 46 deletions
|
|
@ -898,6 +898,7 @@ class HTMLForm extends ContextSource {
|
|||
# For good measure (it is the default)
|
||||
$this->getOutput()->preventClickjacking();
|
||||
$this->getOutput()->addModules( 'mediawiki.htmlform' );
|
||||
$this->getOutput()->addModuleStyles( 'mediawiki.htmlform.styles' );
|
||||
|
||||
$html = ''
|
||||
. $this->getErrors( $submitResult )
|
||||
|
|
|
|||
|
|
@ -1030,6 +1030,10 @@ return array(
|
|||
'colon-separator',
|
||||
),
|
||||
),
|
||||
'mediawiki.htmlform.styles' => array(
|
||||
'styles' => 'resources/src/mediawiki/mediawiki.htmlform.css',
|
||||
'position' => 'top',
|
||||
),
|
||||
'mediawiki.htmlform.ooui.styles' => array(
|
||||
'styles' => 'resources/src/mediawiki/mediawiki.htmlform.ooui.css',
|
||||
'position' => 'top',
|
||||
|
|
|
|||
|
|
@ -218,56 +218,10 @@ td.mw-label {
|
|||
width: auto;
|
||||
}
|
||||
|
||||
.mw-icon-question {
|
||||
/* SVG support using a transparent gradient to guarantee cross-browser
|
||||
* compatibility (browsers able to understand gradient syntax support also SVG).
|
||||
* http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
|
||||
background-image: url(images/question.png);
|
||||
background-image: -webkit-linear-gradient(transparent, transparent), url(images/question.svg);
|
||||
background-image: linear-gradient(transparent, transparent), url(images/question.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 13px 13px;
|
||||
display: inline-block;
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.mw-icon-question:lang(ar),
|
||||
.mw-icon-question:lang(fa),
|
||||
.mw-icon-question:lang(ur) {
|
||||
-webkit-transform: scaleX(-1);
|
||||
-ms-transform: scaleX(-1);
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
td.mw-submit {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
table.mw-htmlform-nolabel td.mw-label {
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
tr.mw-htmlform-vertical-label td.mw-label {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.mw-htmlform-invalid-input td.mw-input input {
|
||||
border-color: red;
|
||||
}
|
||||
|
||||
.mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
|
||||
display: inline;
|
||||
margin-right: 1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mw-htmlform-matrix td {
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
input#wpSummary {
|
||||
width: 80%;
|
||||
margin-bottom: 1em;
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 316 B After Width: | Height: | Size: 316 B |
|
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 683 B |
51
resources/src/mediawiki/mediawiki.htmlform.css
Normal file
51
resources/src/mediawiki/mediawiki.htmlform.css
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
/* HTMLForm styles */
|
||||
|
||||
table.mw-htmlform-nolabel td.mw-label {
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.mw-htmlform-invalid-input td.mw-input input {
|
||||
border-color: red;
|
||||
}
|
||||
|
||||
.mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
|
||||
display: inline;
|
||||
margin-right: 1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* HTMLCheckMatrix */
|
||||
|
||||
.mw-htmlform-matrix td {
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
tr.mw-htmlform-vertical-label td.mw-label {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.mw-icon-question {
|
||||
/* SVG support using a transparent gradient to guarantee cross-browser
|
||||
* compatibility (browsers able to understand gradient syntax support also SVG).
|
||||
* http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
|
||||
background-image: url(images/question.png);
|
||||
/* @embed */
|
||||
background-image: -webkit-linear-gradient(transparent, transparent), url(images/question.svg);
|
||||
/* @embed */
|
||||
background-image: linear-gradient(transparent, transparent), url(images/question.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 13px 13px;
|
||||
display: inline-block;
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.mw-icon-question:lang(ar),
|
||||
.mw-icon-question:lang(fa),
|
||||
.mw-icon-question:lang(ur) {
|
||||
-webkit-transform: scaleX(-1);
|
||||
-ms-transform: scaleX(-1);
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
Loading…
Reference in a new issue