From 744685c7df935c9977f3ec3855441da4935a9067 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 2 Oct 2011 16:50:52 +0000 Subject: [PATCH] Port r51457 from monobook to modern, simple and Vector. 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 | 3 --- skins/modern/main.css | 18 +++++++----------- skins/simple/main.css | 20 ++++++++------------ skins/vector/screen.css | 16 +++++++--------- 4 files changed, 22 insertions(+), 35 deletions(-) diff --git a/skins/common/commonElements.css b/skins/common/commonElements.css index d16ee68a51..01c2df6c24 100644 --- a/skins/common/commonElements.css +++ b/skins/common/commonElements.css @@ -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; diff --git a/skins/modern/main.css b/skins/modern/main.css index fe9ede68a8..3ad8df6387 100644 --- a/skins/modern/main.css +++ b/skins/modern/main.css @@ -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; diff --git a/skins/simple/main.css b/skins/simple/main.css index db889b9358..5b7b762e3c 100644 --- a/skins/simple/main.css +++ b/skins/simple/main.css @@ -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 { diff --git a/skins/vector/screen.css b/skins/vector/screen.css index fa22e10de9..ecb140dd10 100644 --- a/skins/vector/screen.css +++ b/skins/vector/screen.css @@ -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; -- 2.20.1