Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -41,6 +41,7 @@ |
42 | 42 | This isn't a good permanent fix. |
43 | 43 | * (bug 6918) Stopped borders and backgrounds from showing through floated |
44 | 44 | tables in Monobook |
| 45 | +* (bug 6868) Un-hardcode section edit link style |
45 | 46 | |
46 | 47 | == Languages updated == |
47 | 48 | |
Index: trunk/phase3/skins/common/common.css |
— | — | @@ -314,6 +314,10 @@ |
315 | 315 | font-style: italic; |
316 | 316 | } |
317 | 317 | |
| 318 | +div.editsection { |
| 319 | + float: right; |
| 320 | + margin-left: 5px; |
| 321 | +} |
318 | 322 | |
319 | 323 | /* Classes for EXIF data display */ |
320 | 324 | table.mw_metadata { |
— | — | @@ -429,4 +433,3 @@ |
430 | 434 | .imagelist .TablePager_col_links { background-color: #eeeeff } |
431 | 435 | .imagelist .TablePager_col_img_description { white-space: normal } |
432 | 436 | .imagelist th.TablePager_sort { background-color: #ccccff } |
433 | | - |
Index: trunk/phase3/skins/common/common_rtl.css |
— | — | @@ -13,3 +13,7 @@ |
14 | 14 | margin-right: 1.4em; |
15 | 15 | margin-left: 0.4em; |
16 | 16 | } |
| 17 | +div.editsection { |
| 18 | + float: left; |
| 19 | + margin-right: 5px; |
| 20 | +} |
\ No newline at end of file |
Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -129,6 +129,11 @@ |
130 | 130 | h5 { font-size: 100%; } |
131 | 131 | h6 { font-size: 80%; } |
132 | 132 | |
| 133 | +div.editsection { |
| 134 | + float: right; |
| 135 | + margin-left: 5px; |
| 136 | +} |
| 137 | + |
133 | 138 | ul { |
134 | 139 | line-height: 1.5em; |
135 | 140 | list-style-type: square; |
Index: trunk/phase3/skins/monobook/rtl.css |
— | — | @@ -41,6 +41,10 @@ |
42 | 42 | float: right; |
43 | 43 | clear: right; |
44 | 44 | } |
| 45 | +div.editsection { |
| 46 | + float: left; |
| 47 | + margin-right: 5px; |
| 48 | +} |
45 | 49 | /* recover IEMac (might be fine with the float, but usually it's close to IE */ |
46 | 50 | *>body .portlet { |
47 | 51 | float: none; |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1046,14 +1046,7 @@ |
1047 | 1047 | $editurl = '§ion='.$section; |
1048 | 1048 | $url = $this->makeKnownLinkObj( $title, wfMsg('editsection'), 'action=edit'.$editurl ); |
1049 | 1049 | |
1050 | | - if( $wgContLang->isRTL() ) { |
1051 | | - $farside = 'left'; |
1052 | | - $nearside = 'right'; |
1053 | | - } else { |
1054 | | - $farside = 'right'; |
1055 | | - $nearside = 'left'; |
1056 | | - } |
1057 | | - return "<div class=\"editsection\" style=\"float:$farside;margin-$nearside:5px;\">[".$url."]</div>"; |
| 1050 | + return "<div class=\"editsection\">[".$url."]</div>"; |
1058 | 1051 | |
1059 | 1052 | } |
1060 | 1053 | |
— | — | @@ -1069,14 +1062,7 @@ |
1070 | 1063 | $hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"'; |
1071 | 1064 | $url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '', $hint ); |
1072 | 1065 | |
1073 | | - if( $wgContLang->isRTL() ) { |
1074 | | - $farside = 'left'; |
1075 | | - $nearside = 'right'; |
1076 | | - } else { |
1077 | | - $farside = 'right'; |
1078 | | - $nearside = 'left'; |
1079 | | - } |
1080 | | - return "<div class=\"editsection\" style=\"float:$farside;margin-$nearside:5px;\">[".$url."]</div>"; |
| 1066 | + return "<div class=\"editsection\">[".$url."]</div>"; |
1081 | 1067 | } |
1082 | 1068 | |
1083 | 1069 | /** |