Skip to content

Instantly share code, notes, and snippets.

@jmblog
Created May 12, 2011 01:21
Show Gist options
  • Save jmblog/967750 to your computer and use it in GitHub Desktop.
Save jmblog/967750 to your computer and use it in GitHub Desktop.
adjust-font-size.scss
@function -yui-font-size($px) {
@if $px == 10 { @return 77%; }
@else if $px == 11 { @return 85%; }
@else if $px == 12 { @return 93%; }
@else if $px == 13 { @return 100%; }
@else if $px == 14 { @return 108%; }
@else if $px == 15 { @return 116%; }
@else if $px == 16 { @return 123.1%; }
@else if $px == 17 { @return 131%; }
@else if $px == 18 { @return 138.5%; }
@else if $px == 19 { @return 146.5%; }
@else if $px == 20 { @return 153.9%; }
@else if $px == 21 { @return 161.6%; }
@else if $px == 22 { @return 167%; }
@else if $px == 23 { @return 174%; }
@else if $px == 24 { @return 182%; }
@else if $px == 25 { @return 189%; }
@else if $px == 26 { @return 197%; }
@else { @warn "#{$px} is not valid."; @return 100%; };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment