1 @import 'mediawiki.mixins';
2 @import 'mediawiki.ui/variables';
12 .mixin-screen-reader-text;
25 width: 20vw; /* responsive width */
32 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
33 border: solid 1px #aaa;
35 background-color: #fff;
36 .background-image( 'images/search-fade.png' );
37 background-position: top left;
38 background-repeat: repeat-x;
40 // Styles for both the search input and the button
45 background-color: transparent;
52 padding: 0.2em 0 0.2em 0.2em;
60 /* stylelint-disable indentation */
65 /* stylelint-enable indentation */
67 // Undo the styles Webkit browsers apply to type=search fields,
69 -webkit-appearance: textfield;
71 &::-webkit-search-decoration,
72 &::-webkit-search-cancel-button,
73 &::-webkit-search-results-button,
74 &::-webkit-search-results-decoration {
75 -webkit-appearance: textfield;
79 // The buttons. They are displayed in the same position, and if both are
80 // present the fulltext search one obscures the 'Go' one.
89 /* Hide button text and replace it with the image. */
90 text-indent: -99999px;
91 /* Needed to make IE6 respect the text-indent. */
93 /* Opera 12 on RTL flips the text in a funny way without this. */
101 .background-image-svg('images/search-ltr.svg', 'images/search-ltr.png');
102 background-position: center center;
103 background-repeat: no-repeat;