Created
May 26, 2015 12:51
-
-
Save maddesigns/8451840565ad47f5d837 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (1...13).each do |i| | |
.column= i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
$base-fontsize: 15px; | |
$base-lineheight: 20px; | |
@function pow($val, $pow) { | |
$res: 1; | |
@while($pow > 0) { | |
$res: $res * $val; | |
$pow: $pow - 1; | |
} | |
@return $res; | |
} | |
@function magic-size($size) { | |
$base: $size / ($size * 0 + 1); | |
$ratio-adjustment: 9; | |
// make this smaller to get a smaller ratio between small and large fonts | |
@return calc(#{$size - pow($base / $ratio-adjustment, 2)} + #{pow($base / ($ratio-adjustment * 3), 2)}vw); | |
} | |
@mixin font-size($size) { | |
$magic-size: magic-size($size); | |
font-size: $size; | |
font-size: $magic-size; | |
content: "viewport-units-buggyfill; font-size: #{$magic-size}"; | |
} | |
h1 { | |
@include font-size(18px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { | |
font-size: 18px; | |
font-size: calc(14px + 0.44444vw); | |
content: "viewport-units-buggyfill; font-size: calc(14px + 0.44444vw)"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='column'>1</div> | |
<div class='column'>2</div> | |
<div class='column'>3</div> | |
<div class='column'>4</div> | |
<div class='column'>5</div> | |
<div class='column'>6</div> | |
<div class='column'>7</div> | |
<div class='column'>8</div> | |
<div class='column'>9</div> | |
<div class='column'>10</div> | |
<div class='column'>11</div> | |
<div class='column'>12</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment