Index: trunk/extensions/WebFonts/resources/ext.webfonts.monobook.css |
— | — | @@ -0,0 +1,9 @@ |
| 2 | + |
| 3 | +div#webfonts-menu { |
| 4 | + float: none; |
| 5 | +} |
| 6 | + |
| 7 | +ul#webfonts-fontsmenu { |
| 8 | + position: relative; |
| 9 | + margin: 0px; |
| 10 | +} |
Property changes on: trunk/extensions/WebFonts/resources/ext.webfonts.monobook.css |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 11 | + native |
Index: trunk/extensions/WebFonts/resources/ext.webfonts.monobook.js |
— | — | @@ -0,0 +1,22 @@ |
| 2 | +/** |
| 3 | + * scripts specific for monobook skin of mediawiki. |
| 4 | + */ |
| 5 | + |
| 6 | +( function ( $ ) { |
| 7 | + /** |
| 8 | + * Prepare the menu for the webfonts. |
| 9 | + * @param config The webfont configuration. |
| 10 | + */ |
| 11 | + mw.webfonts.buildMenu = function(config) { |
| 12 | + var $menuItemsDiv = mw.webfonts.buildMenuItems( config ); |
| 13 | + if( $menuItemsDiv == null ) { |
| 14 | + return; |
| 15 | + } |
| 16 | + var $div = $( '<div>' ) |
| 17 | + .attr( 'id', 'webfonts-menu' ) |
| 18 | + .addClass( 'portlet' ) |
| 19 | + .append( $( '<h5>' ).text( mw.message( 'webfonts-load' ).escaped() ) ) |
| 20 | + .append( $menuItemsDiv .find ('ul').addClass('pBody')); |
| 21 | + $div.insertAfter( '#p-search'); |
| 22 | + }; |
| 23 | +} ) ( jQuery ); |
Property changes on: trunk/extensions/WebFonts/resources/ext.webfonts.monobook.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 24 | + native |
Index: trunk/extensions/WebFonts/WebFonts.php |
— | — | @@ -50,9 +50,13 @@ |
51 | 51 | |
52 | 52 | $wgResourceModules['ext.webfonts.core'] = array( |
53 | 53 | 'scripts' => array( 'resources/ext.webfonts.js', 'resources/ext.webfonts.fontlist.js' ), |
| 54 | + 'skinScripts' => array( |
| 55 | + 'monobook' => 'resources/ext.webfonts.monobook.js', |
| 56 | + ), |
54 | 57 | 'styles' => 'resources/ext.webfonts.css', |
55 | 58 | 'skinStyles' => array( |
56 | 59 | 'modern' => 'resources/ext.webfonts.modern.css', |
| 60 | + 'monobook' => 'resources/ext.webfonts.monobook.css', |
57 | 61 | ), |
58 | 62 | 'localBasePath' => $dir, |
59 | 63 | 'remoteExtPath' => 'WebFonts', |