Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions typecsset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ $typecsset-magic-ratio: $typecsset-base-line-height / $typecsset-base-fo
* base font size.
*/

@if $typecsset-show-baseline == true {
@if $typecsset-show-baseline {
/**
* 3. If you have chosen to display a baseline grid, we turn it on here.
*/
Expand All @@ -134,13 +134,16 @@ html {
line-height: $typecsset-base-line-height / $typecsset-base-font-size; /* [2] */

// If you have chosen to display a baseline grid, we turn it on here.
@if $typecsset-show-baseline == true {
@if $typecsset-show-baseline {

/* [3] */
// Use basehold.it fallback in old browsers
$typecsset-baseline-size: typecsset-strip-units($typecsset-magic-number);
background: url(http://basehold.it/i/#{$typecsset-baseline-size}) 0 0;

background-image: url(http://basehold.it/i/#{$typecsset-baseline-size}); /* [3] */
// Use a linear gradient + background-size in modern browsers
background: linear-gradient(to top, rgba(0, 0, 0, .15) 1px, transparent 1px) 0 0 / auto $typecsset-magic-ratio * 1em;
}

}

body {
Expand Down