aboutsummaryrefslogtreecommitdiff
blob: 170cc00c8cb1cfca412707c3068804ceb65b3d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
 * Tyrian -- the new look of gentoo.org
 * MediaWiki implementation based on MonoBook nouveau.
 *
 * Copyright (C) 2014-2016 Alex Legler <a3li@gentoo.org>
 */

/**
 * Inherit main code from SkinTemplate, set the CSS and template filter.
 * @ingroup Skins
 */
class SkinTyrian extends SkinTemplate {
	public $skinname  = 'tyrian';
	public $stylename = 'Tyrian';
	public $template  = 'TyrianTemplate';

	private $output;

	const CDN_URL = 'https://assets.gentoo.org/tyrian/';

	public function setupSkinUserCss(OutputPage $out) {
		$this->output = $out;

		parent::setupSkinUserCss($out);

		$out->addStyle(SkinTyrian::CDN_URL . 'bootstrap.min.css');
		$out->addStyle(SkinTyrian::CDN_URL . 'tyrian.min.css');

		$out->addModuleStyles(array(
			'mediawiki.skinning.interface',
			'mediawiki.skinning.content.externallinks',
			'skins.tyrian.styles'
		));
	}
	public static function injectMetaTags($out) {
		$out->addMeta('viewport', 'width=device-width, initial-scale=1.0');
		$out->addMeta('theme-color', '#54487a')
		return true;
	}
}