Skip to content

Commit ca836fe

Browse files
author
Andreas Schwarz
committed
fix header image
1 parent 1bdebab commit ca836fe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: src/custom.css

+6
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@
99
width: 100%;
1010
height: auto;
1111
cursor: pointer;
12+
}
13+
14+
.sidebar-header-image {
15+
margin: 10%;
16+
width: 80%; /* Make image responsive within the sidebar */
17+
height: auto; /* Maintain aspect ratio */
1218
}

Diff for: theme/index.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114

115115
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
116116
<div class="sidebar-scrollbox">
117+
<img class="sidebar-header-image" src="{{ path_to_root }}/img/misc/spurdo_fbv.png"></img>
117118
<mdbook-sidebar-scrollbox>
118119
<!-- populated by js -->
119120
</mdbook-sidebar-scrollbox>

0 commit comments

Comments
 (0)