Skip to content

Instantly share code, notes, and snippets.

@cahnory
Created October 2, 2015 19:01
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 cahnory/feaf8d37149300583f54 to your computer and use it in GitHub Desktop.
Save cahnory/feaf8d37149300583f54 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="box"></div>
// ----
// libsass (v3.2.5)
// ----
// 8px is a reasonable smallest font-size
// 16px is a standard
//
// designing with 8px relative pixels
@function m8($value) {
@return $value * 1em / 8;
};
.box {
border: m8(1) solid black;
padding: m8(4);
height: m8(8);
&:after {
content:'';
display: block;
height: m8(8);
background: red;
}
}
.box {
border: 0.125em solid black;
padding: 0.5em;
height: 1em;
}
.box:after {
content: '';
display: block;
height: 1em;
background: red;
}
<div class="box"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment