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 {
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 (
<div className="flex mt4">
<div className="flex pt4">
{prevComponent}
{nextComponent}
</div>

View File

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