Skip to content
Snippets Groups Projects
Commit e3f0de09 authored by Dennis den Ouden-van der Horst's avatar Dennis den Ouden-van der Horst
Browse files

Dark/light logo update

parent d2c15859
No related branches found
No related tags found
No related merge requests found
Pipeline #1022712 passed
TUDelft_logo_descriptor_rgb.png

10.5 KiB

TUDelft_logo_descriptor_white.png

10.2 KiB

......@@ -7,14 +7,11 @@ copyright: "2024"
html:
theme_options:
use_sidenotes: true
use_repository_button: false
extra_footer: |
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
use_multitoc_numbering: true
repository:
url: https://gitlab.ewi.tudelft.nl/prime/openlabook-published
branch: main
execute:
execute_notebooks: "off"
exclude_patterns:
......@@ -33,6 +30,14 @@ parse:
myst_heading_anchors : 5
sphinx:
config:
html_theme_options:
repository_url: "https://gitlab.ewi.tudelft.nl/prime/openlabook-published"
use_repository_button: false
logo:
text: Linear Algebra
image_light: TUDelft_logo_descriptor_rgb.png
image_dark: TUDelft_logo_descriptor_white.png
extra_footer: <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
html_static_path:
- _static
numfig_secnum_depth: 2
......
.tu-logo {
position: relative;
margin: 15px;
max-width: 300px;
max-height: 300px;
padding: 0px;
/* background: radial-gradient(closest-side , rgba(255,255,255,1) 80%,rgba(255,255,255,0) 100%); W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
background-color: rgba(255,255,255,1);
box-sizing: content-box;
-webkit-box-shadow: 0 0 15px 20px rgba(255,255,255,1);
box-shadow: 0 0 15px 20px rgba(255,255,255,1);
border-radius: 20px;
}
\ No newline at end of file
document.addEventListener('DOMContentLoaded', function() {
// Check if the logo has already been added
if (document.querySelector('.tu-logo')) {
return;
}
var logoDiv = document.createElement('div');
logoDiv.classList.add('tu-logo');
logoDiv.innerHTML = '<img src="https://d2k0ddhflgrk1i.cloudfront.net/Websections/Huisstijl/Bouwstenen/Logo/Descriptor/TUDelft_logo_descriptor_rgb.png" alt="TU Delft logo" style="width: 100%;">';
var navBar = document.querySelector('.bd-sidebar');
if (navBar) {
navBar.appendChild(logoDiv);
}
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment