Merge branch 'stable' of https://github.com/chriseppstein/compass into stable
This commit is contained in:
commit
41b84a5ab1
@ -91,7 +91,7 @@ layout: homepage
|
|||||||
%img(src="/images/compass.app.png")
|
%img(src="/images/compass.app.png")
|
||||||
%p
|
%p
|
||||||
Buy <a href="http://compass.handlino.com/">Compass.app</a>
|
Buy <a href="http://compass.handlino.com/">Compass.app</a>
|
||||||
for Windows and Mac for just $7.
|
for Windows and Mac for just $10.
|
||||||
%p.note
|
%p.note
|
||||||
Note: Compass.app is a product of Handlino, Inc but
|
Note: Compass.app is a product of Handlino, Inc but
|
||||||
30% of all proceeds go to Compass's charity of choice: <a href="http://umdf.org/compass">UMDF.org</a>.
|
30% of all proceeds go to Compass's charity of choice: <a href="http://umdf.org/compass">UMDF.org</a>.
|
||||||
|
@ -67,8 +67,8 @@
|
|||||||
|
|
||||||
// Reset the font and vertical alignment.
|
// Reset the font and vertical alignment.
|
||||||
@mixin reset-font {
|
@mixin reset-font {
|
||||||
font-size: 100%;
|
|
||||||
font: inherit;
|
font: inherit;
|
||||||
|
font-size: 100%;
|
||||||
vertical-align: baseline; }
|
vertical-align: baseline; }
|
||||||
|
|
||||||
// Resets the outline when focus.
|
// Resets the outline when focus.
|
||||||
|
@ -111,12 +111,13 @@ $base-half-leader: $base-leader / 2;
|
|||||||
// Calculate rhythm units.
|
// Calculate rhythm units.
|
||||||
@function rhythm(
|
@function rhythm(
|
||||||
$lines: 1,
|
$lines: 1,
|
||||||
$font-size: $base-font-size
|
$font-size: $base-font-size,
|
||||||
|
$offset: 0
|
||||||
) {
|
) {
|
||||||
@if not $relative-font-sizing and $font-size != $base-font-size {
|
@if not $relative-font-sizing and $font-size != $base-font-size {
|
||||||
@warn "$relative-font-sizing is false but a relative font size was passed to the rhythm function";
|
@warn "$relative-font-sizing is false but a relative font size was passed to the rhythm function";
|
||||||
}
|
}
|
||||||
$rhythm: $font-unit * $lines * $base-line-height / $font-size;
|
$rhythm: $font-unit * ($lines * $base-line-height - $offset) / $font-size;
|
||||||
// Round the pixels down to nearest integer.
|
// Round the pixels down to nearest integer.
|
||||||
@if unit($rhythm) == px {
|
@if unit($rhythm) == px {
|
||||||
$rhythm: floor($rhythm);
|
$rhythm: floor($rhythm);
|
||||||
@ -183,7 +184,7 @@ $base-half-leader: $base-leader / 2;
|
|||||||
style: $border-style;
|
style: $border-style;
|
||||||
width: $font-unit * $width / $font-size;
|
width: $font-unit * $width / $font-size;
|
||||||
};
|
};
|
||||||
padding-#{$side}: $font-unit / $font-size * ($lines * $base-line-height - $width);
|
padding-#{$side}: rhythm($lines, $font-size, $offset: $width);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply borders and whitespace equally to all sides.
|
// Apply borders and whitespace equally to all sides.
|
||||||
@ -195,7 +196,7 @@ $base-half-leader: $base-leader / 2;
|
|||||||
style: $border-style;
|
style: $border-style;
|
||||||
width: $font-unit * $width / $font-size;
|
width: $font-unit * $width / $font-size;
|
||||||
};
|
};
|
||||||
padding: $font-unit / $font-size * ($lines * $base-line-height - $width);
|
padding: rhythm($lines, $font-size, $offset: $width);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply a leading border.
|
// Apply a leading border.
|
||||||
|
@ -14,8 +14,8 @@ time, mark, audio, video {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
font-size: 100%;
|
|
||||||
font: inherit;
|
font: inherit;
|
||||||
|
font-size: 100%;
|
||||||
vertical-align: baseline; }
|
vertical-align: baseline; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
Loading…
Reference in New Issue
Block a user