MediaWiki talk:Gadget-POTYEnhancements.core.css

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

The fancy font

[edit]

.com-poty-fancy-font uses Cookie unconditionally, even though the font does not support all languages. It should probably use POTY/font::doesFontSupportLanguage like Template:POTY2013/header does, but I think css files are not parsed so that it would be able to use #invoke. But it is not critically important, as the fancy font is used only in the splash screen, IIANM. --Mormegil (talk) 11:30, 28 January 2014 (UTC)[reply]

com-poty-fancy-font class is only added if poty.fancyFontClass = $('#potyFontSupported').text() ? poty.fancyFontClass : ''; and #potyFontSupported is added through Template:POTY2013/header. I would prefer a cleaner way, of course, can you suggest one? I think it's impossible to pre-process JS/CSS with Lua but it would be great of course. -- Rillke(q?) 12:10, 28 January 2014 (UTC)[reply]
Perfect, thanks! Even though it is a little bit complicated, I don’t think it is especially unclean, given the limitations. --Mormegil (talk) 13:09, 28 January 2014 (UTC)[reply]