Sha256: f0f93c835eeeb6748053c0ca7708b5c14fe25fb9025df8773fddd20e76a3ba1f

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

// Credit: Nicolas Gallagher and SUIT CSS.

.ratio {
  position: relative;
  width: 100%;

  &::before {
    display: block;
    padding-top: var(--#{$prefix}aspect-ratio);
    content: '';
  }

  > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@each $key, $ratio in $aspect-ratios {
  .ratio-#{$key} {
    --#{$prefix}aspect-ratio: #{$ratio};
  }
}

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
jekyll-rubin-collab-theme-0.1.1 _third_party/mdb-ui-kit/src/scss/bootstrap-rtl-fix/helpers/_ratio.scss
jekyll-rubin-collab-theme-0.1.1 _third_party/mdb-ui-kit/src/scss/bootstrap/helpers/_ratio.scss