From 3e8184eef7d990c7af09cc8858614c115ce31d0f Mon Sep 17 00:00:00 2001 From: Tim <roadscape@users.noreply.github.com> Date: Thu, 6 Oct 2016 17:08:55 -0400 Subject: [PATCH] consolidate styles for consistent preview rendering #185 --- app/assets/stylesheets/markdown.scss | 29 +++++++++++++++++++++------- app/components/cards/PostFull.scss | 10 ---------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/app/assets/stylesheets/markdown.scss b/app/assets/stylesheets/markdown.scss index 516ff7a8f..6164f93bb 100644 --- a/app/assets/stylesheets/markdown.scss +++ b/app/assets/stylesheets/markdown.scss @@ -1,4 +1,26 @@ +.Markdown { + font-family: 'Source Serif Pro', serif; + font-size: 120%; + + line-height: 150%; +} + +// used for comments +.Markdown.MarkdownViewer--small { + font-family: inherit; + font-size: 100%; + + img { + max-width: 400px; + max-height: 400px; + } +} + .Markdown, .ReplyEditor__body.rte { + overflow-wrap: break-word; + word-wrap: break-word; + word-break: break-word; + hyphens: auto; h1, h2, h3, h4, h5, h6 { font-family: 'Source Serif Pro', serif; @@ -72,10 +94,3 @@ max-height: 75vw; } } - -.Markdown.MarkdownViewer--small { - img { - max-width: 400px; - max-height: 400px; - } -} diff --git a/app/components/cards/PostFull.scss b/app/components/cards/PostFull.scss index fa519e9b1..58db61db9 100644 --- a/app/components/cards/PostFull.scss +++ b/app/components/cards/PostFull.scss @@ -44,16 +44,6 @@ .PostFull__body { padding: 1rem 0 2rem 0; clear: left; - - font-family: 'Source Serif Pro', serif; - font-size: 120%; - line-height: 150%; - - overflow-wrap: break-word; - word-wrap: break-word; - word-break: break-word; - hyphens: auto; - } .PostFull__footer { -- GitLab