1 @import "mediawiki.mixins";
11 .mixin-screen-reader-text;
24 width: 20vw; /* responsive width */
31 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
32 border: solid 1px #aaa;
34 background-color: white;
35 .background-image('images/search-fade.png');
36 background-position: top left;
37 background-repeat: repeat-x;
39 // Styles for both the search input and the button
44 background-color: transparent;
51 padding: 0.2em 0 0.2em 0.2em;
59 // These rules MAY NOT be merged because of how CSS requires browsers
60 // to parse unrecognized selectors!
61 // Note these rules ensure that placeholder text can be distinguished from
62 // standard text. In browsers which make this distinction clear these rules
64 // For inputs that use jquery.placeholder.js e.g. IE9-
68 // Distinguish placeholder text in IE10+
69 &:-ms-input-placeholder {
72 // Distinguish placeholder text in Firefox 18-
77 // Undo the styles Webkit browsers apply to type=search fields,
79 -webkit-appearance: textfield;
81 &::-webkit-search-decoration,
82 &::-webkit-search-cancel-button,
83 &::-webkit-search-results-button,
84 &::-webkit-search-results-decoration {
85 -webkit-appearance: textfield;
89 // The buttons. They are displayed in the same position, and if both are
90 // present the fulltext search one obscures the 'Go' one.
99 /* Hide button text and replace it with the image. */
100 text-indent: -99999px;
101 /* Needed to make IE6 respect the text-indent. */
103 /* Opera 12 on RTL flips the text in a funny way without this. */
111 .background-image-svg('images/search-ltr.svg', 'images/search-ltr.png');
112 background-position: center center;
113 background-repeat: no-repeat;