Skip to content

Commit

Permalink
Add the cute FI icon into szmgr and szb header
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Jan 7, 2024
1 parent bd9d9aa commit 22bd267
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions _includes/layouts/question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default ({
<>
<nav class="nav">
<a href={home} class="nav-header">
<img src="/icons/fi.png" class="logo" />
{course}
</a>
{groups.map((g) => (
Expand Down
11 changes: 11 additions & 0 deletions _includes/styles/question.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,15 @@ html, body {
ol, ul {
padding-left: 2rem;
}

// Based on https://stackoverflow.com/questions/14068103/disable-antialising-when-scaling-images
.logo {
image-rendering: optimizeSpeed; /* STOP SMOOTHING, GIVE ME SPEED */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
image-rendering: pixelated; /* Universal support since 2021 */
image-rendering: optimize-contrast; /* CSS3 Proposed */
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
}
}

0 comments on commit 22bd267

Please sign in to comment.