Skip to content

Commit

Permalink
site: added hero image
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornig committed Mar 18, 2024
1 parent a1732e6 commit 561119c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/src/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,24 @@ span.reference-cpp, span.reference-ned, span.reference-ini, span.reference-msg,
.literal-msg, .reference-msg { color: purple; }
.literal-fp, .reference-fp { color: white; }
.protocol { font-style: italic; }

/* custom hero image */
.md-hero__inner {
margin-top: 0;
padding-top: 0;
padding-bottom: 0;
}

.md-hero__inner p {
margin-block-end: 0;
}

.md-hero__inner::before {
content: ""; /* Necessary for the pseudo-element to work */
display: block; /* Treat the pseudo-element like a block-level element */
width: 400px; /* Width of the image */
height: 100px; /* Height of the image */
background-image: url('logo.png'); /* Path to your image */
background-size: cover; /* Ensure the image covers the pseudo-element */
background-repeat: no-repeat; /* Prevent the image from repeating */
}
File renamed without changes

0 comments on commit 561119c

Please sign in to comment.