Toggle paragraph indentation on and off.

- On by default
This commit is contained in:
Michael Rose 2014-07-31 14:44:23 -04:00
parent dd3dcdfbdf
commit f397374973
3 changed files with 9 additions and 5 deletions

View file

@ -112,12 +112,14 @@ blockquote {
// -------------------------------------------------- // --------------------------------------------------
p { p {
margin: 0 0 $indent-var; margin: 0 0 $indent-var;
// sibling indentation
@if $paragraph-indent == true {
& + p { & + p {
//siblings indentation
text-indent: $indent-var; text-indent: $indent-var;
margin-top: -($indent-var); margin-top: -($indent-var);
} }
} }
}
// Code // Code
// -------------------------------------------------- // --------------------------------------------------

View file

@ -1,6 +1,7 @@
// TYPOGRAPHY ================================================ // TYPOGRAPHY ================================================
$doc-font-size: 16; $doc-font-size: 16;
$doc-line-height: 26; $doc-line-height: 26;
$paragraph-indent: true !default;
$base-font: 'PT Serif', serif; $base-font: 'PT Serif', serif;
$heading-font: 'PT Sans Narrow', sans-serif; $heading-font: 'PT Sans Narrow', sans-serif;
$code-font: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace; $code-font: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;

View file

@ -25,3 +25,4 @@ sitemap: false
@import "page"; @import "page";
@import "vendor/font-awesome/font-awesome"; @import "vendor/font-awesome/font-awesome";
@import "vendor/magnific-popup/magnific-popup"; @import "vendor/magnific-popup/magnific-popup";
@import "vendor/google/fonts";