Merge "Remove HTML back-compat styles from I5fe0543e"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 7 Mar 2014 21:58:49 +0000 (21:58 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 7 Mar 2014 21:58:49 +0000 (21:58 +0000)
1  2 
skins/vector/components/search.less

@@@ -55,21 -55,18 +55,21 @@@ div#simpleSearch 
  
                // 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
@@@ -93,8 -90,7 +93,8 @@@
                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;
-       }
- }