CoreFiles by mySites.guru
_ratio.scss26 lines, 379 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
9e1245034ef1a27168f04028208158a8
sha1
f58ce2212ac0746d150168143735e30a2e42fbdf
sha256
3c65e809b83fd4ae6599d701cc39535561cfd8445a23e06b9236f52d6b063ddb
// Credit: Nicolas Gallagher and SUIT CSS.

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

  &::before {
    display: block;
    padding-top: var(--aspect-ratio);
    content: "";
  }

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

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

No other release has this exact content. See every version of this file.