Last active
January 20, 2019 10:46
-
-
Save productioncoder/30943b5a0e66db7a14fe79e6268a9b23 to your computer and use it in GitHub Desktop.
Youtube in React: making the video in Watch component smaller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.watch-grid { | |
display: grid; | |
grid-template: auto auto auto 1fr / minmax(0, 1280px) 402px; | |
justify-content: center; | |
/* ... */ | |
} | |
// 1280px (max-width of video column) + 402px (width of side bar) + 3 * 24px (empty space on the left, right and between the two columns) | |
@media(max-width: 1754px) { | |
.watch-grid { | |
padding-left: 24px; | |
padding-right: 24px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment