Refactor the css for interlanguage links and autonym class

Move it to a seperate css file ext.uls.webfonts.css so that the RL
modules are more granular and clear.

Also get the @font-face css for Autonym font get ready on page load
so that the font applied automatically to any future elements on page.

Change-Id: Icb76df5baedaba8ab613d665a1be923779a6b9e7
This commit is contained in:
Santhosh Thottingal
2013-11-06 20:51:26 +05:30
parent caa2852aa9
commit dfc40c8f59
4 changed files with 12 additions and 6 deletions

View File

@@ -83,6 +83,13 @@
}() )
} );
$( 'body' ).webfonts();
// Load the css required for Autonym font. Note that this wont download the font.
// Browsers are smart enough to delay it till some element with this font-family
// become visible. For eg: If there is a popup div with an element with class
// 'autonym', without explicitly calling .webfonts() on it, Autonym font will not
// be applied in general. But we ensure that css is ready so that automatically
// the font get applied to such future elements.
$( 'body' ).data( 'webfonts' ).load( 'Autonym' );
};
$( document ).ready( function () {