diff --git a/app/assets/stylesheets/markdown.scss b/app/assets/stylesheets/markdown.scss index 516ff7a8f28c3a55f06ea195b8056da37a80e649..6164f93bb102cd4e00ab0a3cb898e1ac9c2d4af0 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 fa519e9b1e639a8b0a4e2811a09372a508557165..58db61db916309f93ca744e42105e58aefe1529c 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 {