aboutsummaryrefslogtreecommitdiff
path: root/src/components/rich_content/rich_content.scss
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-06-07 12:49:54 +0300
committerHenry Jameson <me@hjkos.com>2021-06-07 18:41:47 +0300
commita2459c2187bc051c18715591119a48ccb0f308e7 (patch)
treef7b9fbd5576f4ff1a0128fc93aed69b81c7dbd04 /src/components/rich_content/rich_content.scss
parentbe79643bcf6f05df500f0d6bcb773f07dd15da3d (diff)
move styles to richcontent
Diffstat (limited to 'src/components/rich_content/rich_content.scss')
-rw-r--r--src/components/rich_content/rich_content.scss70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/components/rich_content/rich_content.scss b/src/components/rich_content/rich_content.scss
index e69de29b..2fcd3911 100644
--- a/src/components/rich_content/rich_content.scss
+++ b/src/components/rich_content/rich_content.scss
@@ -0,0 +1,70 @@
+.RichContent {
+ font-family: var(--postFont, sans-serif);
+ line-height: 1.4em;
+ white-space: pre-wrap;
+ overflow-wrap: break-word;
+ word-wrap: break-word;
+ word-break: break-word;
+
+ blockquote {
+ margin: 0.2em 0 0.2em 2em;
+ font-style: italic;
+ }
+
+ pre {
+ overflow: auto;
+ }
+
+ code,
+ samp,
+ kbd,
+ var,
+ pre {
+ font-family: var(--postCodeFont, monospace);
+ }
+
+ p {
+ margin: 0 0 1em 0;
+ }
+
+ p:last-child {
+ margin: 0 0 0 0;
+ }
+
+ h1 {
+ font-size: 1.1em;
+ line-height: 1.2em;
+ margin: 1.4em 0;
+ }
+
+ h2 {
+ font-size: 1.1em;
+ margin: 1em 0;
+ }
+
+ h3 {
+ font-size: 1em;
+ margin: 1.2em 0;
+ }
+
+ h4 {
+ margin: 1.1em 0;
+ }
+
+ .img {
+ display: inline-block;
+ }
+
+ .emoji {
+ width: 32px;
+ height: 32px;
+ }
+
+ .img,
+ video {
+ max-width: 100%;
+ max-height: 400px;
+ vertical-align: middle;
+ object-fit: contain;
+ }
+}