Skip to content

Instantly share code, notes, and snippets.

@krstivoja
Created December 30, 2022 20:15
Show Gist options
  • Save krstivoja/c5ca0af91575b62ddbbcbafd8ef9b257 to your computer and use it in GitHub Desktop.
Save krstivoja/c5ca0af91575b62ddbbcbafd8ef9b257 to your computer and use it in GitHub Desktop.
@mixin ratio-1-1 {
@media screen and (max-aspect-ratio: #{1} / #{1}) { @content; }
}
// Use
// .header-title {
// font-size: 2rem;
// @include ratio-1-1 {
// font-size: 1rem;
// }
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment