~xdavidwu/xdavidwu.link

f3973749731e1567fe1ae412450aaa42709498d4 — Michael Rose 9 years ago dd3dcdf
Toggle paragraph indentation on and off.
- On by default
3 files changed, 9 insertions(+), 5 deletions(-)

M _sass/typography.scss
M _sass/variables.scss
M assets/css/main.scss
M _sass/typography.scss => _sass/typography.scss +6 -4
@@ 112,10 112,12 @@ blockquote {
// --------------------------------------------------
p {
	margin: 0 0 $indent-var;
	& + p {
		//siblings indentation
		text-indent: $indent-var;
		margin-top: -($indent-var);
	// sibling indentation
  @if $paragraph-indent == true {
    & + p {
			text-indent: $indent-var;
			margin-top: -($indent-var);
		}
	}
}


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

M assets/css/main.scss => assets/css/main.scss +2 -1
@@ 24,4 24,5 @@ sitemap: false
@import "forms";
@import "page";
@import "vendor/font-awesome/font-awesome";
@import "vendor/magnific-popup/magnific-popup";
\ No newline at end of file
@import "vendor/magnific-popup/magnific-popup";
@import "vendor/google/fonts";
\ No newline at end of file