Skip to content

Commit

Permalink
object-fit: contain for ctf writeups
Browse files Browse the repository at this point in the history
  • Loading branch information
r2dev2 committed Jan 8, 2024
1 parent 5aa615f commit 32e12eb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@
margin: 20px auto;
display: block;
max-height: 60vh;
/**
* object-fit: cover should probably not exist but keep it
* just to be sure we don't break anything
*/
object-fit: cover;
}

/* for ctf writeup, do not hide parts of the image if it is too tall */
article {
img {
object-fit: contain;
}
}
}
}
}

0 comments on commit 32e12eb

Please sign in to comment.