1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

build fixes

This commit is contained in:
Matthias Kretschmann 2018-11-12 19:29:47 +01:00
parent a53c227acc
commit f5bc1ae68a
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 11 additions and 7 deletions

View File

@ -136,9 +136,11 @@ const Repository = ({ name, links, readme }) => (
object object
} = repo } = repo
const readmeHtml = remark() const readmeHtml = object
? remark()
.use(remarkReact) .use(remarkReact)
.processSync(object.text).contents .processSync(object.text).contents
: null
return ( return (
<article className={styles.repository}> <article className={styles.repository}>
@ -155,7 +157,7 @@ const Repository = ({ name, links, readme }) => (
/> />
</footer> </footer>
{readme && ( {readme && object && (
<aside className={styles.repositoryReadme}> <aside className={styles.repositoryReadme}>
<h3 className={styles.repositoryReadmeTitle}> <h3 className={styles.repositoryReadmeTitle}>
README.md README.md

View File

@ -89,7 +89,9 @@
} }
.repositoryReadme { .repositoryReadme {
margin-top: $spacer; margin-top: $spacer / $line-height;
padding: $spacer / 2;
background: darken($brand-white, 2%);
h1, h1,
h2 { h2 {
@ -104,9 +106,9 @@
.repositoryReadmeTitle { .repositoryReadmeTitle {
font-size: $font-size-small !important; // stylelint-disable-line font-size: $font-size-small !important; // stylelint-disable-line
font-family: $font-family-monospace;
font-weight: $font-weight-base;
margin: 0; margin: 0;
color: $brand-grey-light; color: $brand-grey-light;
margin-bottom: $spacer / 2; margin-bottom: $spacer / 2;
padding-bottom: $spacer / 3;
border-bottom: 1px solid $brand-grey-lighter;
} }