Functions
@function flex-width($target, $context) {
@return ($target / $context) * 100%; }
/* ===================================== */
article {
float: left;
width: flex-width(600px, 960px); }
aside {
float: right;
width: flex-width(300px, 960px); }
/* ===================================== */
article {
float: left;
width: 62.5%; }
aside {
float: right;
width: 31.25%; }
Determine your style rules
programmatically and reuse
the methods.