mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 11:48:26 -04:00
Add modded skins.vector.styles.css
This commit is contained in:
parent
df72242cdc
commit
9570687894
@ -152,6 +152,7 @@
|
||||
<Content Include="www\-\mw\mw.TMHGalleryHook.js.css" />
|
||||
<Content Include="www\-\mw\newstyle_main_page.css" />
|
||||
<Content Include="www\-\mw\style.css" />
|
||||
<Content Include="www\-\mw\skins.vector.styles.css" />
|
||||
<Content Include="www\-\style.css" />
|
||||
<Content Include="www\-\s\css_modules\mediawiki.action.view.redirectPage.css" />
|
||||
<Content Include="www\-\s\css_modules\minerva.css" />
|
||||
|
@ -153,6 +153,7 @@
|
||||
<Content Include="www\-\mw\mw.TMHGalleryHook.js.css" />
|
||||
<Content Include="www\-\mw\newstyle_main_page.css" />
|
||||
<Content Include="www\-\mw\style.css" />
|
||||
<Content Include="www\-\mw\skins.vector.styles.css" />
|
||||
<Content Include="www\-\style.css" />
|
||||
<Content Include="www\-\s\css_modules\mediawiki.action.view.redirectPage.css" />
|
||||
<Content Include="www\-\s\css_modules\minerva.css" />
|
||||
|
@ -143,6 +143,7 @@ const precacheFiles = [
|
||||
'www/-/mw/mw.PopUpMediaTransform.css',
|
||||
'www/-/mw/mw.TMHGalleryHook.js.css',
|
||||
'www/-/mw/newstyle_main_page.css',
|
||||
'www/-/mw/skins.vector.styles.css',
|
||||
'www/-/mw/style.css',
|
||||
'www/-/s/css_modules/content.parsoid.css',
|
||||
'www/-/s/css_modules/ext.cite.a11y.css',
|
||||
|
4566
www/-/mw/skins.vector.styles.css
Normal file
4566
www/-/mw/skins.vector.styles.css
Normal file
File diff suppressed because it is too large
Load Diff
@ -6491,7 +6491,7 @@ function displayArticleContentInContainer (dirEntry, htmlArticle) {
|
||||
zimType = /-\/s\/style\.css/i.test(testCSS) ? 'desktop' : zimType;
|
||||
zimType = /-\/static\/main\.css|statc\/css\/sotoki.css/i.test(testCSS) ? 'desktop-stx' : zimType; // Support stackexchange
|
||||
zimType = /gutenberg\.css/i.test(testCSS) ? 'desktop-gtb' : zimType; // Support Gutenberg
|
||||
zimType = /minerva|mobile/i.test(testCSS) ? 'mobile' : zimType;
|
||||
zimType = /minerva|mobile|vector/i.test(testCSS) ? 'mobile' : zimType;
|
||||
cssSource = cssSource == 'auto' ? zimType : cssSource; // Default to in-built zimType if user has selected automatic detection of styles
|
||||
if (/minerva|inserted.style|pcs\.css/i.test(testCSS) && (cssCache || zimType != cssSource)) {
|
||||
// Substitute ridiculously long style name TODO: move this code to transformStyles
|
||||
|
@ -103,6 +103,7 @@ function filterCSS (zl, zim, cc, cs, i) {
|
||||
/\/static\/css\/sotoki.css/i.test(zl) ||
|
||||
/\/mobile.css/i.test(zl) ||
|
||||
/\/style-mobile.css/i.test(zl) ||
|
||||
/\/skins.vector.styles.css/i.test(zl) ||
|
||||
/\/skins.minerva.base.reset\|skins.minerva.content.styles\|ext.cite.style\|mediawiki.page.gallery.styles\|mobile.app.pagestyles.android\|mediawiki.skinning.content.parsoid.css/i.test(zl)
|
||||
)) {
|
||||
zl = zl.replace(/\|/ig, '_'); // Replace "|" with "_" (legacy for some stylesheets with pipes in filename - but next line renders this redundant in current implementation)
|
||||
@ -112,6 +113,7 @@ function filterCSS (zl, zim, cc, cs, i) {
|
||||
// Rename this required mobile style so that we don't trigger reading ZIM as mobile in print intercept
|
||||
zl = /\/mobile_main_page\.css/.test(zl) ? '-/mw/newstyle_main_page.css' : zl;
|
||||
zl = /\/content\.parsoid\.css/.test(zl) ? '-/s/css_modules/content.parsoid.css' : zl;
|
||||
zl = /skins\.vector\.styles\.css/.test(zl) ? '-/mw/skins.vector.styles.css' : zl;
|
||||
zl = /\/sotoki\.css/.test(zl) ? 'C/static/css/sotoki.css' : zl;
|
||||
// Replace bootstrap with own: DEV: when upgrading to Bootstrap 4, stop doing this!
|
||||
zl = zl.replace(/.+(bootstrap[^/]*?\.css)/i, 'css/$1');
|
||||
|
Loading…
x
Reference in New Issue
Block a user