CoreFiles by mySites.guru
_ratio.scss26 lines, 399 bytes, from Joomla_5.4.8-Stable-Full_Package.zip
Raw History Compare with 5.4.7
md5
be031761895ef4e754abd203aefcb93c
sha1
94afe6ff6c1708c1ddd7936a227ee5770eb11166
sha256
4f54693632997a794bd6807a3ccfe6ab01ed3c76dc0d215b106c12757c0fa7e0
// 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};
  }
}

The same content is in 214 releases, Joomla 4.3.0-alpha3 to 6.3.0-alpha1. See them all, or every version of this file.