Port r51457 from monobook to modern, simple and Vector.
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 2 Oct 2011 16:50:52 +0000 (16:50 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 2 Oct 2011 16:50:52 +0000 (16:50 +0000)
See also Bug 18207

Takes care of disappearing symbol when clicking extiw links, and triggering the external link and https lock icon on internal links.

skins/common/commonElements.css
skins/modern/main.css
skins/simple/main.css
skins/vector/screen.css

index d16ee68..01c2df6 100644 (file)
@@ -31,9 +31,6 @@ a.new:visited, #p-personal a.new:visited {
 .mw-body a.extiw,
 .mw-body a.extiw:active {
        color: #36b;
-       /* Don't show icons for interwiki links */
-       background: none;
-       padding: 0;
 }
 .mw-body a.extiw:visited {
        color: #636;
index fe9ede6..3ad8df6 100644 (file)
@@ -411,38 +411,36 @@ h1, h2, h3, h4, h5, h6 {
 }
 
 #mw_content a.external,
-#mw_content a[href ^="gopher://"] {
+#mw_content a.external[href ^="gopher://"] {
        /* @embed */
        background: url(external.png) center right no-repeat;
        padding-right: 13px;
 }
-#mw_content a[href ^="https://"],
+#mw_content a.external[href ^="https://"],
 .link-https {
        /* @embed */
        background: url(lock_icon.gif) center right no-repeat;
        padding-right: 16px;
 }
-#mw_content a[href ^="mailto:"],
+#mw_content a.external[href ^="mailto:"],
 .link-mailto {
        /* @embed */
        background: url(mail_icon.gif) center right no-repeat;
        padding-right: 18px;
 }
-#mw_content a[href ^="news://"] {
+#mw_content a.external[href ^="news://"] {
        /* @embed */
        background: url(news_icon.png) center right no-repeat;
        padding-right: 18px;
 }
-#mw_content a[href ^="ftp://"],
+#mw_content a.external[href ^="ftp://"],
 .link-ftp {
        /* @embed */
        background: url(file_icon.gif) center right no-repeat;
        padding-right: 18px;
 }
-#mw_content a[href ^="irc://"],
-#mw_content a.extiw[href ^="irc://"],
-#mw_content a[href ^="ircs://"],
-#mw_content a.extiw[href ^="ircs://"],
+#mw_content a.external[href ^="irc://"],
+#mw_content a.external[href ^="ircs://"],
 .link-irc {
        /* @embed */
        background: url(discussionitem_icon.gif) center right no-repeat;
@@ -624,8 +622,6 @@ img.thumbborder {
 #mw_content a.extiw,
 #mw_content a.extiw:active {
        color: #36b;
-       background: none;
-       padding: 0;
 }
 #mw_content a.external {
        color: #36b;
index db889b9..5b7b762 100644 (file)
@@ -198,34 +198,32 @@ pre {
 h1.firstHeading, h2 {
   border-bottom: solid 1px black;
 }
-#bodyContent a[href ^="http://"],
-#bodyContent a[href ^="gopher://"] {
+#bodyContent a.external,
+#bodyContent a.external[href ^="gopher://"] {
     background: url("external.png") center right no-repeat;
     padding-right: 13px;
 }
-#bodyContent a[href ^="https://"],
+#bodyContent a.external[href ^="https://"],
 .link-https {
     background: url("lock_icon.gif") center right no-repeat;
     padding-right: 16px;
 }
-#bodyContent a[href ^="mailto:"],
+#bodyContent a.external[href ^="mailto:"],
 .link-mailto {
     background: url("mail_icon.gif") center right no-repeat;
     padding-right: 18px;
 }
-#bodyContent a[href ^="news://"] {
+#bodyContent a.external[href ^="news://"] {
     background: url("news_icon.png") center right no-repeat;
     padding-right: 18px;
 }
-#bodyContent a[href ^="ftp://"],
+#bodyContent a.external[href ^="ftp://"],
 .link-ftp {
     background: url("file_icon.gif") center right no-repeat;
     padding-right: 18px;
 }
-#bodyContent a[href ^="irc://"],
-#bodyContent a.extiw[href ^="irc://"],
-#bodyContent a[href ^="ircs://"],
-#bodyContent a.extiw[href ^="ircs://"],
+#bodyContent a.external[href ^="irc://"],
+#bodyContent a.external[href ^="ircs://"],
 .link-irc {
     background: url("discussionitem_icon.gif")  center right no-repeat;
     padding-right: 18px;
@@ -234,8 +232,6 @@ h1.firstHeading, h2 {
 #bodyContent a.extiw,
 #bodyContent a.extiw:active {
   color: #5E7CFF;
-  background: none;
-  padding: 0;
 }
 
 td.diff-addedline {
index fa22e10..ecb140d 100644 (file)
@@ -695,38 +695,36 @@ pre {
        font-size: 1.6em;
 }
 div#content a.external,
-div#content a[href ^="gopher://"] {
+div#content a.external[href ^="gopher://"] {
        /* @embed */
        background: url(images/external-link-ltr-icon.png) center right no-repeat;
        padding-right: 13px;
 }
-div#content a[href ^="https://"],
+div#content a.external[href ^="https://"],
 .link-https {
        /* @embed */
        background: url(images/lock-icon.png) center right no-repeat;
        padding-right: 13px;
 }
-div#content a[href ^="mailto:"],
+div#content a.external[href ^="mailto:"],
 .link-mailto {
        /* @embed */
        background: url(images/mail-icon.png) center right no-repeat;
        padding-right: 13px;
 }
-div#content a[href ^="news://"] {
+div#content a.external[href ^="news://"] {
        /* @embed */
        background: url(images/news-icon.png) center right no-repeat;
        padding-right: 13px;
 }
-div#content a[href ^="ftp://"],
+div#content a.external[href ^="ftp://"],
 .link-ftp {
        /* @embed */
        background: url(images/file-icon.png) center right no-repeat;
        padding-right: 13px;
 }
-div#content a[href ^="irc://"],
-div#content a.extiw[href ^="irc://"],
-div#content a[href ^="ircs://"],
-div#content a.extiw[href ^="ircs://"],
+div#content a.external[href ^="irc://"],
+div#content a.external[href ^="ircs://"],
 .link-irc {
        /* @embed */
        background: url(images/talk-icon.png) center right no-repeat;