// These rules MAY NOT be merged because of how CSS requires browsers
// to parse unrecognized selectors!
+ // Note these rules ensure that placeholder text can be distinguished from
+ // standard text. In browsers which make this distinction clear these rules
+ // are not necessary.
+ // For inputs that use jquery.placeholder.js e.g. IE9-
&.placeholder {
color: #999;
}
+ // Distinguish placeholder text in IE10+
&:-ms-input-placeholder {
color: #999;
}
+ // Distinguish placeholder text in Firefox 18-
&:-moz-placeholder {
color: #999;
}
- &::-webkit-input-placeholder {
- color: #999;
- }
// Undo the styles Webkit browsers apply to type=search fields,
// we provide our own
height: 100%;
cursor: pointer;
/* Hide button text and replace it with the image. */
- text-indent: 100%;
+ /* This would be 100% if not for Firefox shenanigans (bug 60900). */
+ text-indent: 200%;
/* Needed to make IE6 respect the text-indent. */
line-height: 1;
/* Opera 12 on RTL flips the text in a funny way without this. */
z-index: 1;
}
}
-
- // The following styles exist only for backwards-compatibility with
- // cached HTML and are to be removed before 1.23 release.
-
- /* Fix direction changed for awful hacks */
- .sitedir-ltr div#simpleSearch button#searchButton {
- /* @noflip */
- direction: ltr;
- }
- .sitedir-rtl div#simpleSearch button#searchButton {
- /* @noflip */
- direction: rtl;
- }
-
- div#simpleSearch button#searchButton {
- position: absolute;
- padding: 0;
- padding-top: 0.3em;
- padding-bottom: 0.2em;
- padding-right: 0.4em;
- margin: 0;
- border: none;
- background-color: transparent;
- background-image: none;
- text-indent: 0;
-
- /* OVERRIDDEN BY COMPLIANT BROWSERS */
- img {
- border: none;
- margin: 0;
- margin-top: -3px;
- padding: 0;
- }
- /* IGNORED BY IE6 */
- > img {
- margin: 0;
- }
- }