mirror of
https://github.com/BeamMP/Docs.git
synced 2025-07-01 07:25:31 +00:00
Added theme specific logos
This commit is contained in:
parent
d045dfcafd
commit
ed2a1c687f
BIN
docs/assets/core/beammp_dark.png
Normal file
BIN
docs/assets/core/beammp_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
@ -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 {
|
a.md-header__button.md-logo > img {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
@ -9,8 +9,9 @@ copyright: Copyright © 2019 - 2023 BeamMP Mod Team
|
|||||||
theme:
|
theme:
|
||||||
language: en
|
language: en
|
||||||
name: material
|
name: material
|
||||||
logo: assets/beammp.png
|
logo: assets/core/beammp_dark.png
|
||||||
favicon: images/favicon.png
|
logo_dark: assets/core/beammp_light.png
|
||||||
|
favicon: assets/core/favicon.png
|
||||||
custom_dir: overrides
|
custom_dir: overrides
|
||||||
features:
|
features:
|
||||||
- search.suggest
|
- search.suggest
|
||||||
|
7
overrides/partials/logo.html
Normal file
7
overrides/partials/logo.html
Normal 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 %}
|
Loading…
x
Reference in New Issue
Block a user