Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix scss mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
mehlah committed Jan 8, 2012
1 parent 7c067be commit 8ef7617
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions GGS.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,37 +136,44 @@ body {
line-height: #{$line / $em}em;
}

.small {
@mixin small {
/* 13px / 18px */
font-size: #{($font-size*0.8125) / $em}em;
line-height: ($line*0.75) / ($font-size*0.8125) * 1em;
}

.normal, h3 {
@mixin normal {
/* 16px / 24px */
font-size: #{$font-size / $em}em;
line-height: #{$line / $em}em; /* 24 */
}

.large, h2, h1 {
h3 {
@include normal;
}

@mixin large {
/* 26 / 36px */
font-size: #{26 / $em}em;
line-height: ($line*1.5) / 26 * 1em;
}

.huge {
h2, h1 {
@include large;
}

@mixin huge {
/* 42px / 48px */
font-size: #{42 / $em}em;
line-height: ($line*2) / 42 * 1em;
}

.massive {
@mixin massive {
/* 68px / 72px */
font-size: #{68 / $em}em;
line-height: ($line*3) / 68 * 1em;
}

.gigantic {
@mixin gigantic {
/* 110px / 120px */
font-size: #{110 / $em}em;
line-height: ($line*5) / 110 * 1em;
Expand Down Expand Up @@ -227,7 +234,7 @@ h3 {
}

.ie h1 {
@extend .huge;
@include huge;
margin: (48/42*1em) 0 (24/42*1em);
}

Expand All @@ -240,7 +247,7 @@ h3 {
}

h1 {
@extend .huge;
@include huge;
margin: (48/42*1em) 0 (24/42*1em);
}

Expand Down Expand Up @@ -377,4 +384,4 @@ h3 {
max-width: (2560/$em)em;
}

}
}

0 comments on commit 8ef7617

Please sign in to comment.