Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7172
skinuseroptions.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:17 PM
2014-11-21 23:17:20 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
skinuseroptions.patch
View Options
Index: includes/resourceloader/ResourceLoaderUserOptionsModule.php
===================================================================
--- includes/resourceloader/ResourceLoaderUserOptionsModule.php (revision 79963)
+++ includes/resourceloader/ResourceLoaderUserOptionsModule.php (working copy)
@@ -100,6 +100,21 @@
if ( $options['editfont'] !== 'default' ) {
$rules[] = "textarea { font-family: {$options['editfont']}; }\n";
}
+ if ( $options['quickbar'] ) {
+ $qb = $options['quickbar'];
+ if ( 2 == $qb ) { # Right
+ $rules[] = "#quickbar { position: absolute; top: 4px; right: 4px; " .
+ "border-left: 2px solid #000000; }\n" .
+ "#article, #mw-data-after-content { margin-left: 4px; margin-right: 152px; }\n";
+ } elseif ( 1 == $qb || 3 == $qb ) {
+ $rules[] = "#quickbar { position: absolute; top: 4px; left: 4px; " .
+ "border-right: 1px solid gray; }\n" .
+ "#article, #mw-data-after-content { margin-left: 152px; margin-right: 4px; }\n";
+ } elseif ( 4 == $qb ) {
+ $rules[] = "#quickbar { border-right: 1px solid gray; }\n" .
+ "#article, #mw-data-after-content { margin-right: 152px; margin-left: 4px; }\n";
+ }
+ }
$style = implode( "\n", $rules );
if ( $this->getFlip( $context ) ) {
$style = CSSJanus::transform( $style, true, false );
Index: skins/Standard.php
===================================================================
--- skins/Standard.php (revision 79963)
+++ skins/Standard.php (working copy)
@@ -28,28 +28,6 @@
parent::setupSkinUserCss( $out );
}
- /**
- *
- */
- function reallyGenerateUserStylesheet() {
- $s = parent::reallyGenerateUserStylesheet();
- $qb = $this->qbSetting();
-
- if ( 2 == $qb ) { # Right
- $s .= "#quickbar { position: absolute; top: 4px; right: 4px; " .
- "border-left: 2px solid #000000; }\n" .
- "#article, #mw-data-after-content { margin-left: 4px; margin-right: 152px; }\n";
- } elseif ( 1 == $qb || 3 == $qb ) {
- $s .= "#quickbar { position: absolute; top: 4px; left: 4px; " .
- "border-right: 1px solid gray; }\n" .
- "#article, #mw-data-after-content { margin-left: 152px; margin-right: 4px; }\n";
- } elseif ( 4 == $qb ) {
- $s .= "#quickbar { border-right: 1px solid gray; }\n" .
- "#article, #mw-data-after-content { margin-right: 152px; margin-left: 4px; }\n";
- }
- return $s;
- }
-
function doAfterContent() {
global $wgContLang, $wgLang;
wfProfileIn( __METHOD__ );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6707
Default Alt Text
skinuseroptions.patch (2 KB)
Attached To
Mode
T28649: Seemingly broken skins under Resource Loader
Attached
Detach File
Event Timeline
Log In to Comment