Added theme specific logos

This commit is contained in:
Starystars67 2023-11-03 18:59:19 +00:00
parent d045dfcafd
commit ed2a1c687f
6 changed files with 20 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,3 +1,13 @@
@media screen {
[data-md-color-scheme=default] .logo-dark {
display: none !important;
}
[data-md-color-scheme=slate] .logo-light {
display: none !important;
}
}
a.md-header__button.md-logo > img {
height: 50px;
}

View File

@ -9,8 +9,9 @@ copyright: Copyright © 2019 - 2023 BeamMP Mod Team
theme:
language: en
name: material
logo: assets/beammp.png
favicon: images/favicon.png
logo: assets/core/beammp_dark.png
logo_dark: assets/core/beammp_light.png
favicon: assets/core/favicon.png
custom_dir: overrides
features:
- search.suggest

View File

@ -0,0 +1,7 @@
{% if config.theme.logo %}
<img src="{{ config.theme.logo | url }}" alt="logo" class="logo-light" />
<img src="{{ config.theme.logo_dark | url }}" alt="logo" class="logo-dark" />
{% else %}
{% set icon = config.theme.icon.logo or "material/library" %}
{% include ".icons/" ~ icon ~ ".svg" %}
{% endif %}