Drop unnecessary CSS selectors for a.external[href^="gopher://"]
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 15 Sep 2013 17:40:37 +0000 (19:40 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 15 Sep 2013 17:40:37 +0000 (19:40 +0200)
* They don't do anything anyway - gopher:// links are not styled by
  anything else, so they'd just get the same styles as regular
  external links.
* They cause problems in browsers not supporting the attribute
  selector (like IE6), as the browser drops the entire rule, as
  required by the CSS specification.

Also removed some code in monobook/IE60Fixes.css which seems to be
simply a workaround for the issue described above.

Bug: 31495
Change-Id: Ib33d47d5372dd73097bdcef8d00ebd073f6bbd68

skins/modern/main.css
skins/monobook/IE60Fixes.css
skins/monobook/main.css
skins/vector/screen.css

index 47c320b..40fbfd7 100644 (file)
@@ -405,8 +405,7 @@ h1, h2, h3, h4, h5, h6 {
        text-decoration: none;
        color: white;
 }
-#mw_content a.external,
-#mw_content a.external[href ^="gopher://"] {
+#mw_content a.external {
        /* @embed */
        background: url(external.png) center right no-repeat;
        padding-right: 13px;
index ec1ce43..534d333 100644 (file)
@@ -70,15 +70,6 @@ div#footer {
 #portal-personaltools {
        padding-bottom: 0.1em;
 }
-#bodyContent a.external {
-       background: url(external.png) center right no-repeat;
-       padding-right: 13px;
-}
-
-.rtl #bodyContent a.external {
-       background-image: url(external-rtl.png);
-       padding-right: 13px;
-}
 
 .rtl a.feedlink {
        background-position: right;
index 50b9e09..d8f25eb 100644 (file)
@@ -142,8 +142,7 @@ table.rimage {
 ** keep the whitespace in front of the ^=, hides rule from konqueror
 ** this is css3, the validator doesn't like it when validating as css2
 */
-#bodyContent a.external,
-#bodyContent a.external[href ^="gopher://"] {
+#bodyContent a.external {
        /* @embed */
        background: url(external-ltr.png) center right no-repeat;
        padding-right: 13px;
index 8a69f84..c164c6d 100644 (file)
@@ -703,8 +703,7 @@ pre, .mw-code {
        margin-top: 0;
        font-size: 1.6em;
 }
-div#content a.external,
-div#content a.external[href ^="gopher://"] {
+div#content a.external {
        /* @embed */
        background: url(images/external-link-ltr-icon.png) center right no-repeat;
        padding-right: 13px;