<div class="frame">
    <!-- 
    <iframe>
    <video>
    <img>
    etc
  -->

    <iframe src="https://www.youtube.com/embed/t6nzLXuntno" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="frame">
  <!-- 
    <iframe>
    <video>
    <img>
    etc
  -->

  <iframe src="https://www.youtube.com/embed/t6nzLXuntno" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
/* No context defined. */
  • Content:
    .frame {
      --n: 9;
      --d: 16;
      padding-bottom: calc(var(--n) / var(--d) * 100%);
      position: relative;
    }
    
    .frame > * {
      overflow: hidden;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .frame > img,
    .frame > video,
    .frame > iframe {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  • URL: /components/raw/frame/frame.scss
  • Filesystem Path: src/components/03-components/frame/frame.scss
  • Size: 379 Bytes

No notes defined.