Page MenuHomePhabricator

external.patch

Authored By
bzimport
Nov 21 2014, 8:07 PM
Size
6 KB
Referenced Files
None
Subscribers
None

external.patch

Index: skins/monobook/Opera6Fixes.css
===================================================================
--- skins/monobook/Opera6Fixes.css (revision 46682)
+++ skins/monobook/Opera6Fixes.css (working copy)
@@ -12,3 +12,9 @@
background: url(external.png) center right no-repeat;
padding-right: 13px;
}
+
+.rtl a.feedlink {
+ background-position: right;
+ padding-right: 0;
+ padding-left: 16px;
+}
Index: skins/monobook/Opera7Fixes.css
===================================================================
--- skins/monobook/Opera7Fixes.css (revision 46682)
+++ skins/monobook/Opera7Fixes.css (working copy)
@@ -9,3 +9,13 @@
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;
+ padding-right: 0;
+ padding-left: 16px;
+}
Index: skins/monobook/rtl.css
===================================================================
--- skins/monobook/rtl.css (revision 46682)
+++ skins/monobook/rtl.css (working copy)
@@ -147,11 +147,12 @@
#p-personal li {
float: left;
}
-/* Fix link icons */
+/* Fix link icons
.external, a.feedlink {
padding: 0 !important;
background: none !important;
}
+*/
#footer {
clear: both;
}
Index: skins/monobook/IE60Fixes.css
===================================================================
--- skins/monobook/IE60Fixes.css (revision 46682)
+++ skins/monobook/IE60Fixes.css (working copy)
@@ -61,6 +61,17 @@
padding-right: 13px;
}
+.rtl #bodyContent a.external {
+ background-image: url(external-rtl.png);
+ padding-right: 13px;
+}
+
+.rtl a.feedlink {
+ background-position: right;
+ padding-right: 0;
+ padding-left: 16px;
+}
+
/* show the hand */
#p-logo a,
#p-logo a:hover {
Index: skins/monobook/IE70Fixes.css
===================================================================
--- skins/monobook/IE70Fixes.css (revision 46682)
+++ skins/monobook/IE70Fixes.css (working copy)
@@ -18,6 +18,16 @@
margin-top: 160px;
}
+.rtl #bodyContent a.external {
+ background-image: url(external-rtl.png);
+ padding: 0 13px 0 0;
+}
+
+.rtl a.feedlink {
+ background-position: right;
+ padding-right: 0;
+ padding-left: 16px;
+}
/* the tabs */
#p-cactions {
Index: skins/monobook/main.css
===================================================================
--- skins/monobook/main.css (revision 46682)
+++ skins/monobook/main.css (working copy)
@@ -527,32 +527,35 @@
#bodyContent a.external,
#bodyContent a[href ^="gopher://"] {
background: url(external.png) center right no-repeat;
- padding-right: 13px;
+ padding: 0 13px;
}
+.rtl #bodyContent a[href ^="http://"] {
+ background-image: url(external-rtl.png);
+}
#bodyContent a[href ^="https://"],
.link-https {
background: url(lock_icon.gif) center right no-repeat;
- padding-right: 16px;
+ padding: 0 16px;
}
#bodyContent a[href ^="mailto:"],
.link-mailto {
background: url(mail_icon.gif) center right no-repeat;
- padding-right: 18px;
+ padding: 0 18px;
}
#bodyContent a[href ^="news://"] {
background: url(news_icon.png) center right no-repeat;
- padding-right: 18px;
+ padding: 0 18px;
}
#bodyContent a[href ^="ftp://"],
.link-ftp {
background: url(file_icon.gif) center right no-repeat;
- padding-right: 18px;
+ padding: 0 18px;
}
#bodyContent a[href ^="irc://"],
#bodyContent a.extiw[href ^="irc://"],
.link-irc {
background: url(discussionitem_icon.gif) center right no-repeat;
- padding-right: 18px;
+ padding: 0 18px;
}
#bodyContent a.external[href $=".ogg"], #bodyContent a.external[href $=".OGG"],
#bodyContent a.external[href $=".mid"], #bodyContent a.external[href $=".MID"],
@@ -562,7 +565,7 @@
#bodyContent a.external[href $=".wma"], #bodyContent a.external[href $=".WMA"],
.link-audio {
background: url("audio.png") center right no-repeat;
- padding-right: 13px;
+ padding: 0 13px;
}
#bodyContent a.external[href $=".ogm"], #bodyContent a.external[href $=".OGM"],
#bodyContent a.external[href $=".avi"], #bodyContent a.external[href $=".AVI"],
@@ -570,16 +573,32 @@
#bodyContent a.external[href $=".mpg"], #bodyContent a.external[href $=".MPG"],
.link-video {
background: url("video.png") center right no-repeat;
- padding-right: 13px;
+ padding: 0 13px;
}
#bodyContent a.external[href $=".pdf"], #bodyContent a.external[href $=".PDF"],
#bodyContent a.external[href *=".pdf#"], #bodyContent a.external[href *=".PDF#"],
#bodyContent a.external[href *=".pdf?"], #bodyContent a.external[href *=".PDF?"],
.link-document {
background: url("document.png") center right no-repeat;
- padding-right: 12px;
+ padding: 0 12px;
}
+/* for rtl wikis */
+.rtl #bodyContent a.external {
+ background-position: left;
+ padding-right: 0;
+}
+.rtl a.feedlink {
+ background-position: right;
+ padding-right: 16px;
+ padding-left: 0;
+}
+
+/* correction for ltr wikis */
+.ltr #bodyContent a.external {
+ padding-left: 0;
+}
+
/* disable interwiki styling */
#bodyContent a.extiw,
#bodyContent a.extiw:active {
Index: skins/common/wikibits.js
===================================================================
--- skins/common/wikibits.js (revision 46682)
+++ skins/common/wikibits.js (working copy)
@@ -14,6 +14,7 @@
( document.childNodes && !document.all && !navigator.taintEnabled );
// For accesskeys; note that FF3+ is included here!
var is_ff2 = /firefox\/[2-9]|minefield\/3/.test( clientPC );
+var is_ff2_ = /firefox\/2/.test( clientPC );
// These aren't used here, but some custom scripts rely on them
var is_ff2_win = is_ff2 && clientPC.indexOf('windows') != -1;
var is_ff2_x11 = is_ff2 && clientPC.indexOf('x11') != -1;
@@ -91,8 +92,12 @@
importStylesheetURI(stylepath+'/'+skin+'/Opera6Fixes.css');
} else if (is_opera_seven && !is_opera_95) {
importStylesheetURI(stylepath+'/'+skin+'/Opera7Fixes.css');
+ } else if (is_opera_95) {
+ importStylesheetURI(stylepath+'/'+skin+'/Opera9Fixes.css');
} else if (is_khtml) {
importStylesheetURI(stylepath+'/'+skin+'/KHTMLFixes.css');
+ } else if (is_ff2_) {
+ importStylesheetURI(stylepath+'/'+skin+'/FF2Fixes.css');
}
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1341
Default Alt Text
external.patch (6 KB)

Event Timeline