summaryrefslogtreecommitdiff
path: root/www/wiki/skins/bo/LocalSettings.md
blob: c793071682147a89c0bdf48b7dbb90dbb62a73cf (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
42
43
44
45
46
47
48
49
# Code to "LocalSettings.php" for using the bo flavour to the MediaWiki Chameleon skin

```php

## Default skin 
$wgDefaultSkin = 'chameleon';

# Chameleon Overrides for BO

## Define Layout
#$egChameleonLayoutFile = __DIR__ . '/skins/bo/layout-navbar.xml';
$egChameleonLayoutFile = __DIR__ . '/skins/bo/layout-tools.xml';

$egChameleonExternalStyleModules = [
	__DIR__ . '/skins/bo/bootswatch.less' => $wgScriptPath,
	__DIR__ . '/skins/bo/variables.less' => $wgScriptPath,
	__DIR__ . '/skins/bo/bo.less' => $wgScriptPath
	];
```

For overriding Bootstrap variables:

```
$egChameleonExternalLessVariables = [
	'font-size-base' => '18px',
	'font-size-large' => '20px',
	'font-size-small' => '14px',
	'font-size-h1' => '22px',
	'font-size-h2' => '20px',
	'font-size-h3' => '18px',
	'line-height-base' => '1.5', 
	'navbar-margin-bottom' => '10px',
	'navbar-default-bg' => 'rgba( 94, 157, 200, 1 )',
	'navbar-default-border' => 'rgba( 94, 157, 200, 1 )',
	'nav-tabs-active-link-hover-color' => 'rgba( 255, 255, 255, 1 )',
	'input-border-focus' => 'rgba(0, 0, 0, .1)'
	];

```

You can add this code if you wish to recompile css after modifying the less files:

```php
# for testing and customizing
\Bootstrap\BootstrapManager::getInstance()->addCacheTriggerFile( __DIR__ . '/skins/bo/bo.less' );
\Bootstrap\BootstrapManager::getInstance()->addCacheTriggerFile( __DIR__ . '/skins/bo/botswatch.less' );
\Bootstrap\BootstrapManager::getInstance()->addCacheTriggerFile( __DIR__ . '/skins/bo/variables.less' );

```