Skip to content

Instantly share code, notes, and snippets.

@RyanRoberts
Created October 24, 2014 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanRoberts/640693f3225567ffdb5e to your computer and use it in GitHub Desktop.
Save RyanRoberts/640693f3225567ffdb5e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="box">
</div>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
html, body
height: 100%
.box
width: 25%
background: red
&:before
display: block
content: ""
height: 0
padding-top: 100%
html, body {
height: 100%;
}
.box {
width: 25%;
background: red;
}
.box:before {
display: block;
content: "";
height: 0;
padding-top: 100%;
}
<div class="box">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment