markdown spacing

This commit is contained in:
Jimmy 2020-02-05 15:35:20 -08:00
parent 9727fab259
commit 980b3be8bb
3 changed files with 39 additions and 8 deletions

View File

@ -176,3 +176,34 @@ a {
.no-scrollbar::-webkit-scrollbar { .no-scrollbar::-webkit-scrollbar {
display: none; display: none;
} }
.md h1, .md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul, .md blockquote,.md code,.md pre {
font-size: 14px;
margin-bottom: 16px;
}
.md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul {
font-weight: 400;
}
.md h1 {
font-weight: 600;
}
.md h2, .md h3, .md h4, .md h5 {
color:var(--gray);
}
.md p {
line-height: 1.5;
}
.md code, .md pre {
font-family: "Source Code Pro", mono;
}
.md ul>li {
line-height: 1.5;
}
.md a {
border-bottom-style: solid;
border-bottom-width: 1px;
}

View File

@ -51,7 +51,7 @@ export class NoteNavigation extends Component {
} }
return ( return (
<div className="flex mt4"> <div className="flex pt4">
{prevComponent} {prevComponent}
{nextComponent} {nextComponent}
</div> </div>

View File

@ -2,8 +2,7 @@ import React, { Component } from 'react';
import { Comments } from './comments'; import { Comments } from './comments';
import { NoteNavigation } from './note-navigation'; import { NoteNavigation } from './note-navigation';
import moment from 'moment'; import moment from 'moment';
import ReactMarkdown from 'react-markdown' import ReactMarkdown from 'react-markdown';
// import test from 'test.json';
//TODO ask for note if we don't have it //TODO ask for note if we don't have it
//TODO initialise note if no state //TODO initialise note if no state
@ -129,13 +128,14 @@ export class Note extends Component {
<div className="w-100 mw6"> <div className="w-100 mw6">
<div className="flex flex-column"> <div className="flex flex-column">
<div className="f9 mb1">{title}</div> <div className="f9 mb1">{title}</div>
<div className="flex"> <div className="flex mb6">
<div className="di f9 mono gray2 mr2">{author}</div> <div className="di f9 mono gray2 mr2">{author}</div>
<div className="di f9 gray2">{date}</div> <div className="di f9 gray2">{date}</div>
</div> </div>
</div> </div>
<div className="md">
<ReactMarkdown source={newfile} /> <ReactMarkdown source={newfile} />
</div>
<NoteNavigation <NoteNavigation
prev={prev} prev={prev}
next={next} next={next}