25 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
26 border: solid 1px #aaa;
28 background-color: white;
29 .background-image('images/search-fade.png');
30 background-position: top left;
31 background-repeat: repeat-x;
33 // Styles for both the search input and the button
39 background-color: transparent;
48 padding: 0.2em 0 0.2em 0.2em;
56 // These rules MAY NOT be merged because of how CSS requires browsers
57 // to parse unrecognized selectors!
58 // Note these rules ensure that placeholder text can be distinguished from
59 // standard text. In browsers which make this distinction clear these rules
61 // For inputs that use jquery.placeholder.js e.g. IE9-
65 // Distinguish placeholder text in IE10+
66 &:-ms-input-placeholder {
69 // Distinguish placeholder text in Firefox 18-
74 // Undo the styles Webkit browsers apply to type=search fields,
76 -webkit-appearance: textfield;
78 &::-webkit-search-decoration,
79 &::-webkit-search-cancel-button,
80 &::-webkit-search-results-button,
81 &::-webkit-search-results-decoration {
82 -webkit-appearance: textfield;
86 // The buttons. They are displayed in the same position, and if both are
87 // present the fulltext search one obscures the 'Go' one.
95 /* Hide button text and replace it with the image. */
96 /* This would be 100% if not for Firefox shenanigans (bug 60900). */
98 /* Needed to make IE6 respect the text-indent. */
100 /* Opera 12 on RTL flips the text in a funny way without this. */
105 .background-image-svg('images/search-ltr.svg', 'images/search-ltr.png');
106 background-position: center center;
107 background-repeat: no-repeat;