3 @import "mediawiki.mixins";
4 @import "mediawiki.ui/variables";
5 @import "mediawiki.ui/mixins";
7 // Placeholder text styling helper
8 .field-placeholder-styling() {
14 // When using an input or textarea apply the mw-ui-input class.
20 // Style an input using MediaWiki UI.
21 // Currently in draft status and subject to change.
22 // When focused a progressive highlight appears to the left of the field.
25 // <input value="input" class="mw-ui-input" value="input">
26 // <textarea class="mw-ui-input">textarea</textarea>
30 // turn off default input styling for input[type="search"] fields
31 -webkit-appearance: none;
32 border: 1px solid @colorFieldBorder;
33 .box-sizing(border-box);
35 padding: .3em .3em .3em .6em;
37 // Override user agent stylesheet properties. Instead use parent element.
42 .transition(~"border linear .2s, box-shadow linear .2s");
44 // Placeholder text styling must be set individually for each browser @winter
45 &::-webkit-input-placeholder { // webkit
46 .field-placeholder-styling;
48 &::-moz-placeholder { // FF 4-18
49 .field-placeholder-styling;
51 &:-moz-placeholder { // FF >= 19
52 .field-placeholder-styling;
54 &:-ms-input-placeholder { // IE >= 10
55 .field-placeholder-styling;
59 box-shadow: inset .45em 0 0 #5088f7;
60 border-color: @colorGrayDark;
61 // Remove focus glow on input[type="search"]
66 textarea.mw-ui-input {
72 // Use mw-ui-input-inline with mw-ui-input in cases where you want a button to line up with the input.
75 // <input value="input" class="mw-ui-input mw-ui-input-inline" value="input">
76 // <button class="mw-ui-button mw-ui-constructive">go</button>
80 display: inline-block;
86 // Use mw-ui-input-large with mw-ui-input in cases where there are multiple inputs on a screen and you
87 // want to draw more attention to one instance. For example add topic / reply to post forms.
88 // Currently in draft status and subject to change. When used on an input, the text is styled
89 // in a large font. When used alongside another mw-ui-input large they are pushed together to seem like
90 // one contiguous input.
93 // <input value="input" class="mw-ui-input mw-ui-input-large" value="input">
94 // <textarea class="mw-ui-input mw-ui-input-large">textarea</textarea>
100 & + .mw-ui-input-large {
105 input.mw-ui-input-large {