Skip to content

Commit febad1c

Browse files
second attempt to put custom icon in footer
1 parent 51d4375 commit febad1c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

_quarto.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ website:
2121
target: _blank
2222
- icon: envelope
2323
href: mailto:[email protected]
24-
- icon: images/logo.svg
25-
href: https://ucospo.net
24+
- text: |
25+
<a href="https://ucospo.net" target="_blank"><img src="images/logo.svg" class="custom-icon"></a>
2626
2727
format:
2828
html:

custom.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@ $footer-fg: #ffffff;
1717
}
1818
h2, .h2 {
1919
border-bottom: none;
20+
}
21+
.custom-icon {
22+
width: 1em;
23+
height: 1em;
24+
vertical-align: -0.125em; /* Align to the text baseline */
25+
object-fit: contain; /* Ensure the image doesn't stretch if dimensions aren't square */
26+
/* Add a filter to change the icon color
27+
(Only works for SVGs or transparent PNGs) */
28+
filter: brightness(0) invert(1);
2029
}

0 commit comments

Comments
 (0)