Last active
December 3, 2018 18:57
-
-
Save productioncoder/e471816e4a5c0799aa3d5ef75efd4130 to your computer and use it in GitHub Desktop.
Youtube in React: displaying the time label in VideoPreview using absolute positioning
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
/* ... */ | |
.time-label { | |
position: absolute; | |
background: $text-color-dark; | |
bottom: 0; | |
right: 0; | |
opacity: 0.8; | |
border-radius: 2px; | |
font-weight: 500; | |
color: white; | |
margin: 4px; | |
padding: 2px 4px; | |
line-height: 12px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment