mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
Merge "Use new placeholder mixin"
This commit is contained in:
commit
887fd162d4
|
@ -1,4 +1,5 @@
|
||||||
@import 'mediawiki.mixins';
|
@import 'mediawiki.mixins';
|
||||||
|
@import 'mediawiki.ui/variables';
|
||||||
|
|
||||||
/* Search */
|
/* Search */
|
||||||
#p-search {
|
#p-search {
|
||||||
|
@ -56,23 +57,12 @@ div#simpleSearch {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// These rules MAY NOT be merged because of how CSS requires browsers
|
/* stylelint-disable indentation */
|
||||||
// to parse unrecognized selectors!
|
.mixin-placeholder( {
|
||||||
// Note these rules ensure that placeholder text can be distinguished from
|
color: @colorGray7;
|
||||||
// standard text. In browsers which make this distinction clear these rules
|
opacity: 1;
|
||||||
// are not necessary.
|
} );
|
||||||
// For inputs that use jquery.placeholder.js e.g. IE9-
|
/* stylelint-enable indentation */
|
||||||
&.placeholder {
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
// Distinguish placeholder text in IE10+
|
|
||||||
&:-ms-input-placeholder { // stylelint-disable-line selector-no-vendor-prefix
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
// Distinguish placeholder text in Firefox 18-
|
|
||||||
&:-moz-placeholder { // stylelint-disable-line selector-no-vendor-prefix
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Undo the styles Webkit browsers apply to type=search fields,
|
// Undo the styles Webkit browsers apply to type=search fields,
|
||||||
// we provide our own
|
// we provide our own
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"license-name": "GPL-2.0+",
|
"license-name": "GPL-2.0+",
|
||||||
"type": "skin",
|
"type": "skin",
|
||||||
"requires": {
|
"requires": {
|
||||||
"MediaWiki": ">= 1.25.0"
|
"MediaWiki": ">= 1.29.0"
|
||||||
},
|
},
|
||||||
"ConfigRegistry": {
|
"ConfigRegistry": {
|
||||||
"vector": "GlobalVarConfig::newInstance"
|
"vector": "GlobalVarConfig::newInstance"
|
||||||
|
|
Loading…
Reference in a new issue