Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: displaying the time label in VideoPreview using absolute positioning
/*...*/
$text-color-dark: #111111;
/* ... */
.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
You can’t perform that action at this time.