CoreFiles by mySites.guru
_ratio.scss26 lines, 417 bytes, from Joomla_4.2.0-alpha3-dev-Development-Full_Package.zip
Raw History Compare with 4.2.0-alpha2
md5
61857698ee98d3b99c13ed63b0e24447
sha1
8e3381608f03f761cdf9bd5c1c37675be1ff2361
sha256
43679996f473313741e57092bd341aa985b47bd8f202d5a27417a6763e25ea31
// Credit: Nicolas Gallagher and SUIT CSS.

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

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

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

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

The same content is in 70 releases, Joomla 4.0.0-rc1 to 4.3.0-alpha2. See them all, or every version of this file.