Index: branches/REL1_17/phase3/skins/monobook/external-ltr.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Index: branches/REL1_17/phase3/skins/monobook/external.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/REL1_17/phase3/skins/monobook/external.png |
___________________________________________________________________ |
Added: svn:mime-type |
1 | 1 | + image/png |
Index: branches/REL1_17/phase3/skins/monobook/main.css |
— | — | @@ -41,13 +41,10 @@ |
42 | 42 | |
43 | 43 | body { |
44 | 44 | font: x-small sans-serif; |
45 | | - /* @embed */ |
46 | 45 | background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat; |
47 | 46 | color: black; |
48 | 47 | margin: 0; |
49 | 48 | padding: 0; |
50 | | - direction: ltr; /* Needed for RTL flipping */ |
51 | | - unicode-bidi: embed; |
52 | 49 | } |
53 | 50 | |
54 | 51 | /* scale back up to a sane default */ |
— | — | @@ -146,7 +143,6 @@ |
147 | 144 | list-style-type: square; |
148 | 145 | margin: .3em 0 0 1.5em; |
149 | 146 | padding: 0; |
150 | | - /* @embed */ |
151 | 147 | list-style-image: url(bullet.gif); |
152 | 148 | } |
153 | 149 | ol { |
— | — | @@ -380,7 +376,6 @@ |
381 | 377 | } |
382 | 378 | |
383 | 379 | /* images */ |
384 | | -/* @noflip */ |
385 | 380 | div.floatright, table.floatright { |
386 | 381 | clear: right; |
387 | 382 | float: right; |
— | — | @@ -393,7 +388,6 @@ |
394 | 389 | */ |
395 | 390 | } |
396 | 391 | div.floatright p { font-style: italic; } |
397 | | -/* @noflip */ |
398 | 392 | div.floatleft, table.floatleft { |
399 | 393 | float: left; |
400 | 394 | clear: left; |
— | — | @@ -442,13 +436,11 @@ |
443 | 437 | border: none !important; |
444 | 438 | background: none !important; |
445 | 439 | } |
446 | | -/* @noflip */ |
447 | 440 | div.tright { |
448 | 441 | clear: right; |
449 | 442 | float: right; |
450 | 443 | border-width: .5em 0 .8em 1.4em; |
451 | 444 | } |
452 | | -/* @noflip */ |
453 | 445 | div.tleft { |
454 | 446 | float: left; |
455 | 447 | clear: left; |
— | — | @@ -500,38 +492,36 @@ |
501 | 493 | */ |
502 | 494 | #bodyContent a.external, |
503 | 495 | #bodyContent a.external[href ^="gopher://"] { |
504 | | - /* @embed */ |
505 | | - background: url(external-ltr.png) center right no-repeat; |
506 | | - padding-right: 13px; |
| 496 | + background: url(external.png) center right no-repeat; |
| 497 | + padding: 0 13px; |
507 | 498 | } |
| 499 | +.rtl #bodyContent a.external, |
| 500 | +.rtl #bodyContent a.external[href ^="gopher://"] { |
| 501 | + background-image: url(external-rtl.png); |
| 502 | +} |
508 | 503 | #bodyContent a.external[href ^="https://"], |
509 | 504 | .link-https { |
510 | | - /* @embed */ |
511 | 505 | background: url(lock_icon.gif) center right no-repeat; |
512 | | - padding-right: 16px; |
| 506 | + padding: 0 16px; |
513 | 507 | } |
514 | 508 | #bodyContent a.external[href ^="mailto:"], |
515 | 509 | .link-mailto { |
516 | | - /* @embed */ |
517 | 510 | background: url(mail_icon.gif) center right no-repeat; |
518 | | - padding-right: 18px; |
| 511 | + padding: 0 18px; |
519 | 512 | } |
520 | 513 | #bodyContent a.external[href ^="news://"] { |
521 | | - /* @embed */ |
522 | 514 | background: url(news_icon.png) center right no-repeat; |
523 | | - padding-right: 18px; |
| 515 | + padding: 0 18px; |
524 | 516 | } |
525 | 517 | #bodyContent a.external[href ^="ftp://"], |
526 | 518 | .link-ftp { |
527 | | - /* @embed */ |
528 | 519 | background: url(file_icon.gif) center right no-repeat; |
529 | | - padding-right: 18px; |
| 520 | + padding: 0 18px; |
530 | 521 | } |
531 | 522 | #bodyContent a.external[href ^="irc://"], |
532 | 523 | .link-irc { |
533 | | - /* @embed */ |
534 | 524 | background: url(discussionitem_icon.gif) center right no-repeat; |
535 | | - padding-right: 18px; |
| 525 | + padding: 0 18px; |
536 | 526 | } |
537 | 527 | #bodyContent a.external[href $=".ogg"], #bodyContent a.external[href $=".OGG"], |
538 | 528 | #bodyContent a.external[href $=".mid"], #bodyContent a.external[href $=".MID"], |
— | — | @@ -540,28 +530,41 @@ |
541 | 531 | #bodyContent a.external[href $=".wav"], #bodyContent a.external[href $=".WAV"], |
542 | 532 | #bodyContent a.external[href $=".wma"], #bodyContent a.external[href $=".WMA"], |
543 | 533 | .link-audio { |
544 | | - /* @embed */ |
545 | 534 | background: url("audio.png") center right no-repeat; |
546 | | - padding-right: 13px; |
| 535 | + padding: 0 13px; |
547 | 536 | } |
548 | 537 | #bodyContent a.external[href $=".ogm"], #bodyContent a.external[href $=".OGM"], |
549 | 538 | #bodyContent a.external[href $=".avi"], #bodyContent a.external[href $=".AVI"], |
550 | 539 | #bodyContent a.external[href $=".mpeg"], #bodyContent a.external[href $=".MPEG"], |
551 | 540 | #bodyContent a.external[href $=".mpg"], #bodyContent a.external[href $=".MPG"], |
552 | 541 | .link-video { |
553 | | - /* @embed */ |
554 | 542 | background: url("video.png") center right no-repeat; |
555 | | - padding-right: 13px; |
| 543 | + padding: 0 13px; |
556 | 544 | } |
557 | 545 | #bodyContent a.external[href $=".pdf"], #bodyContent a.external[href $=".PDF"], |
558 | 546 | #bodyContent a.external[href *=".pdf#"], #bodyContent a.external[href *=".PDF#"], |
559 | 547 | #bodyContent a.external[href *=".pdf?"], #bodyContent a.external[href *=".PDF?"], |
560 | 548 | .link-document { |
561 | | - /* @embed */ |
562 | 549 | background: url("document.png") center right no-repeat; |
563 | | - padding-right: 12px; |
| 550 | + padding: 0 12px; |
564 | 551 | } |
565 | 552 | |
| 553 | +/* for rtl wikis */ |
| 554 | +.rtl #bodyContent a.external { |
| 555 | + background-position: left; |
| 556 | + padding-right: 0; |
| 557 | +} |
| 558 | +.rtl a.feedlink { |
| 559 | + background-position: right; |
| 560 | + padding-right: 16px; |
| 561 | + padding-left: 0; |
| 562 | +} |
| 563 | + |
| 564 | +/* correction for ltr wikis */ |
| 565 | +.ltr #bodyContent a.external { |
| 566 | + padding-left: 0; |
| 567 | +} |
| 568 | + |
566 | 569 | /* disable interwiki styling */ |
567 | 570 | #bodyContent a.extiw, |
568 | 571 | #bodyContent a.extiw:active { |
— | — | @@ -585,15 +588,6 @@ |
586 | 589 | width: 11.6em; |
587 | 590 | overflow: hidden; |
588 | 591 | } |
589 | | -html > body .portlet { |
590 | | - float: left; |
591 | | - clear: left; |
592 | | -} |
593 | | -/* recover IEMac (might be fine with the float, but usually it's close to IE */ |
594 | | -*>body .portlet { |
595 | | - float: none; |
596 | | - clear: none; |
597 | | -} |
598 | 592 | .portlet h4 { |
599 | 593 | font-size: 95%; |
600 | 594 | font-weight: normal; |
— | — | @@ -639,7 +633,6 @@ |
640 | 634 | .portlet ul { |
641 | 635 | line-height: 1.5em; |
642 | 636 | list-style-type: square; |
643 | | - /* @embed */ |
644 | 637 | list-style-image: url(bullet.gif); |
645 | 638 | font-size: 95%; |
646 | 639 | } |
— | — | @@ -776,7 +769,6 @@ |
777 | 770 | li#pt-userpage, |
778 | 771 | li#pt-anonuserpage, |
779 | 772 | li#pt-login { |
780 | | - /* @embed */ |
781 | 773 | background: url(user.gif) top left no-repeat; |
782 | 774 | padding-left: 20px; |
783 | 775 | text-transform: none; |
— | — | @@ -1031,6 +1023,10 @@ |
1032 | 1024 | background-color: #f9f9f9; |
1033 | 1025 | float: left; |
1034 | 1026 | } |
| 1027 | +.rtl div#userloginForm form, |
| 1028 | +.rtl div#userlogin form#userlogin2 { |
| 1029 | + float: right; |
| 1030 | +} |
1035 | 1031 | |
1036 | 1032 | div#userloginForm table, |
1037 | 1033 | div#userlogin form#userlogin2 table { |
Index: branches/REL1_17/phase3/skins/MonoBook.php |
— | — | @@ -25,25 +25,23 @@ |
26 | 26 | |
27 | 27 | function setupSkinUserCss( OutputPage $out ) { |
28 | 28 | global $wgHandheldStyle; |
| 29 | + |
29 | 30 | parent::setupSkinUserCss( $out ); |
30 | 31 | |
31 | | - $out->addModuleStyles( 'skins.monobook' ); |
32 | | - |
33 | | - // Ugh. Can't do this properly because $wgHandheldStyle may be a URL |
| 32 | + // Append to the default screen common & print styles... |
| 33 | + $out->addStyle( 'monobook/main.css', 'screen' ); |
34 | 34 | if( $wgHandheldStyle ) { |
35 | 35 | // Currently in testing... try 'chick/main.css' |
36 | 36 | $out->addStyle( $wgHandheldStyle, 'handheld' ); |
37 | 37 | } |
38 | | - |
39 | | - // TODO: Migrate all of these |
40 | | - //$out->addStyle( 'monobook/IE50Fixes.css', 'screen', 'lt IE 5.5000' ); |
41 | | - //$out->addStyle( 'monobook/IE55Fixes.css', 'screen', 'IE 5.5000' ); |
42 | | - //$out->addStyle( 'monobook/IE60Fixes.css', 'screen', 'IE 6' ); |
43 | | - //$out->addStyle( 'monobook/IE70Fixes.css', 'screen', 'IE 7' ); |
44 | 38 | |
45 | | - // TODO: migrate |
46 | | - //$out->addStyle( 'monobook/rtl.css', 'screen', '', 'rtl' ); |
| 39 | + $out->addStyle( 'monobook/IE50Fixes.css', 'screen', 'lt IE 5.5000' ); |
| 40 | + $out->addStyle( 'monobook/IE55Fixes.css', 'screen', 'IE 5.5000' ); |
| 41 | + $out->addStyle( 'monobook/IE60Fixes.css', 'screen', 'IE 6' ); |
| 42 | + $out->addStyle( 'monobook/IE70Fixes.css', 'screen', 'IE 7' ); |
47 | 43 | |
| 44 | + $out->addStyle( 'monobook/rtl.css', 'screen', '', 'rtl' ); |
| 45 | + |
48 | 46 | } |
49 | 47 | } |
50 | 48 | |
Index: branches/REL1_17/phase3/resources/Resources.php |
— | — | @@ -14,13 +14,6 @@ |
15 | 15 | 'skins.vector' => array( |
16 | 16 | 'styles' => array( 'skins/vector/screen.css' => array( 'media' => 'screen' ) ) |
17 | 17 | ), |
18 | | - 'skins.monobook' => array( |
19 | | - 'styles' => array( |
20 | | - 'skins/monobook/main.css' => array( 'media' => 'screen' ), |
21 | | - // Honor $wgHandheldStyle. This is kind of evil |
22 | | - //$GLOBALS['wgHandheldStyle'] => array( 'media' => 'handheld' ) |
23 | | - ) |
24 | | - ), |
25 | 18 | |
26 | 19 | /* jQuery */ |
27 | 20 | |