Skip to content

Commit

Permalink
🪲 🎨 css: Prevent images and media from flowing off-screen
Browse files Browse the repository at this point in the history
I embedded an image on the Working Group page, and it flowed far
off-screen because it was bigger than the viewport. Just a simple catch
to make sure media stays inside of its container.

Signed-off-by: Justin W. Flory (he/him) [UNICEF Innovation] <[email protected]>
  • Loading branch information
jwflory committed Apr 9, 2021
1 parent c1e353d commit 0385b95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _sass/pages/_wgs.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* Embed asset tweaks */
figure, iframe, img, picture, video {
height: auto;
max-width: 100%;
}

.page-title {
margin-bottom: 10vh;
}
Expand Down

0 comments on commit 0385b95

Please sign in to comment.