I've been working on adjusting the height of the parent class to fit the child class perfectly without overflowing
Here is a snippet from my CSS file:
Parent
&__video
position: relative;
width: 471px;
background: red;
border-radius: 12px;
@include box-05;
Child
.player {
position: relative;
width: var(--width);
}
And this is how I implemented it in HTML:
VideoEmbed.video-introduction__video(
source-url="*****"
)
Just to clarify, VideoEmbed
is a component that contains the styling for the child element.