r105663 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105662‎ | r105663 | r105664 >
Date:09:46, 9 December 2011
Author:santhosh
Status:ok
Tags:
Comment:
Fix Narayam for RTL, and some css clean up.
Modified paths:
  • /trunk/extensions/Narayam/resources/ext.narayam.core.css (modified) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.core.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.core.css
@@ -6,11 +6,6 @@
77 background-color: #EAF3F8 !important;
88 }
99
10 -.narayam-wrapper {
11 - padding: 0;
12 - margin: 0;
13 -}
14 -
1510 li#pt-narayam {
1611 padding-left: 15px !important;
1712 }
@@ -21,9 +16,7 @@
2217 direction: ltr;
2318 float: left;
2419 }
25 -div.narayam-menuFocus {
26 - background-position: -22px 60%;
27 -}
 20+
2821 /* @noflip */
2922 body.rtl div#narayam-menu {
3023 direction: rtl;
@@ -34,7 +27,7 @@
3528 clear: both;
3629 text-align: left;
3730 z-index: 99999;
38 - width: 300px;
 31+ width: 200px;
3932 top: 20px;
4033 font-size: 0.8em;
4134 }
@@ -85,6 +78,7 @@
8679 text-align: left;
8780 max-height: 360px;
8881 overflow-y: auto;
 82+ width: 100%;
8983 }
9084
9185 div#narayam-menu li {
Index: trunk/extensions/Narayam/resources/ext.narayam.core.js
@@ -609,7 +609,8 @@
610610 $( '.narayam-scheme', $('.narayam-scheme-dynamic-item') ).live( 'click', function() {
611611 that.setScheme( $( this ).val() );
612612 // rebuild the menu items with recent items.
613 - $( '#narayam-menu-items' ).html( $.narayam.buildMenuItems() );
 613+ $( '#narayam-menu' ).html( $.narayam.buildMenuItems() );
 614+ $( '#narayam-menu-items' ).css( 'left', $('li#pt-narayam').offset().left );
614615 $( '#narayam-' + $( this ).val() ).prop( 'checked', true );
615616 if ( enabled ) {
616617 $( '#narayam-toggle' ).prop( 'checked', true );

Status & tagging log