Sha256: e93457df0bab31450891d28e333520d57fdb6eda47e34463ca1b75dcd7def281

Contents?: true

Size: 853 Bytes

Versions: 5

Compression:

Stored size: 853 Bytes

Contents

// Credit: Nicolas Gallagher and SUIT CSS.

.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;

  &::before {
    display: block;
    content: "";
  }

  .embed-responsive-item,
  iframe,
  embed,
  object,
  video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}

@each $embed-responsive-aspect-ratio in $embed-responsive-aspect-ratios {
  $embed-responsive-aspect-ratio-x: nth($embed-responsive-aspect-ratio, 1);
  $embed-responsive-aspect-ratio-y: nth($embed-responsive-aspect-ratio, 2);

  .embed-responsive-#{$embed-responsive-aspect-ratio-x}by#{$embed-responsive-aspect-ratio-y} {
    &::before {
      padding-top: percentage(divide($embed-responsive-aspect-ratio-y, $embed-responsive-aspect-ratio-x));
    }
  }
}

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
bootstrap-4.6.2.1 assets/stylesheets/bootstrap/utilities/_embed.scss
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap-4.6.2/assets/stylesheets/bootstrap/utilities/_embed.scss
bootstrap-4.6.2 assets/stylesheets/bootstrap/utilities/_embed.scss
nex-bootstrap-4.6.3 assets/stylesheets/bootstrap/utilities/_embed.scss
bootstrap-4.6.1 assets/stylesheets/bootstrap/utilities/_embed.scss