MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

console.log('COMMON represent');

if (document.body.classList.contains('skin-minerva')) { console.log('MOBILE'); var styles = '@import URL("https://fonts.googleapis.com/css2?family=Oswald:wght@300&family=Roboto:wght@300;500&display=swap");'+

'html, body {'+ ' font-family: "Graphik Compact", "Roboto", "Helvetica", "Arial", sans-serif;'+ ' font-weight: 300;'+ '}'+

'h1, h2 {'+ ' border-bottom: none;'+ '}'+

'.mw-body-content {'+ ' font-size: 1em;'+ '}'+

'.mw-body h1, .mw-body-content h1 {'+ ' font-size: 48px;'+ '}'+

'.mw-body h1, .mw-body-content h1, .mw-body-content h2, .mw-body-content h3, .mw-body-content h4, .mw-body-content h5, .mw-body-content h6, .vector-menu h3, .pre-content h1, .content h1, .content h2 {'+ ' font-family: "Tungsten", "Oswald", "Helvetica", "Arial", sans-serif;'+ '}'+

'.mw-references-wrap {'+ ' font-size: 0.875em;'+ '}'+

'.vector-menu h3 {'+ ' font-size: 0.875em;'+ ' margin-left: 0.5em;'+ ' background-image: none;'+ '}'+

'sup.reference {'+ ' font-weight: 300;'+ ' font-size: 0.75em;'+ '}'+

'#p-logo a {'+ ' background-size: contain;'+ '}'+

'.portable-infobox .pi-title,'+ '.portable-infobox .pi-header {'+ ' font-family: "Tungsten","Oswald","Helvetica","Arial",sans-serif;'+ '}'+

'.pi-data-label p {'+ ' font-weight: 300;'+ '}'+

'.pi-item p {'+ ' margin: 0;'+ '}';

window.mw.util.addCSS(styles); console.log('MOBILE2'); }