Skip to content

Commit af765a5

Browse files
committed
add new logo and ajdust the navigation bar size
1 parent ed927d8 commit af765a5

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

Diff for: Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ wiki-exec = $(compose-exec) wiki
1313
build:
1414
$(compose) build
1515

16+
.PHONY: touch
17+
touch:
18+
$(show-current-target)
19+
$(compose) exec wiki touch LocalSettings.php
20+
1621
# ======== Develop ========
1722

1823
.PHONY: bash

Diff for: context/LocalSettings.Custom.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
## Logo
5151
$wgLogos = [
52-
"1x" => "$wgScriptPath/_custom/media/ConfIDent_Logo.png",
52+
"1x" => "$wgScriptPath/_custom/media/ConfIDent_TIB_Logo.png",
5353
];
5454

5555
## Footer Links (legal)
@@ -88,7 +88,7 @@
8888
];
8989

9090
## Custom Styles
91-
$egChameleonThemeFile = __DIR__ . "/resources/src/mediawiki.gesinn-it.global.styles/_theme-default.scss";
91+
$egChameleonThemeFile = __DIR__ . "/_custom/styles/_theme-confident.scss";
9292

9393
// Global Styles
9494
$egChameleonExternalStyleModulesGlobal = [
@@ -107,6 +107,7 @@
107107
__DIR__ . "/_custom/styles/confident/navbar.scss" => 'afterVariables',
108108
];
109109

110+
110111
$egChameleonExternalStyleModules = array_merge($egChameleonExternalStyleModulesGlobal, $egChameleonExternalStyleModulesLocal);
111112

112113
######################################

Diff for: context/media/ConfIDent_Logo.png

-9.55 KB
Binary file not shown.

Diff for: context/media/ConfIDent_TIB_Logo.png

8.42 KB
Loading

Diff for: context/styles/confident/navbar.scss

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// set padding for navbar
2+
body .navbar, .p-navbar {
3+
padding: 3rem 1.5rem;
4+
}
5+
// unset logo size not to corrupt the img size
6+
body .p-navbar .navbar-brand.p-logo {
7+
height: unset;
8+
}
9+
// set the logo size by setting the img size
10+
body .p-navbar .navbar-brand img {
11+
height: 2.5rem;
12+
}
113
// Navbar items bold
214
a.nav-link {
315
font-weight: bold;

0 commit comments

Comments
 (0)